IGOS Nusantara dan Ganti Ethernet: Perbedaan revisi
Dari IGNwiki
(←Membuat halaman berisi 'Konfigurasi ada di: == Ethernet melalui udev == /etc/udev/rules.d/70-persistent-net.rules # Berkas: /etc/udev/rules.d/70-persistent-net.rules # Empat baris berikut …') |
|||
| Baris 35: | Baris 35: | ||
# Networking Interface | # Networking Interface | ||
DEVICE=eth0 | DEVICE=eth0 | ||
| − | HWADDR= | + | # HWADDR= |
ONBOOT=yes | ONBOOT=yes | ||
IPADDR=192.168.228.4 | IPADDR=192.168.228.4 | ||
| Baris 42: | Baris 42: | ||
TYPE=Ethernet | TYPE=Ethernet | ||
GATEWAY=192.168.228.1 | GATEWAY=192.168.228.1 | ||
| − | DNS1= | + | DNS1=8.8.8.8 |
| + | DNS2=8.8.4.4 | ||
IPV6INIT=no | IPV6INIT=no | ||
USERCTL=no | USERCTL=no | ||
PREFIX=24 | PREFIX=24 | ||
NAME="System eth0" | NAME="System eth0" | ||
| − | UUID= | + | # UUID= |
=== ifcfg-eth1 === | === ifcfg-eth1 === | ||
| Baris 54: | Baris 55: | ||
# Networking Interface | # Networking Interface | ||
DEVICE=eth1 | DEVICE=eth1 | ||
| − | HWADDR= | + | # HWADDR= |
ONBOOT=yes | ONBOOT=yes | ||
BOOTPROTO=none | BOOTPROTO=none | ||
| Baris 62: | Baris 63: | ||
IPADDR=192.168.228.8 | IPADDR=192.168.228.8 | ||
NETMASK=255.255.255.0 | NETMASK=255.255.255.0 | ||
| − | + | DNS1=8.8.8.8 | |
| − | + | DNS2=8.8.4.4 | |
| − | #GATEWAY=192.168.228.1 | + | # GATEWAY=192.168.228.1 |
Tautan: | Tautan: | ||
Revisi terkini pada 10 Desember 2012 09.41
Konfigurasi ada di:
Ethernet melalui udev
/etc/udev/rules.d/70-persistent-net.rules
# Berkas: /etc/udev/rules.d/70-persistent-net.rules
# Empat baris berikut hasil dari anaconda saat masih di server1
# Networking Interface (rule written by anaconda)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:58:A1:A2:A3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# Networking Interface (rule written by anaconda)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:11:B1:B2:B3", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# Baris berikut hasil udev dan perlu melakukan Perubahan1 dan Perubahan2
# ----------------------------------------------------------------------
# Perubahan1: eth2 ke eth0
# PCI device 0x8086:0x10cc (e1000e)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:AA:BB:11", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:AA:BB:11", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# Perubahan2: eth2 ke eth1
# PCI device 0x8086:0x10d3 (e1000e) (custom name provided by external tool)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:AA:BB:12", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:AA:BB:12", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# ----------------------------------------------------------------------
Konfigurasi ifcfg-ethX
- /etc/sysconfig/network-scripts/ifcfg-eth0
- /etc/sysconfig/networking/devices/ifcfg-eth0
- /etc/sysconfig/networking/profiles/default/ifcfg-eth0
ifcfg-eth0
- /etc/sysconfig/network-scripts/ifcfg-eth0
# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Networking Interface DEVICE=eth0 # HWADDR= 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="System eth0" # UUID=
ifcfg-eth1
- /etc/sysconfig/network-scripts/ifcfg-eth1
# cat /etc/sysconfig/network-scripts/ifcfg-eth1 # Networking Interface DEVICE=eth1 # HWADDR= ONBOOT=yes BOOTPROTO=none TYPE=Ethernet IPV6INIT=no USERCTL=no IPADDR=192.168.228.8 NETMASK=255.255.255.0 DNS1=8.8.8.8 DNS2=8.8.4.4 # GATEWAY=192.168.228.1
Tautan:
- Linux Home Server Howto http://www.brennan.id.au/index.html
- http://www.brennan.id.au/04-Network_Configuration.html
- Linux Network Configuration http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworking.html