LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-22-2005, 05:11 AM   #1
Nickj
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora 4
Posts: 27

Rep: Reputation: 15
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
 
Old 08-22-2005, 10:41 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
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.
 
Old 08-22-2005, 11:10 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
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..
 
Old 08-22-2005, 11:36 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find an IP address from the MAC address of a remote machine ? jitz Linux - General 3 01-03-2006 07:55 AM
How to find IP address of a machine if I know their MAC Address dysenteryduke Linux - Networking 13 09-12-2005 10:21 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
Should i use the eth0 ip address of my internet ip address when applying iptables ForumKid Linux - Security 2 01-03-2002 08:54 AM


All times are GMT -5. The time now is 01:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration