Brian O'Mahony wrote:
> Conor / Thomas thanks for all the suggestions. These machines will be on remote sites where, so the checking cables will be out. I think locking the MAC addresses to the interface is the best option for me.
>> Thanks again.
>> -----Original Message-----
> From: Thomas Pedoussaut [mailto:thomas at pedoussaut.com]
> Sent: 02 December 2009 12:43
> To: Brian O'Mahony
> Cc: ilug at linux.ie> Subject: Re: [ILUG] NICs in RHEL
>> On Wed, 2009-12-02 at 12:26 +0000, Brian O'Mahony wrote:
>>> I am setting up a 2850 to do some testing for moving our code
>> repositories over to SAN storage. I have a pe2850 with two onboard
>> NICs and a dual port PCI nic. All four ports are coming up as
>> Intel e1000 ports. Is there any way of telling from inside the OS
>> which exact port eth0,1,2,3 actually are? Ive seen RHEL change port
>> around before, and I was just wondering how to check which interface
>> corresponds to which physical port, as this will probably be
>> important when we implement it.
>>>> There is 2 elements there.
> 1) using mii-tool or ethtool and plugging one by one the interfaces to a
> switch you can determinate which is which.
> 2) in /etc/sysconfig/network-scripts/ifcfg-ethX you can set
> HWADDR=XX:XX:XX:XX:XX:XX to the NIC's ethernet address which should
> "lock" the link between ethX and the physical port.
>This won't always work mate. I have a few boxes (including one ancient
decomissioned desktop) which swap the MAC addresses round on every odd
It's a PCI enumeration issue which affects some distros in some
I just use this on any platform, and it just works(tm)
This is the solution I use:
1. use ifconfig to get yer MAC addresses, then
2. set them with udev.
# vi /etc/udev/rules.d/75-ethx.rules
This way you will be guaranteed that the MAC addresses do not change on
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!