[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to bind a ethX network logical device to a specific network card adapter



Il giorno lun, 24/07/2006 alle 17.30 +0100, Peter Robinson ha scritto:
> > > 01:01.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
> > > 01:02.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
> > > 01:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
> > >
> > How to bind the eth0 logical device to 01:0b.0 physical device ?
> >
> > into /dev/modprobe.conf file I have this line:
> >
> > > alias eth0 r8169
> > > alias eth1 natsemi
> > > alias eth2 natsemi
> > >
> >
> > but this is not sufficient, when I reboot the machine,
> > some time the eth0 is bind to natsemi device and I must
> > change the network cable from Realtek to first NatSemi card
> >
> > Whit the old FC1 or FC3 this issue did not happen.
> >
> > Some suggest?
> 
> in the /etc/sysconfig/network-scripts/ifcfg-ethX files there is a
> config option "HWADDR=00:11:22:33:44:55" which allows you to bind a
> particular MAC address to a particular ethX which should do exactly as
> you want.

Ok, if I use the HWADDR value and last initscripts-8.31.5-1 I can bind
the logical device with physical device.

Many thanks!

A little problem, and question:
If the logical device is load without the HWADDR set, and it is not bind
to the correct physical device, the MAC show with 'ip a' is not that
right
 
> [root cambiami ~]# grep -E '(device: eth|network.h)' /etc/sysconfig/hwconf
> device: eth2
> network.hwaddr: 00:09:5b:1c:9d:97
> device: eth1
> network.hwaddr: 00:40:f4:5f:8e:d1
> device: eth0
> network.hwaddr: 00:13:d3:0d:38:c6
> 
> [root cambiami ~]# ip a|grep -E '(: eth|link/et)'
> 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
>     link/ether 00:09:5b:1c:9d:97 brd ff:ff:ff:ff:ff:ff
> 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
>     link/ether 00:40:f4:5f:8e:d1 brd ff:ff:ff:ff:ff:ff
> 4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
>     link/ether 00:13:d3:0d:38:c6 brd ff:ff:ff:ff:ff:ff

In this scenario, If I run 'neat' and press [probe] for eth0, 
the MAC address returned is 00:09:...(natsemi) and not 00:13:...(r8169)

What is the best way to get the right MAC for a specific network card?

Many thanks
 
-- 
Dario Lesca <d lesca solinos it>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]