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 01-21-2006, 03:36 AM   #1
boru
LQ Newbie
 
Registered: Jan 2006
Location: Dublin
Posts: 5

Rep: Reputation: 0
Exclamation NIC confusion


Hi all,

I'm an experienced solaris admin who's totally confued by a Red Hat network issue.

Basically I installed (my first ever) RH Enterprise server on a HP DL360 with hardware raid....I had to create a backup machine exactly the same as the first...to save time I took one of the disks from the first machine (machine1), put it in the second (machine2)and rebooted....I changed the hostname and IP and all looked good.

Now for the strange part...if I run a tcpdump on both machines and ping machine1 from a third machine.....I can see the response comes from machine2....if I check the arp tables on the third machine, then I can see both IP's(of machine1 & machine2) with the MAC address of machine2, if I force a connection from machine1 to the third machine, then while the connection is kept alive, all is well (arp tables show correct info).....I'm very confused.

I rang the RH support line and was told "it's not a standard install...bugger off".

Any help would be MUCH appreciated.
 
Old 01-21-2006, 08:20 PM   #2
danielwupan
LQ Newbie
 
Registered: Jan 2006
Location: China
Distribution: RH
Posts: 5

Rep: Reputation: 0
Maybe the NIC configure file isn't correct!Check the NIC configure file in the /etc/sysconfig/networking-scripts/ifcfg-ethx(x:your nic number)
 
Old 01-23-2006, 02:14 AM   #3
boru
LQ Newbie
 
Registered: Jan 2006
Location: Dublin
Posts: 5

Original Poster
Rep: Reputation: 0
hi danielwupan,

I have chcked the /etc/sysconfig/network-scripts/ifcfg-eth0, it gives the standard IP stuff, but doesn't mention the MAC address. (an ifcofig - on machine1 and 2 - does show the correct addresses).

Anything else you can think of?

Boru
 
Old 01-23-2006, 03:08 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Can you please post:
/etc/hosts
/etc/host.config
/etc/resolv.conf

At first look, it indeed seems to be an ARP related issue. The IP addresses of both machines get wrongly translated into the MAC address of the 2nd machine. So your third machine sees the 2nd machine under 2 different hostnames.
However, if you consider that DNS can accomplish something similar (2 hostnames for 1 IP address), then you know that the problem may simply lie in the hostname configuration.
For instance, let's assume that machine 2 has been configured with 2 hostnames (which is unusual, but not impossible, I think). If machine 3 then broadcasts an ARP request to find the MAC address and machine 2 happens to respond first, it will give out it's own MAC address for both IP addresses.
Given that you've simply put the disk of machine 1 in 2 and added a hostname, you may have accidentally caused this. In any case, since you're not using DNS, your /etc/hosts files are used for hostname => IP translations.
So they should at least give a clue about what's going wrong.

Also, you could try doing a "ping" on hostnames and IP addresses of both machines to see if they behave differently.

You could also try looking in /var/log/* for error messages.
 
Old 01-23-2006, 03:51 AM   #5
boru
LQ Newbie
 
Registered: Jan 2006
Location: Dublin
Posts: 5

Original Poster
Rep: Reputation: 0
Hi timmeke,

here's the files requested:

/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
###127.0.0.1 machine2 localhost.localdomain localhost
127.0.0.1 localhost.localdomain localhost
172.22.131.161 machine2

/etc/host.conf:
order hosts,bind

/etc/resolv.conf:
search mydomain.com
nameserver 172.22.150.161
nameserver 172.22.150.21


One other strange issue.....I had another admin look at the machine for me (he's in another part of the company)....he changed the broadcast address (to a completely wrong address) and disabled the broadcast function.....this "fixed" the issue (as as far as he tested it did).

I am convinced that I did cause this myself by swapping the disks between machines....short cuts!

Cheers,
Boru
 
  


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
eth0 NIC Card Not Working! 3com 3c501 NIC. Mustard010 Linux - Networking 16 08-15-2007 02:22 AM
two nics--ftp on outside nic--samba on inside nic tyler0123 Linux - Networking 2 04-15-2005 07:27 PM
troubles getting Gigabit NIC to work in slack 10 (HGA32T NIC) TheLinuxDuck Slackware 10 03-10-2005 04:37 PM
Woody 2.2.20 kernel and zen1200 (rtl-8139) nic .. missing files or just confusion. Martiniv Linux - Laptop and Netbook 2 04-21-2004 02:01 PM
1st nic regular FTP, 2nd nic SSH Riselong Linux - Distributions 2 02-02-2004 05:13 PM

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

All times are GMT -5. The time now is 07:00 AM.

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