LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-18-2012, 04:49 PM   #1
x201s
Member
 
Registered: Dec 2010
Posts: 67

Rep: Reputation: 0
device eth0 has different mac address


This is a problem of a RHEL server in a virtual machine (Hypervisor)
It was working perfectly ok before I did something stupid.
My intentions were not bad
I wanted to remove unwanted services, rpms, etc.
So I stopped services and removed them. I removed many rpms as well.
But I overdid it. Obviously.

First sign was that my kde would not start after restarting the server, even though I had not deleted, afaik, X11-related rpms. It said kdeinit or something like that failed to start. Through Linux rescue, I was able to access inittab and start linux with level 3.

But now it says "device eth0 has different mac address". The ifcfg-eth0 file has the same HWADDR as that shown in MAC Address of network adapter property of the admin console of the VM.

What I have tried so far:
(1) delete ifcfg-eth0 file or comment out the line that says HWADDR=xxx
(2) checked hwconf, but no entry for HWDAAR
(3) deleted hwconf, re-created with /sbin/kudzu, but still no HWADDR entry
(4) I don't have /etc/udev/rules.d/70-persistent-net.rules file.
The closest I have is 60-network-rules. No sign of HWADDR there as well.

Where else does the OS check for MAC address consistency?

I can reinstall OS but I have installed other stuff, upto a week's work, so if possible, I just want to fix this (and later X11) networking issue.

How do I build the network functions ground up? In Windows, there is an option like "repair the OS", so just like that, isn't there an option in Linux?

Gurus, please give me some direction!

Thank you.
PS: I do not access to the Hypervisor side files. Also, I haven't tried manual HWADDR. How do I create a valid manual HWADDR?
 
Old 11-18-2012, 07:33 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Quote:
Originally Posted by x201s View Post
My intentions were not bad
Those are the worst.


Quote:
Originally Posted by x201s View Post
I wanted to remove unwanted services, rpms, etc. () But I overdid it.
How about re-installing non-Xorg / DE / WM / GUI / Eye candy packages? The Yum log should show any install / remove file ops.


Quote:
Originally Posted by x201s View Post
Where else does the OS check for MAC address consistency?
While you haven't told us what tool exactly shows the message (ifconfig? 'ip link show'?) IIRC the two default locations in /etc where a ethernet device MAC address should be listed are /etc/sysconfig/network-scripts/ifcfg-%{device} (Kudzu?) and in /etc/sysconfig/networking/ (system-config-network?). Any other locations in /etc are the domain of specific network managers or own creativity (like creating your own /etc/dhclient.conf). If the client uses DHCP then the clients lease file, somewhere in /var/lib/%{dhcp_clientname}, should hold MAC addresses as well. Grepping /etc/ and /var for the MAC address recursively should show.


Quote:
Originally Posted by x201s View Post
How do I build the network functions ground up?
Ensuring the devices drivers are not gone (lsmod), checking the current devices specs (ifconfig) and having the initscripts and dhclient (and optionally the system-config-network-tui) packages should be a start.
 
Old 11-18-2012, 09:07 PM   #3
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
(1)
The message (Device eth0 has different MAC address than expected, ignoring) is shown when I restart the server.
Or, when do /etc/init.d/network start, it says,
//-----
Bringing up loopback interface: OK
Bringing up interface eth0: Device eth0 has different MAC address than expected, ignoring, FAILED
//-----
When I do ifconfig -a, I only see the loopback interface.

(2)
/etc/sysconfig/network-scripts/ifcfg-eth0 does have HWADDR listed, but /etc/sysconfig/networking/ does not have any files. It has two directories: "devices" and "profiles". Devices is empty and
profiles has another directory (default) which is empty.

>If the client uses DHCP
The server in question has static IP.

>Ensuring the devices drivers are not gone (lsmod), checking the current devices specs (ifconfig) and having the initscripts and dhclient (and optionally the system-config-network-tui) packages should be a start.

>lsmod
What would I be looking for to find if the device drivers are intact?

#lspci | grep Ethernet gives me:
0b:00.0 Ethernet Controller VMWare VMXNET3 Ethernet Controller (rev 01)

But
#dmesg | grep eth gives me blank.

Also, no "alias eth0" entry in /etc/modprob.conf

>having the initscripts and dhclient
I am not proficient enough to understand to follow through what you are suggesting, but the your keywords helped.
I googled and found a page.
http://www.studentcpu.com/2010/11/et...inux-eth0.html

and following it though. Will post back how I fare.

Thank you for taking time to read and advise.
 
Old 11-19-2012, 02:19 AM   #4
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
>#dmesg | grep eth gives me blank.
dmesg | grep -i eth gives me blank.

# ifconfig eth0 up says:
eth0: unknown interface: No such device

/sys/class/net only has "lo".. I can guess it should have "eth0" as well

Stuck. Big time.

How do I install necessary modules/drivers from within rescue mode?
 
Old 11-19-2012, 02:45 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Quote:
Originally Posted by x201s View Post
>lsmod
What would I be looking for to find if the device drivers are intact?
Code:
grep -q vmxnet3 /proc/modules||modprobe vmxnet3||echo "install VMware Tools"
 
Old 11-19-2012, 03:20 AM   #6
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
"FATAL: Module vmxnet3 not found.
install VMware Tools"
is the answer.
 
Old 11-19-2012, 04:25 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
You better go do that then.
 
1 members found this post helpful.
Old 11-19-2012, 08:27 AM   #8
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
unSpawn:
It took me a while (meaning, until I actually installed VMWare Tools and saw that eth0 was up!) to appreciate the humor, but I am relieved.
Thank you very much.

Wondering why none of the sites I looked at didn't mention anything about the VMWare Tools and at what point you knew that I was lacking precisely that. Guess you are moderator not for nothing!

Indebted,
x201s
 
Old 11-19-2012, 08:49 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,990
Blog Entries: 54

Rep: Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743Reputation: 2743
Quote:
Originally Posted by x201s View Post
(..) none of the sites (..) didn't mention anything about the VMWare Tools
Watch out with those double negatives ;-p


Quote:
Originally Posted by x201s View Post
and at what point you knew that I was lacking precisely that.
The
Code:
0b:00.0 Ethernet Controller VMWare VMXNET3 Ethernet Controller (rev 01)
was a pretty good clue.
 
Old 11-20-2012, 11:28 AM   #10
icarusthecow
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
udev registers the mac address to eth0 and other devices in the file /etc/udev/rules.d/70-persistent-net.rules. if you modify the mac address in that file for eth0 to match the virtualized devices and put it in the ifcfg-eth0 file it should fix the "wrong mac address" problem.

since you dont have a 70-persistent-net files, you could try creating one. also, make sure the mac address in ifcg-eth0 is correct, if youve cloned the VM and changed the mac address different configs could be off

Last edited by icarusthecow; 11-20-2012 at 11:30 AM.
 
  


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
"...Device eth0 has different MAC address than expected,.." lothario Linux - Networking 10 05-14-2014 04:02 AM
Device eth0 has a mac address xx:xx instead of configured xx:xx . Ignoring . sethusubbiah Linux - Software 2 12-13-2013 03:23 PM
beginning interface eth0 : device eth0 has different MAC address to expected.FAILED petrofrontier Linux - Software 2 02-28-2011 11:09 AM
eth0: Device eth0 has different MAC address than expected,ignoring. lin1010 Linux - Networking 5 11-24-2010 07:30 AM
eth0 / 1 confused over MAC address?? Nickj Linux - Networking 3 08-22-2005 11:36 AM


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

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