IGOS Nusantara dan ifcfg-eth0: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
(ifcfg-eth0)
 
(2 revisi antara oleh pengguna yang sama tidak ditampilkan)
Baris 3: Baris 3:
 
== ifcfg-eth0 ==
 
== ifcfg-eth0 ==
 
Berkas ada di: /etc/sysconfig/network-scripts/ifcfg-eth0
 
Berkas ada di: /etc/sysconfig/network-scripts/ifcfg-eth0
 +
Misal:
 +
* IP=192.168.0.10
 +
* Gateway=192.168.0.1
  
 +
Konfigurasi:
 
  DEVICE=eth0
 
  DEVICE=eth0
 
  ONBOOT=yes
 
  ONBOOT=yes
  IPADDR=192.168.228.4
+
  IPADDR=192.168.0.10
 
  BOOTPROTO=none
 
  BOOTPROTO=none
 
  NETMASK=255.255.255.0
 
  NETMASK=255.255.255.0
 
  TYPE=Ethernet
 
  TYPE=Ethernet
  GATEWAY=192.168.228.1
+
  GATEWAY=192.168.0.1
 
  DNS1=8.8.8.8
 
  DNS1=8.8.8.8
 
  DNS2=8.8.4.4
 
  DNS2=8.8.4.4
Baris 17: Baris 21:
 
  PREFIX=24
 
  PREFIX=24
 
  NAME="eth0"
 
  NAME="eth0"
 
== skrip salin tempel ==
 
Untuk mempercepat, salin tempel (copy paste) kode berikut:
 
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF.eth0
 
 
DEVICE=eth0
 
ONBOOT=yes
 
IPADDR=192.168.228.4
 
BOOTPROTO=none
 
NETMASK=255.255.255.0
 
TYPE=Ethernet
 
GATEWAY=192.168.228.1
 
DNS1=8.8.8.8
 
DNS2=8.8.4.4
 
IPV6INIT=no
 
USERCTL=no
 
PREFIX=24
 
NAME="eth0"
 
 
EOF.eth0
 

Revisi terkini pada 10 Desember 2012 09.55

IGOS Nusantara

ifcfg-eth0

Berkas ada di: /etc/sysconfig/network-scripts/ifcfg-eth0 Misal:

  • IP=192.168.0.10
  • Gateway=192.168.0.1

Konfigurasi:

DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.0.10
BOOTPROTO=none
NETMASK=255.255.255.0
TYPE=Ethernet
GATEWAY=192.168.0.1
DNS1=8.8.8.8
DNS2=8.8.4.4
IPV6INIT=no
USERCTL=no
PREFIX=24
NAME="eth0"