LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-06-2009, 12:49 PM   #1
Gflopper
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
Question MAC address changes on every boot using nForce ethernet driver Version 0.61


I cannot connect to the LAN because every time I boot my notebook computer
has a different MAC address for the wired eth0. The router denies access
to MAC addresses that have not been authorized. I am first trying to connect
only by a wired connection. I searched for and found others having a similar
problem, but not exactly. Also the suggestions there do not seem to apply
to my particular system.

I have an HP Pavillion dv6000. I have tried Kubuntu 8.04 and
Debian Lenny Release Candidate 1 distos. Both distros have the same problem.
The following details edited from uname, dmesg, and lshal were obtained
while running Debian Lenny RC1.

Notice that in dmesg an all-zeros Mac address was detected, and then it says
it is switching to a "random MAC". It is not entirely random. The first
three bytes always seem to be the same 00:00:6c for what it's worth. I can't
change the router. Is there any way I can designate a permenant MAC address
that will be reliable every time I boot?

From uname -r:
2.6.26-1-686

From dmesg:
[ 4.024538] forcedeth: Reverse Engineered nForce ethernet driver. Version 0.61.
[ 4.024949] ACPI: PCI Interrupt Link [LMAC] enabled at IRQ 20
[ 4.024960] ACPI: PCI Interrupt 0000:00:14.0[A] -> Link [LMAC] -> GSI 20 (level, high) -> IRQ 20
[ 4.024968] PCI: Setting latency timer of device 0000:00:14.0 to 64
[ 4.024996] forcedeth 0000:00:14.0: Invalid Mac address detected: 00:00:00:00:00:00
[ 4.025047] forcedeth 0000:00:14.0: Please complain to your hardware vendor. Switching to a random MAC.
[ 4.546168] forcedeth 0000:00:14.0: ifname eth0, PHY OUI 0x732 @ 1, addr 00:00:6c:bd:43:53
[ 4.546173] forcedeth 0000:00:14.0: highdma pwrctl timirq lnktim desc-v3

From lshal:

udi = '/org/freedesktop/Hal/devices/pci_10de_269'
info.linux.driver = 'forcedeth' (string)
info.parent = '/org/freedesktop/Hal/devices/computer' (string)
info.product = 'MCP51 Ethernet Controller' (string)
info.subsystem = 'pci' (string)
info.udi = '/org/freedesktop/Hal/devices/pci_10de_269' (string)
info.vendor = 'nVidia Corporation' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'pci' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:14.0' (string)
pci.device_class = 6 (0x6) (int)
pci.device_protocol = 0 (0x0) (int)
pci.device_subclass = 128 (0x80) (int)
pci.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:14.0' (string)
pci.product = 'MCP51 Ethernet Controller' (string)
pci.product_id = 617 (0x269) (int)
pci.subsys_product = 'Presario V6133CL' (string)
pci.subsys_product_id = 12471 (0x30b7) (int)
pci.subsys_vendor = 'Hewlett-Packard Company' (string)
pci.subsys_vendor_id = 4156 (0x103c) (int)
pci.vendor = 'nVidia Corporation' (string)
pci.vendor_id = 4318 (0x10de) (int)

Thanks in advance for your help.
 
Old 01-06-2009, 01:17 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Go into the systems BIOS and theres an option in there for the NIC anonimizer / randomizer or some such nonesense.
Disable that 'feature' and the problem should go away.
 
Old 01-06-2009, 08:46 PM   #3
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
I've got a similar problem, with Fedora. I googled around for a fix some time ago, and the best I could find was the suggestion that it was a bios bug, or something to do with my chipset.

However, I did come up with a workable fix, just not as clean as I would like. You want to change your MAC to a desired address manually, before the network service is started. I created a new service, "setmac":
Code:
[donkey@trv712]# cat /etc/init.d/setmac
#!/bin/sh
#
#
# chkconfig: 345 05 51
# description: fix MAC address before NetworkManager starts

. /etc/init.d/functions

ifconfig eth0 hw ether 00:00:6c:7f:4c:60

exit 0
The syntax here is for Fedora; Debian services are probably started differently, but you want the line containing ifconfig at minimum. Number the new service so that it starts before the network service. Maybe a Debian expert can fill in the details?

I also had the symptom that udev, encountering a MAC it had never seen before, assigned the network adapter to a new device on each boot: eth1, eth2, ... maddening, to say the least. I worked around this by editing /etc/udev/rules.d/70-persistent-net.rules to remove the reference to the MAC.
 
Old 01-06-2009, 09:03 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
90 percent of bios related problems are solved by setting them to non-OS controlled system. or non windows or even older non 0S2 and let linux just read them and not get involved.
because Linux is not the greatest at doing that Thank you farslayer I would have never thought of that. cool
 
Old 01-06-2009, 11:09 PM   #5
saurabh jain1983
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
how to crack linux exam of exam code 133,253
 
Old 01-07-2009, 08:17 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by saurabh jain1983 View Post
how to crack linux exam of exam code 133,253
That is totally inappropriate for these forums. not to mention posted in the wrong place if it were appropriate. Don't hijack other users threads, especially with topics that are against the rules..

please read them.
http://www.linuxquestions.org/linux/rules.html

Thanks
 
Old 01-07-2009, 08:19 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I have also noticed with a couple searches the forcedeth driver has had bugs occasionally that cause the MAC to change for various reasons.. I couldn't pinpoint a particular bug for this situation but it's also a possibility.
 
Old 01-07-2009, 09:26 AM   #8
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
Code:
Forcedeth driver has had bugs occasionally that cause the MAC to change
Farslayer, that was exactly my own situation, which first manifested itself after Fedora Core 6, IIRC. When the MAC is arbitrarily set to something illegal, the kernel sets it to something legal, but random.
When this first occurred on my system, I had looked for an incorrect BIOS setting as you suggested, without success.

Last edited by drchuck; 01-07-2009 at 09:29 AM.
 
Old 01-07-2009, 10:18 AM   #9
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
A test to see if it's forcedeth

I had the same behavior with forcedeth with openSUSE 10.3, but it disappeared after 11.0. You could check by burning a live-cd of a newer distro that allows you to make and save changes: I have Ubuntu 8.10 on a USB flash drive that I could use. Boot and configure the connection, saving the settings, then reboot. If you connect you might consider if a newer installation of some flavor of 8.10 would solve the problem.
 
  


Reply



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
Getting MAC address from Ethernet packet in C++ eljofi Programming 9 10-13-2013 02:21 AM
changing ethernet mac address and retaining the same after reboot guy24x Linux - Hardware 3 02-06-2009 06:51 AM
Viewing ethernet activity using a MAC address noonmid27 Linux - Networking 6 04-03-2007 09:31 AM
processor ID, Hardisk Volume ID, Ethernet Mac Address sadafwaqas Linux - Hardware 1 05-17-2006 08:01 AM
Problem: NVIDIA nForce nvnet ethernet driver Peff Fedora 6 01-22-2004 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:17 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