|
|
(6 revisi antara oleh pengguna yang sama tidak ditampilkan) |
Baris 1: |
Baris 1: |
− | Konfigurasi ada di:
| + | KOnfigurasi ada di eth0 |
| | | |
− | /etc/udev/rules.d/70-persistent-net.rules
| + | DEVICE="eth0" |
− | | + | BOOTPROTO="static" |
− | # Berkas: /etc/udev/rules.d/70-persistent-net.rules | + | IPADDR=<YOUR IP> |
− |
| + | NETMASK=<NETMASK> |
− | # This file was automatically generated by the /lib/udev/write_net_rules
| + | GATEWAY=<GATEWAY> |
− | # program run by the persistent-net-generator.rules rules file.
| + | DNS1=<DNS2> |
− | #
| + | DNS2=<DNS1> |
− | # You can modify it, as long as you keep each rule on a single line.
| + | |
− |
| + | |
− | # Networking Interface (rule written by anaconda)
| + | |
− | #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:58:9a:8a:90", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
| + | |
− | # Networking Interface (rule written by anaconda)
| + | |
− | #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:11:a1:48:53", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
| + | |
− | | + | |
− | # PCI device 0x8086:0x10cc (e1000e)
| + | |
− | #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:ac:d6:f4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
| + | |
− | SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:ac:d6:f4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" | + | |
− | | + | |
− | # PCI device 0x8086:0x10d3 (e1000e) (custom name provided by external tool)
| + | |
− | #SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:ac:d6:f5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
| + | |
− | SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:17:ac:d6:f5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" | + | |
− | | + | |
− | * /etc/sysconfig/network-scripts/ifcfg-eth0
| + | |
− | # cat /etc/sysconfig/network-scripts/ifcfg-eth0 | + | |
− | # Networking Interface
| + | |
− | DEVICE=eth0
| + | |
− | HWADDR=00:15:17:AC:D6:F4 | + | |
| ONBOOT=yes | | ONBOOT=yes |
− | IPADDR=192.168.228.4 | + | NM_CONTROLLED="yes" |
− | BOOTPROTO=none | + | HWADDR=<MAC ADDR> |
− | NETMASK=255.255.255.0
| + | |
| TYPE=Ethernet | | TYPE=Ethernet |
− | GATEWAY=192.168.228.1 | + | DEFROUTE=yes |
− | DNS1=192.168.228.1 | + | PEERDNS=yes |
| + | PEERROUTES=yes |
| + | IPV4_FAILURE_FATAL=yes |
| IPV6INIT=no | | IPV6INIT=no |
− | USERCTL=no
| |
− | PREFIX=24
| |
| NAME="System eth0" | | NAME="System eth0" |
− | UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 | + | UUID=<UUID> |
− | | + | |
− | * /etc/sysconfig/network-scripts/ifcfg-eth1
| + | |
− | # cat /etc/sysconfig/network-scripts/ifcfg-eth1
| + | |
− | # Networking Interface
| + | |
− | DEVICE=eth1
| + | |
− | HWADDR=00:15:17:AC:D6:F5
| + | |
− | ONBOOT=yes
| + | |
− | BOOTPROTO=none
| + | |
− | TYPE=Ethernet
| + | |
− | IPV6INIT=no
| + | |
− | USERCTL=no
| + | |
− | IPADDR=192.168.228.8
| + | |
− | NETMASK=255.255.255.0
| + | |
− | DNS2=8.8.8.8
| + | |
− | DNS1=192.168.228.1
| + | |
− | #GATEWAY=192.168.228.1
| + | |
− | | + | |
− | Tautan:
| + | |
− | * Linux Home Server Howto http://www.brennan.id.au/index.html
| + | |