Hi all, I've installed OpenSuSE 10.1, with one NIC. It was assigned the 'eth0' name to network device as it should be. Now, I've replaced the NIC with another one and, it has the 'eth1' name on the network device. I've tried to delete it with YaST and set it up again with no success. Is there any way to change the network interface name? I do not use NetworkManager. -- Rui Santos http://www.ruisantos.com/ They that would give up essential liberty for temporary safety deserve neither one of them. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Rui Santos wrote:
I've installed OpenSuSE 10.1, with one NIC. It was assigned the 'eth0' name to network device as it should be. Now, I've replaced the NIC with another one and, it has the 'eth1' name on the network device. I've tried to delete it with YaST and set it up again with no success. Is there any way to change the network interface name? I do not use NetworkManager.
Edit /etc/udev/rules.d/30-net_persistent_names.rules and swap the names. /Per Jessen, Zürich -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Rui Santos wrote:
Hi all,
I've installed OpenSuSE 10.1, with one NIC. It was assigned the 'eth0' name to network device as it should be. Now, I've replaced the NIC with another one and, it has the 'eth1' name on the network device. I've tried to delete it with YaST and set it up again with no success. Is there any way to change the network interface name? I do not use NetworkManager.
On /etc/sysconfig/network/config I've changed FORCE_PERSISTENT_NAMES to no and it uses the network cards as the Kernel detects it. It was what I wanted. but, you someone just wants to change that single NIC name one could do it at /etc/udev/rules.d/30-net_persistent_names.rules and, eg, delete the line SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:15:f2:e0:a0:33", IMPORT="/lib/udev/rename_netiface %k eth0" and change SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:01:6c:f5:a7:52", IMPORT="/lib/udev/rename_netiface %k eth1" to SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:01:6c:f5:a7:52", IMPORT="/lib/udev/rename_netiface %k eth0" Hope it helps someone. -- Rui Santos http://www.ruisantos.com/ They that would give up essential liberty for temporary safety deserve neither one of them. -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (2)
-
Per Jessen
-
Rui Santos