My installation of Leap 42.3 seems to have worked (not fully tested yet).
During the installation, I was given the illusion to be able to assign a name to the Ethernet card. I wanted to call it eth0 but it was already set at ‘p5p1’ and impossible to change.
Never mind I thought, I can surely change it after installation. But no. If I go to Yast,Network Settings, I get a warning that they card is managed by “Netwrok Manager” and that some options might not be able to change. Sure enough clicking on Overview does not let me change it.
Same if I change the Network Manager Service to Wicked or “Network Services Disabled”.
So, how can I change the Ethernet card name from p1p5 to eth0?
Since I’m here, how can I change the MAC ? Here there’s a method for OpenSuse : any problems ?
If you are using NetworkManager, I don’t think you can change the name.
With “wicked”, if I click on “Edit” for the network card, and then click the Hardware tab, I can see where to change the device name. However, it is grayed out, so I don’t think I can change it with “wicked” either. I seem to recall that it could be changed in earlier times, before “wicked” existed (using “ifup” scripts).
You disable the assignment of fixed names, so that the unpredictable kernel names are used again. For this, simply mask udev's .link file for the default policy: ln -s /dev/null /etc/systemd/network/99-default.link
You create your own manual naming scheme, for example by naming your interfaces "internet0", "dmz0" or "lan0". For that create your own .link files in /etc/systemd/network/, that choose an explicit name or a better naming scheme for one, some, or all of your interfaces. See systemd.link(5) for more information.
You pass the net.ifnames=0 on the kernel command line
# This file was automatically generated by the /usr/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 0x8086:0x3165 (iwlwifi)
# This file was automatically generated by the /usr/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 0x8086:0x3165 (iwlwifi)
# This file was automatically generated by the /usr/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 0x8086:0x3165 (iwlwifi)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="70:1c:e7:84:a3:6e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
I have seen that. I was not sure what to do, just create the symbolic link in ln -s /dev/null /etc/systemd/network/99-default.link ?
The /etc/systemd/network directory does not exist on my system though.
O,k, I’ll need to open another thread though : cloning the MAC address does not work with eth0 (it oscillates between connects and disconnects
manytimes a minute).