Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Second ethernet card corrupts the first's MAC
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Alabattai
n00b
n00b


Joined: 30 Jul 2008
Posts: 9
Location: Warsaw

PostPosted: Sun Jan 24, 2010 9:38 am    Post subject: Second ethernet card corrupts the first's MAC Reply with quote

I am experiencing a very weird problem after adding a new ethernet card.

The MAC of my first card, an integrated Realtek 8169, changes. Two last bytes remain as they were, but others are now 00. Additionally, the card fails to operate normally after manualy restoring the MAC with ifconfig. The second card (realtek 8139) appears to be working fine.
The funny thing is, when I boot Windows, everything is fine. Then, after booting gentoo, it still works fine. On the second boot of gentoo, the MAC f**ks up again, thus forcing me to boot windows before every gentoo boot.

My kernel version is gentoo-sources-2.6.32-r2.

Any ideas?
_________________
It really is of importance, not only what men do, but also what manner of men they are that do it.
Among the works of man... the first importance surely is man himself.
- John Stuart Mill, On Liberty
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 911
Location: Switzerland

PostPosted: Mon Jan 25, 2010 7:39 pm    Post subject: Reply with quote

lol... that is really strange!

What do you have got in /etc/udev/rules.d/70-persistent-net.rules then!?!

Does dmesg tells you anything useful?
_________________
Power to the people!
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Jan 25, 2010 11:16 pm    Post subject: Reply with quote

Run this and reboot :

Code:

# rm /etc/udev/rules.d/70-persistent-net.rules
Back to top
View user's profile Send private message
Alabattai
n00b
n00b


Joined: 30 Jul 2008
Posts: 9
Location: Warsaw

PostPosted: Thu Jan 28, 2010 8:57 am    Post subject: Reply with quote

It doesn't change anything. This file contains two entries for my first card: one for the correct MAC, one for the corrupted. (and an entry for the second card of course)
Removing it only causes the system to create an entry with the corrupted MAC and the card still doesn't work. (but the "transmission" light is flashing)

dmesg doesn't show that anything is wrong.
_________________
It really is of importance, not only what men do, but also what manner of men they are that do it.
Among the works of man... the first importance surely is man himself.
- John Stuart Mill, On Liberty
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7447

PostPosted: Thu Jan 28, 2010 11:06 am    Post subject: Reply with quote

Once the error is there, reboot with a livecd to see if it work.

edit: even me i don't know what i was trying to say.
I just mean, boot gentoo, let the error come, and then instead of booting in windows, boot from a livecd (it's to see if it's a kernel issue: sure it's one, the driver or the kernel, but it might be from a kernel version and livecd might have one earlier than yours OR a bad option in the kernel).


Last edited by krinn on Thu Jan 28, 2010 7:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Thu Jan 28, 2010 11:08 am    Post subject: Reply with quote

can you show us the contents of /etc/udev/rules.d/70-persistent-net.rules
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7584
Location: almost Mile High in the USA

PostPosted: Thu Jan 28, 2010 4:48 pm    Post subject: Reply with quote

I'll apologize up front that I don't know what's going on here, but I may have a similar issue here.

I also have an rtl8169 that appears to have its MAC address corrupted once in a while with no real pattern. It's at least consistently corrupting so my persistent-net-rules will take the same card each time so I don't have an ethX incrementing/shifting problem. I do have two ethernet ports on this machine - the onboard SiS900 doesn't get used but does get insmodded...

I only detected this when I noticed I had wrote down the MAC address of this card and suddenly noticed another unknown MAC address on my network...same as the one I wrote but first bytes were different... then I checked this machine and sure enough they were the changed bytes... weird.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Alabattai
n00b
n00b


Joined: 30 Jul 2008
Posts: 9
Location: Warsaw

PostPosted: Sun Feb 21, 2010 8:28 am    Post subject: Reply with quote

Tried to boot from livecd, but even then the issue remains. Looks like I'll have to stick with two PCI cards.
_________________
It really is of importance, not only what men do, but also what manner of men they are that do it.
Among the works of man... the first importance surely is man himself.
- John Stuart Mill, On Liberty
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Feb 21, 2010 5:03 pm    Post subject: Reply with quote

In fact, it's the only way to do it I think.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum