다른 것은 리눅스에서 그대로 사용할 수 있겠지만 가장 눈에 띄는 문제는 네트워크 설정의 문제가 발생하였다. 이전 네트워크 카드가 eth0로 등록되어있는 상태에서 네트워크 카드가 교체되었기 때문에 이를 수정해야하는 문제가 발생하였다.
$ ifconfig eth1 Link encap:Ethernet HWaddr 00:e0:4d:1f:86:bf inet addr:xxx.xxx.xxx.xxx Bcast:210.216.220.255 Mask:255.255.255.0 inet6 addr: fe80::xxxx:xxxx:xxxx:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:216 errors:0 dropped:0 overruns:0 frame:0 TX packets:237 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:27149 (27.1 KB) TX bytes:34943 (34.9 KB) Interrupt:20 Base address:0x4000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:680 (680.0 B) TX bytes:680 (680.0 B)
문제가 되는 설정은 udev에서 장치에 대한 설정을 가지고 있는 것이 문제이다. 그래서 기존 설정을 삭제하고 새로운 설정에 맞도록 수정하는 것이 필요하다. 수정은 vi를 이용하여 간단히 할 수 있으며 여기에 그 예제를 기술하면 다음과 같다.
$ sudo cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4d:1f:86:b2", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4d:1f:86:bf", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
수정후
$ sudo cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x10ec:0x8167 (r8169)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4d:1f:86:b2", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4d:1f:86:bf", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
결국 바뀌는 부분은 이전의 eth0 부분을 삭제하고 새로 잡힌 eth1 장치를 eth0로 수정하여 주는 것이 필요하다.
ifconfig의 결과는 다음과 같다.
$ ifconfig eth0 Link encap:Ethernet HWaddr 00:e0:4d:1f:86:bf inet addr:xxx.xxx.xxx.xxx Bcast:210.216.220.255 Mask:255.255.255.0 inet6 addr: fe80::xxxx:xxxx:xxxx:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:216 errors:0 dropped:0 overruns:0 frame:0 TX packets:237 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:27149 (27.1 KB) TX bytes:34943 (34.9 KB) Interrupt:20 Base address:0x4000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:680 (680.0 B) TX bytes:680 (680.0 B)
