How to map eth0 to a different interface

Wayne Betts wbetts at bnl.gov
Thu Apr 7 18:58:10 UTC 2005


On Thu, 2005-04-07 at 12:32, Mike Klinke wrote:
> On Wednesday 06 April 2005 21:28, Suraj Chandrasekaran wrote:
> > I am having a pc with 5 interface cards, 4 of which are gigi and
> > one is 100mbps.
> >
> > the gigis are eth0 to eth3 and the other is eth4. I want to map
> > eth0 to eth3 in the reverse, so that eth3 is called eth0 and eth2
> > is eth1, eth1 is eth2 and eth0 is eth3.
> >
> > I tried the ~/network-scripts/ifcfg-eth*, but am not successful.
> > I am using kernl version 2.4.18.
> >
> 
> I've not tested this suggestion myself but will the:
> 
> HWADDR 
> 
> ( see /usr/share/doc/initscripts-xxxx/sysconfig.txt )
> 
> directive in /etc/sysconfig/network-scripts/ifcfg-ethx
> 
> associate the correct device with the correct ethx interface?

That sounds like the answer.  You can add them by hand of course, but
Redhat's network config GUI (redhat-config-network (?)) has a "Bind to
MAC Address" option (or "Use Hardware Address" in older releases) that I
think does it for you.  

In the main window, select a device, click on Edit, then in the new
pop-up, click on the Hardware Device tab.  It can probe the device
currently in use -- but since you want to change the bindings, that
probably isn't what you want to use, so you can get the MAC addresses
for all of your interfaces from the output of ifconfig and bind them as
you wish.

HTH,

Wayne





More information about the redhat-list mailing list