LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   eth0 / 1 confused over MAC address?? (https://www.linuxquestions.org/questions/linux-networking-3/eth0-1-confused-over-mac-address-355740/)

Nickj 08-22-2005 05:11 AM

eth0 / 1 confused over MAC address??
 
Hi,

I'm using Fedora 4 on a firewall box. Had a network problem the other day getting access to the internet.

After pulling my hair out for while I finally managed to sort out the problem. It seemed the two ethernet interfaces confused each others MAC address. I think they may have loaded in a different order.

Anyway, to solve the problem i just clicked the 'probe' using the system-config-network tool. I presume this updated the MAC addresses.

Can anyone shed any light on why this may have occured in the first place and can I hard code the MAC address and interface order to stop this problem reocurring?

Cheers guys,

Nick

bulliver 08-22-2005 10:41 AM

Code:

# ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
will set the MAC address...just change eth0 to eth1 for the second nic.

Not familiar with Fedora, but you will have to hack your network initscripts to save from doing this manually at boot.

peter_robb 08-22-2005 11:10 AM

The first network module to load gets to be eth0
Depending on your scripts and when the modules are loaded it is possible one could beat the other sometimes and swap the eth order..
If they are different, make sure they are defined in /etc/modules.conf, eg
alias eth0 8139too
alias eth1 via-rhine

If both cards use the same module it gets interesting..

peter_robb 08-22-2005 11:36 AM

And this link has some answers.. http://www.science.uva.nl/research/a...InterfaceNames


All times are GMT -5. The time now is 02:02 AM.