$ sudo /usr/bin/nm-connection-editor
$ cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=orange.homelan
$ cat /etc/hosts 127.0.0.1 orange.homelan localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
$ cat /etc/resolv.conf # Generated by NetworkManager nameserver 192.168.1.6
起動時に、Fedora によって勝手に書き換えられるみたい
$ dmesg | grep eth0 eth0: RTL8168c/8111c at 0xf8530000, 00:01:c0:07:66:db, XID 1c4000c0 IRQ 24 r8169: eth0: link up $ dmesg | grep eth1 eth1: RTL8168c/8111c at 0xf8534000, 00:01:c0:07:66:dc, XID 1c4000c0 IRQ 25 r8169: eth1: link down
$ ls /etc/sysconfig/network-scripts/ ifcfg-eth0 ifdown-ipsec ifup ifup-isdn ifup-wireless ifcfg-eth1 ifdown-ipv6 ifup-aliases ifup-plip init.ipv6-global ifcfg-lo ifdown-isdn ifup-bnep ifup-plusb net.hotplug ifcfg-wlan0 ifdown-post ifup-eth ifup-post network-functions ifdown ifdown-ppp ifup-ippp ifup-ppp network-functions-ipv6 ifdown-bnep ifdown-routes ifup-ipsec ifup-routes ifdown-eth ifdown-sit ifup-ipv6 ifup-sit ifdown-ippp ifdown-tunnel ifup-ipx ifup-tunnel $ cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller DEVICE=eth0 HWADDR=00:01:C0:07:66:DB TYPE=Ethernet BOOTPROTO=none IPADDR=192.168.1.2 PREFIX=24 GATEWAY=192.168.1.1 DNS1=192.168.1.6 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 ONBOOT=yes
/etc/sysconfig/networking/ifcfg-eth0 にも同じ内容の設定が必要(なんで synbolic link になっていないんだろう?)
$ ls /etc/sysconfig/networking/devices/ ifcfg-eth0 ifcfg-eth1 ifcfg-wlan0 $ cat /etc/sysconfig/networking/devices/ifcfg-eth0 # Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller DEVICE=eth0 HWADDR=00:01:C0:07:66:DB TYPE=Ethernet BOOTPROTO=none IPADDR=192.168.1.2 PREFIX=24 GATEWAY=192.168.1.1 DNS1=192.168.1.6 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 ONBOOT=yes
$ sudo /sbin/ifconfig eth0 down $ sudo /sbin/ifconfig eth0 up
$ /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:01:C0:07:66:DB inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: 2001:c90:4c1:1270:201:c0ff:fe07:66db/64 Scope:Global inet6 addr: fe80::201:c0ff:fe07:66db/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:85027 errors:0 dropped:0 overruns:0 frame:0 TX packets:85046 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15248047 (14.5 MiB) TX bytes:72909873 (69.5 MiB) Interrupt:24 eth1 Link encap:Ethernet HWaddr 00:01:C0:07:66:DC UP BROADCAST MULTICAST MTU:1500 Metric:1---- ...
$ /sbin/route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0