Is anybody else noticing that wlug messages are repeating?
From: Mike Leo <mleo963@yahoo.com>
Looks like you're right!
From Redhat support:
If you look in the /etc/sysconfig/network-scripts/ directory you'll see a number of scripts named ifcfg-eth0, ifcfg-eth1, etc... Inside each of these files you should see a line HWADDR=xx:xx:xx:xx:xx:xx. Pluging in the MAC address for the desired NIC should allow you to specify which card uses which interface. Restart networking and you should be good to go.
--- Chuck Anderson <cra@WPI.EDU> wrote:
On Fri, Feb 17, 2006 at 12:41:21PM -0800, Mike Leo wrote:
yes, but that will only assign the right mac to the wrong NIC. eth0 will still be assigned to the "extra" nic port, not the one I want. but thanks for replying.
HWADDR doesn't assign MAC addresses to NICs. It just matches the NIC device with that hardware address.
MACADDR actually reprograms the MAC used by a NIC.
I think he may be right too, but the quote from Redhat actually says he is wrong. Redhat says HWADDR specifies which card goes in that slot; Chuck says MACADDR does it. I guess it depends on what you mean by "specify". I think the HWADDR just gives you error messages when it is wrong, but doesn't actually change the name. It may depend upon your specific version. I think both the kernel and the start-up scripts have been changing the way they do this. Here's what works for me: in /etc/init.d/network add the lines: # Check that networking is up. [ "${NETWORKING}" = "no" ] && exit 0 # set the ethernet names from the MAC addresses nameif || echo "Can not rename ethernet cards" in /etc/mactab: #The eth on the Intel motherboard is for the lan ethlan 00:13:20:1e:5b:1d #The Realtek in the pci slot is for the internet ethdsl 00:50:FC:A7:56:0F try "man nameif" for explanation, and then change mactab to contain the names you like instead of ethlan and ethdsl, the MAC addresses of your cards, and more interesting comments. /etc/sysconfig/network-scripts/ifcfg-ethlan # Intel Corp.|82562EZ 10/100 Ethernet Controller DEVICE=ethlan BOOTPROTO=static BROADCAST=192.168.1.255 HWADDR=00:13:20:1e:5b:1d IPADDR=192.168.1.111 NETMASK=255.255.255.0 NETWORK=192.168.1.0 ONBOOT=yes TYPE=Ethernet /etc/sysconfig/network-scripts/ifcfg-ethdsl # Realtek|RTL-8139/8139C/8139C+ DEVICE=ethdsl BOOTPROTO=static BROADCAST=66.92.74.255 HWADDR=00:50:FC:A7:56:0F IPADDR=66.92.74.188 NETMASK=255.255.255.0 NETWORK=66.92.74.0 TYPE=Ethernet ONBOOT=no # uname -a Linux fcs12 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux # cat /etc/fedora-release Fedora Core release 3 (Heidelberg) Like I said, it works for me but YMMV, You Might Muck-up your Version. -- -- Keith Wright <kwright@free-comp-shop.com> Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com> --- Food, Shelter, Source code. ---