alx
alx copied to clipboard
Network interface renamed when unload/load alx
Hi,
On Ubuntu 14.04.2 when you unload and then reload the alx module, the NIC is always renamed to eth0.
On my computer, the main network interface is named p19p1 (name given by biosdevname). When doing : sudo rmmod alx sudo modprobe alx the interface is renamed to eth0.
It is a little bit annoying because the module is unload when the computer is suspended. So when resuming from suspend, the network stops working...
I found a workaround by modifying the udev rules :
sudo cp /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/10-network.rules
sudo nano /etc/udev/rules.d/10-network.rules
Changing at the end of the line : KERNEL=="p19p1", NAME="eth0"
And by modifying /etc/network/interfaces :
auto p19p1
iface p19p1 inet dhcp
auto eth0 iface eth0 inet dhcp
But I think more investigation is needed to make it works ot of the box
OS : Ubuntu 14.04.2 Kernel : 3.16.0-37-generic NIC : Qualcomm Atheros AR816x/AR817x Ethernet