logo

한국어

[Ubuntu] 인터페이스명 변경하기

관리자 2018.04.23 00:22 조회 수 : 30

# dmesg | grep eth
[    1.733275] e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:2d:67:1a
[    1.733307] e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
[    2.153651] e1000 0000:02:06.0 eth1: (PCI:66MHz:32-bit) 00:0c:29:2d:67:24
[    2.153926] e1000 0000:02:06.0 eth1: Intel(R) PRO/1000 Network Connection
[    2.156536] e1000 0000:02:06.0 ens38: renamed from eth1
[    2.159660] e1000 0000:02:01.0 ens33: renamed from eth0

# vi /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:2d:67:1a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:2d:67:24", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"