<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-01 9:22 GMT+03:00 Eugene Prokopiev <span dir="ltr">&lt;<a href="mailto:enp@altlinux.org" target="_blank">enp@altlinux.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Здравствуйте!<br>
<br>
Пытаюсь переименовать enp0s3 в lan0 средствами systemd-networkd на<br>
свежем сизифе:<br>
<br>
 cat /etc/systemd/network/lan0.link<br>
[Match]<br>
MACAddress=08:00:27:4c:8f:ed<br>
Driver=e1000<br>
Path=pci-0000:00:03.0-*<br>
Type=eth<br>
Virtualization=no<br>
Host=localhost<br>
Architecture=i586<br>
<br>
[Link]<br>
Name=lan0<br>
<br>
На всякий случай:<br>
<br>
# udevadm info /sys/class/net/enp0s3<br>
P: /devices/pci0000:00/0000:00:03.0/net/enp0s3<br>
E: DEVPATH=/devices/pci0000:00/0000:00:03.0/net/enp0s3<br>
E: ID_BUS=pci<br>
E: ID_MODEL_FROM_DATABASE=82540EM Gigabit Ethernet Controller<br>
(PRO/1000 MT Desktop Adapter)<br>
E: ID_MODEL_ID=0x100e<br>
E: ID_NET_DRIVER=e1000<br>
E: ID_NET_LINK_FILE=/lib/systemd/network/99-default.link<br>
E: ID_NET_NAME=enp0s3<br>
E: ID_NET_NAME_MAC=enx0800274c8fed<br>
E: ID_NET_NAME_PATH=enp0s3<br>
E: ID_OUI_FROM_DATABASE=CADMUS COMPUTER SYSTEMS<br>
E: ID_PATH=pci-0000:00:03.0<br>
E: ID_PATH_TAG=pci-0000_00_03_0<br>
E: ID_PCI_CLASS_FROM_DATABASE=Network controller<br>
E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller<br>
E: ID_VENDOR_FROM_DATABASE=Intel Corporation<br>
E: ID_VENDOR_ID=0x8086<br>
E: IFINDEX=2<br>
E: INTERFACE=enp0s3<br>
E: SUBSYSTEM=net<br>
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enp0s3<br>
/sys/subsystem/net/devices/enp0s3<br>
E: TAGS=:systemd:<br>
E: USEC_INITIALIZED=11340375<br>
<br>
И никакого эффекта. И даже в случае net.ifnames=0 в kernel command<br>
line максимум что выходит - eth0 :(<br></blockquote></div><div class="gmail_extra"><br></div>покажите ещё networkctl status enp0s3.</div><div class="gmail_extra">Мне кажется у Вас не попадает под правила ваша сетевая карта.</div><div class="gmail_extra">Оставьте минимум в [Match]:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">[Match]</div><div class="gmail_extra">MACAddress=08:00:27:4c:8f:ed</div><div class="gmail_extra">Driver=e1000</div><div>Virtualization=no<br></div><div><br></div><div>и переименуйте в 50-lan0.link</div><div><br></div>-- <br><div class="gmail_signature">Alexey Shabalin<br><br><br><br></div>
</div></div>