IGOS Nusantara dan ifcfg-eth0: Perbedaan revisi

Dari IGNwiki
Langsung ke: navigasi, cari
(skrip salin tempel)
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
  
 
  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 18:
 
  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 per 10 Desember 2012 09.54

IGOS Nusantara

ifcfg-eth0

Berkas ada di: /etc/sysconfig/network-scripts/ifcfg-eth0 Misal IP=192.168.0.10, Gateway=192.168.0.1

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"