[sisyphus] Rename network interface in systemd-networkd
Eugene Prokopiev
enp на altlinux.org
Вт Сен 1 09:22:38 MSK 2015
Здравствуйте!
Пытаюсь переименовать enp0s3 в lan0 средствами systemd-networkd на
свежем сизифе:
cat /etc/systemd/network/lan0.link
[Match]
MACAddress=08:00:27:4c:8f:ed
Driver=e1000
Path=pci-0000:00:03.0-*
Type=eth
Virtualization=no
Host=localhost
Architecture=i586
[Link]
Name=lan0
На всякий случай:
# udevadm info /sys/class/net/enp0s3
P: /devices/pci0000:00/0000:00:03.0/net/enp0s3
E: DEVPATH=/devices/pci0000:00/0000:00:03.0/net/enp0s3
E: ID_BUS=pci
E: ID_MODEL_FROM_DATABASE=82540EM Gigabit Ethernet Controller
(PRO/1000 MT Desktop Adapter)
E: ID_MODEL_ID=0x100e
E: ID_NET_DRIVER=e1000
E: ID_NET_LINK_FILE=/lib/systemd/network/99-default.link
E: ID_NET_NAME=enp0s3
E: ID_NET_NAME_MAC=enx0800274c8fed
E: ID_NET_NAME_PATH=enp0s3
E: ID_OUI_FROM_DATABASE=CADMUS COMPUTER SYSTEMS
E: ID_PATH=pci-0000:00:03.0
E: ID_PATH_TAG=pci-0000_00_03_0
E: ID_PCI_CLASS_FROM_DATABASE=Network controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller
E: ID_VENDOR_FROM_DATABASE=Intel Corporation
E: ID_VENDOR_ID=0x8086
E: IFINDEX=2
E: INTERFACE=enp0s3
E: SUBSYSTEM=net
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enp0s3
/sys/subsystem/net/devices/enp0s3
E: TAGS=:systemd:
E: USEC_INITIALIZED=11340375
И никакого эффекта. И даже в случае net.ifnames=0 в kernel command
line максимум что выходит - eth0 :(
--
WBR,
Eugene Prokopiev
Подробная информация о списке рассылки Sisyphus