LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-05-2017, 09:18 PM   #1
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Ping reply goes to wrong MAC address


Full disclosure: My knowledge of networking is just sufficient to run Linux systems.
I am trying to install Centos on a PC via PXE.
All required services, DHCP, TFTP and HTTP, run on the same server (a Raspberry Pi with raspbian).

DHCP, tftp and pxelinux do their job, then dracut comes in and tries to download http://....squashfs.img. This fails because dracut can't connect to the http server. dracut eventually drops to a shell prompt.
  • Pinging the server from dracut fails.
  • Pinging in the other direction, from the server to the PC, succeeds.
  • Pinging the server from any other box in reach succeeds.
  • Pinging any other box in reach from dracut succeeds.
  • The PC has Windows installed already. There used to be no problem, but now Windows also has no connectivity to that server.
  • So, there is only one very narrow case where there is no connectivity: From the PC to the server. Any other condition doesn't pose a problem.
  • tcpdump on the server reveals something strange:
    Code:
    12:14:45.419412 74:46:a0:a0:d4:7b > b8:27:eb:3f:a2:ef, ethertype IPv4 (0x0800), length 74: 192.168.1.27 > 192.168.1.16: ICMP echo request, id 1, seq 11, length 40
    12:14:45.419624 b8:27:eb:3f:a2:ef > 00:24:a5:d7:f4:ae, ethertype IPv4 (0x0800), length 74: 192.168.1.16 > 192.168.1.27: ICMP echo reply, id 1, seq 11, length 40
    74... is the PC running dracut. b8... is the server. 00... is my router. The server receives echo requests from the PC and sends replies to the router. Puzzling!
  • The ARP cache on the server looks like this:
    Code:
    # ip n | grep -e 00:24:a5:d7:f4:ae -e 74:46:a0:a0:d4:7b
    192.168.1.27 dev eth0 lladdr 74:46:a0:a0:d4:7b STALE
    192.168.1.1 dev eth0 lladdr 00:24:a5:d7:f4:ae REACHABLE
Why does the server insist to sent echo replies to a different box?

EDIT: It seems strange to me that the ARP cache entry is marked as stale. After all, the PC has just acquired its IP address from that same server. Do I have a misconception there?

Last edited by berndbausch; 06-05-2017 at 10:18 PM. Reason: added information
 
Old 06-05-2017, 11:45 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Original Poster
Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I found that the server's routing table missed an important entry:
Code:
192.168.1.0/24 dev eth0  scope link  src 192.168.1.16
After adding it, the problem goes away.

Still, I don't understand why I was able to ping from the server, and why no other box had problems connecting to the server.
 
  


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
Return MAC Address with Ping Critcho Linux - Networking 16 05-04-2011 11:40 AM
Accessing (ping, ssh) via MAC address only - possible? DrLove73 Red Hat 9 05-29-2010 04:42 PM
Accessing (ping, ssh) via MAC address only - possible? DrLove73 Linux - Networking 2 05-29-2010 07:24 AM
ath0 mac address wrong genderbender Linux - Networking 1 04-15-2008 03:39 AM
changed mac address + got dhcp add ! but can't ping Mr_C Linux - Networking 3 03-19-2006 11:55 PM

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

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