[CALUG] Random Network Interfaces

Jim Bauer jfbauer at comcast.net
Wed Mar 23 06:58:50 EDT 2011


On 03/22/2011 11:32 PM, Randal T. Rioux wrote:
> Greetings.
>
> I haven't used Linux as a router/firewall in 15 years. Usually use
> OpenBSD or dedicated appliances. I wanted to give RHEL6 a shot and
> experienced some oddities.
>
> I've also tested this with Slackware 13.1 for the record.
>
> I have 8 NICs on an IBM x345. With OpenBSD, I can reboot and switch
> cables and networks and the NIC devices are always named the same.
>
> Doing the same with RHEL and Slackware keeps
> incrementing/adding/removing eth's each time (messing up IP assignments
> and causing general mayhem), i.e. eth0 because eth3, eth5 is gone, etc.
>
> Is this a feature? Can somebody explain this to me? My Web search foo
> must be weak this evening.
>

This might be the same thing I noticed a while back with ubuntu when I 
replaced some ancient network cards with something more modern and the 
eth numbers all changed (except for the one card I left in place).  I 
tracked it to udev.  It remembers the MAC addresses and if eth0 had 
01:02:03:04:05:06 then eth0 will always have that mac address.  So it 
you replace that card with another, the new card will get the next 
available ethN.  And if you ever put back that old card, it'll reappear 
as eth0.  I believe /etc/udev/rules.d/70-persistent-net.rules is where 
that is recorded.





More information about the CALUG mailing list