vi /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:67:1a:12:71", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0 (e1000e) # USB device 0x0b95:0x772b (usb) # PCI device 0x8086:/sys/devices/pci0000:00/0000:00:01.1/0000:02:00.1 (e1000e) # PCI device 0x8086:/sys/devices/pci0000:00/0000:00:01.1/0000:02:00.0 (e1000e)
|
|
来自: antyoung > 《Ubuntu-linux》