Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
Re: [SLE] Changing eth1 to eth0 [SOLVED]
  • From: Rui Santos <rsantos@xxxxxxxxxxxxx>
  • Date: Wed, 05 Jul 2006 17:11:15 +0100
  • Message-id: <44ABE4A3.7010300@xxxxxxxxxxxxx>
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@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >
References