LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-13-2017, 03:22 AM   #1
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Rep: Reputation: 21
Cannot ping server in the same network


Dear experts,

I've come across a very interesting challenge. Hopefully has any of you seen this issue before and knows the solution. In a rack I have a server A with IP 172.29.40.5/24 which connects to the great outdoors via 172.29.40.1. That all works fine.

Now, I've added 2 new servers (B & C) to the rack, using 172.29.40.20/24 and 172.29.40.22/24. They all connect to the same physical unmanaged switch. Now this is where it get's interesting. From B I can ping C and vice versa, but not A, nor the gateway. I've checked and double checked that all network settings are as they should. And since B & C can ping each other, I'm convinced that there's nothing wrong with the cables or the switch. But just to eliminate that possibility I've also tried different ports on the switch and even a complete new switch. Also tried different NICs in the machines, all to no avail. I'm not using VLANs, so that cannot be the issue either.

I've also checked that I don't have an issue like duplicate mac addresses on any of the nics. If I run 'arp -a' on B and C I see that they have addresses for each other, but for A and the gateway they say that the response is incomplete. So I added the address of A manually to the arp table of B & C but that didn't work either.

Just to rule out any issues with the OS (B & C were pre-installed at another location using a different network configuration and they worked just fine there) I've booted using a live CD just to get a clean OS and try from there, but again, same result.

So now I'm at a complete loss as what I can try next. Any suggestions are greatly appreciated.
 
Old 03-13-2017, 03:49 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,079

Rep: Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130
have you tried traceroute?
firewall settings?
 
Old 03-13-2017, 03:58 AM   #3
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by pan64 View Post
have you tried traceroute?
firewall settings?
Traceroute unfortunately has the same results as ping. Host cannot be reached. There are no firewalls in place on the machines. All are on the internal network.
 
Old 03-13-2017, 04:11 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
For each host, if you flush the arp cache
Code:
ip -s -s neigh flush all
and then do
Code:
nmap -sP 172.29.40.0/24
what is then reported in the arp cache of the respective host?
Code:
arp -a
 
Old 03-13-2017, 05:53 AM   #5
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Original Poster
Rep: Reputation: 21
Hi,

Thanks for 5he reply. Unfortunately I have no nmap on the server. And as long as it has no connection to the internet, I'm afraid that I cannot access the repositories for installation.

I'll see if I can get it to work with a live cd.
 
Old 03-13-2017, 06:38 AM   #6
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Original Poster
Rep: Reputation: 21
Ok, the live-CD comes with nmap. I get the following results:

Code:
# ip -s -s neigh flush all
Nothing to flush.

# nmap -sP 172.29.40.0/24
Starting nmap 3.81 ( http://insecure.org/nmap ) at 2017-03-13 11:30 CET
Host 172.29.40.20 appears to be up.
MAC Address: 10:60:4B:A0:57:9C (Unknown)
Host 172.29.40.22 appears to be up.
Host 172.29.40.26 appears to be up.
MAC Address: 3C:4A:92:76:F5:5E (Unknown)
Nmap finished: 256 IP addresses (3 hosts up) scanned in 38.503 seconds

# arp -a
 (172.29.40.35) at <incomplete> on eth0
 (172.29.40.199) at <incomplete> on eth0
 (172.29.40.213) at <incomplete> on eth0
 (172.29.40.127) at <incomplete> on eth0
 (172.29.40.113) at <incomplete> on eth0
 (172.29.40.252) at <incomplete> on eth0
 (172.29.40.128) at <incomplete> on eth0
 (172.29.40.89) at <incomplete> on eth0
 (172.29.40.130) at <incomplete> on eth0
 (172.29.40.180) at <incomplete> on eth0
 (172.29.40.218) at <incomplete> on eth0
 (172.29.40.87) at <incomplete> on eth0
 (172.29.40.105) at <incomplete> on eth0
The reachable other address 172.29.40.26 is the iLo of the server.

Last edited by lpwevers; 03-13-2017 at 06:41 AM.
 
Old 03-13-2017, 08:02 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,079

Rep: Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130Reputation: 7130
I would run it on A, B and C too. I still think it is a configuration problem. Also you can try wireshark to check low level traffic.
 
1 members found this post helpful.
Old 03-13-2017, 11:13 AM   #8
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Original Poster
Rep: Reputation: 21
Ok, finally got this working. These are servers that are hosted in a co-location datacenter. Turned out that the hosting provider actually was using VLANs in a sneaky way. Never mind I added the VLAN tags and now it's working.

Thanks for all the help.
 
Old 03-13-2017, 02:49 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,734

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Information like this is always vital.. ...anyway, good to know that it is working as expected now.
 
  


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
[SOLVED] ping to a local network router answer from other server igadoter Linux - Networking 2 10-19-2010 05:29 AM
PPTP linux server setup cannot ping server or network Nemus Linux - Server 0 02-08-2009 01:39 AM
Connection to internal network from server - no ping no ssh tweekzilla Linux - Networking 1 12-10-2007 11:19 PM
Network problem : Server won't respond to ping bogzab Slackware 4 02-15-2007 04:52 PM
Cannot ping linux web server from different network Bobson Linux - Networking 4 03-23-2005 09:08 AM

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

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