FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 09-19-2011, 03:04 PM
Volker Poplawski
 
Default eth enumeration order

I have installed Centos 6 on a server with two NICs. It so happens that
the NIC with the lower ARP adr is assigned 'eth1' and the NIC with the
higher ARP 'eth0'. (Not sure if this a bug but it is at least inconvenient)

I have modified the udev rules in
/etc/udev/rules.d/70-persistent-net.rules
by swapping eth0 with eth1 in the NIC's rules.

However: the file gets changed on reboot. A third rule is automaticaly
added for some reason, for one of the NICs which already has a rule. See
below.
The system ends up with no network interface set up at all, because the
init-script gets confused.

So....
How do you specifiy the order in which NICs are enumerated?
or at least how to tell centos to stop messing with the
70-persistent-net.rules?


Regards
.....Volker



Contents of /etc/udev/rules.d/70-persistent-net.rules (arps anonymized):

(These are the two rules modified by me, assigning eth0/eth1 in
ascending arp order)

# PCI device 0x8086:0x10d3 (e1000e) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="xx:xx:xx:xx:8f:ea", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"

# PCI device 0x8086:0x1502 (e1000e) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="xx:xx:xx:xx:8f:eb", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"

(This is the rule which gets automaticaly added on reboot)

# PCI device 0x8086:0x1502 (e1000e) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="xx:xx:xx:xx:8f:eb", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-19-2011, 09:48 PM
Robert Spangler
 
Default eth enumeration order

On Monday 19 September 2011 11:04, the following was written:

> So....
> How do you specifiy the order in which NICs are enumerated?
> or at least how to tell centos to stop messing with the
> 70-persistent-net.rules?

Add the hardware addresses to their ifcfg-eth# files.

HWADDR=xx:xx:xx:xx:xx:xx


--

Regards
Robert

Linux
The adventure of a lifetime.

Linux User #296285
Get Counted
http://linuxcounter.net/
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-20-2011, 08:10 AM
Volker Poplawski
 
Default eth enumeration order

On 19.09.2011 23:48, Robert Spangler wrote:
> On Monday 19 September 2011 11:04, the following was written:
>
>> So....
>> How do you specifiy the order in which NICs are enumerated?
>> or at least how to tell centos to stop messing with the
>> 70-persistent-net.rules?
>
> Add the hardware addresses to their ifcfg-eth# files.
>
> HWADDR=xx:xx:xx:xx:xx:xx

That's it?! What about udev?

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-20-2011, 01:57 PM
 
Default eth enumeration order

Volker Poplawski wrote:
> On 19.09.2011 23:48, Robert Spangler wrote:
>> On Monday 19 September 2011 11:04, the following was written:
>>
>>> So....
>>> How do you specifiy the order in which NICs are enumerated?
>>> or at least how to tell centos to stop messing with the
>>> 70-persistent-net.rules?
>>
>> Add the hardware addresses to their ifcfg-eth# files.
>>
>> HWADDR=xx:xx:xx:xx:xx:xx
>
> That's it?! What about udev?

You can put the hardware address in 70-persistant-net.rules.

mark

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-20-2011, 10:12 PM
Robert Spangler
 
Default eth enumeration order

On Tuesday 20 September 2011 04:10, the following was written:

> On 19.09.2011 23:48, Robert Spangler wrote:
> > On Monday 19 September 2011 11:04, the following was written:
> >> So....
> >> How do you specifiy the order in which NICs are enumerated?
> >> or at least how to tell centos to stop messing with the
> >> 70-persistent-net.rules?
> >
> > Add the hardware addresses to their ifcfg-eth# files.
> >
> > HWADDR=xx:xx:xx:xx:xx:xx
>
> That's it?! What about udev?

Do not know. Never had to touch udev rules for my network.


--

Regards
Robert

Linux
The adventure of a lifetime.

Linux User #296285
Get Counted
http://linuxcounter.net/
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 06:44 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org