LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-06-2011, 06:14 AM   #1
neworder
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Ubuntu 10.04 ignores eth udev rules


For some reason, Ubuntu keeps assigning my network interface wrong MAC address. This happens only after fresh boot (I have dual boot with WinXP, if I start Windows first and then restart to Ubuntu without switching computer off, the MAC is correct).

Contents of /etc/udev/rules.d/70-persistent-net.rules:

Code:
# PCI device 0x10ec:0x8136 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:22:19:ef:1c:3d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x168c:0x001c (ath5k_pci)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:17:c4:78:f4:f8", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

# PCI device 0x10ec:0x8136 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:70:8b:13:72", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# USB device 0x:0x (rtl8187)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:1f:36:13:ed", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"

# PCI device 0x10ec:0x8136 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:f3:f5:ef:fe:56", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
Only the last MAC (00:f3:f5:ef:fe:56) is correct, the other two for eth0, eth1 are wrong. However, I keep getting only eth1 with incorrect MAC as the only network interface available.

I tried deleting the eth0, eth1 lines from /etc/udev/rules.d/70-persistent-net.rules and disabling /lib/udev/rules.d/75-persistent-net-generator.rules, but the problem persists, i.e. Ubuntu seems to be ignoring the udev rules.

EDIT: I made a workaround by adding
Code:
auto eth0
iface eth0 inet dhcp
hwaddress ether 00:f3:f5:ef:fe:56
to /etc/network/interfaces and it works. However, I'd still like to know why Ubuntu ignores my udev rules, regardless whether the workaround happens to work or not...

Last edited by neworder; 01-06-2011 at 06:20 AM.
 
Old 01-06-2011, 11:47 PM   #2
devwatchdog
Member
 
Registered: Jan 2010
Posts: 202

Rep: Reputation: 47
Hmmnn..this looks eerily familiar.

I'd suggest looking at this thread for some direction.

http://www.linuxquestions.org/questi...0-10-a-854079/

Dual boot - r8169 module. Odd coincidence I say.

Could be related, might not, but it is in your best interest to investigate.

Good luck.
 
  


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
Why UDEV ignores multiple rules for the same device? arctgx Linux - Hardware 5 01-16-2013 05:47 AM
Writing udev rules on Ubuntu 9.10 for two ports with the same product and vendor IDs ibwood Linux - Newbie 14 08-06-2010 03:46 PM
udev ignores network rules on Fedora 11 barth84 Linux - Networking 5 11-16-2009 02:10 AM
LXer: Writing UDEV rules to get a SCSI scanner working on Ubuntu LXer Syndicated Linux News 1 09-15-2009 11:15 AM
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory rcg1984 Linux From Scratch 2 09-17-2008 07:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:05 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration