Инструменты пользователя

Инструменты сайта


ubuntu:ethernet-detect

eth0, eth1... Привязка нумерцаии к MAC адресам

В файл /etc/network/interfaces вписываются все сетевые интерфейсы, которые нам нужны.

В /etc/udev/rules.d/70-persistent-net.rules перечислены все устройства. eth* привязываются по MAC адресу.

# 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 0x1011:0x0009 (tulip)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:64:02:03", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1011:0x0009 (tulip)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:64:02:05", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x1011:0x0009 (tulip)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:64:02:09", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x1011:0x0009 (tulip)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:64:02:0b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

# PCI device 0x1011:0x0009 (tulip)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:64:0f:13", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"

# PCI device 0x1011:0x0009 (tulip)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:15:5d:64:0f:16", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"
ubuntu/ethernet-detect.txt · Последнее изменение: 2017/03/23 21:59 — 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki