LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-13-2017, 02:48 PM   #1
Bashed
Member
 
Registered: Jul 2015
Posts: 133

Rep: Reputation: Disabled
Loop in /24 Subnet, No ping beyond .1 and .2


Running 3650 switch. I have this odd issue where I cannot get 4 new Centos 7 boxes pinging out on public IPs (nor pinging in), only gateway .1 and first public IP .2

This is what I see, which doesn't look normal. How do I fix this?

The server itself is configured fine (Centos 7)

Code:
[root@localhost ~]# cat /etc/sysconfig/network-s*/ifcfg-em1
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="em1"
UUID="******"
DEVICE="em1"
ONBOOT="yes"
IPADDR="xxx.xxx.30.2"
PREFIX="24"
GATEWAY="xxx.xxx.30.1"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
Code:
[root@localhost ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4
Switch:

Code:
Cisco3650#show ip route xxx.xxx.30.0
Routing entry for xxx.xxx.30.0/24, 2 known subnets
  Attached (2 connections)
  Variably subnetted with 2 masks
C        xxx.xxx.30.0/24 is directly connected, Vlan26
L        xxx.xxx.30.1/32 is directly connected, Vlan26
I don't know why that /32 is there. This is odd. I only assigned a /24, not that /32 and I cannot find the /32 anywhere.

Show run looks normal.

Code:
Cisco3650#show run int vlan 26
Building configuration...

Current configuration : 85 bytes
!
interface Vlan26
 description Server 26
 ip address xxx.xxx.30.1 255.255.255.0
end
This is happening to all four new VLANs I created last week, all 4 are running Centos 7 servers. That's odd. None of their assigned IPs ping past the first public IP. The rest show this same error.

Code:
[root@localhost ~]# ping xxx.xxx.107.59
PING xxx.xxx.107.59 (xxx.xxx.107.59) 56(84) bytes of data.
From xxx.xxx.107.58 icmp_seq=1 Destination Host Unreachable
From xxx.xxx.107.58 icmp_seq=2 Destination Host Unreachable
From xxx.xxx.107.58 icmp_seq=3 Destination Host Unreachable
From xxx.xxx.107.58 icmp_seq=4 Destination Host Unreachable
I tried another Centos 7 server on the same switch, same issue where I can only ping internally the gateway .1 and first public .2, or in this subnet (/29) case, I can ping gateway .129 and main IP .130 but not 132 - 134.

Code:
Cisco3650#show ip route xxx.xxx.107.130
Routing entry for xxx.xxx.107.128/29
  Known via "connected", distance 0, metric 0 (connected, via interface)
  Routing Descriptor Blocks:
  * directly connected, via Vlan24
      Route metric is 0, traffic share count is 1
Is this an issue with Centos 7? I tried Google DNS and also the data center's DNS. Same thing (I did 'service network restart' first before re-testing ping).
 
Old 04-13-2017, 10:55 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,775

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
I'm not a Cisco-type, but the output you show refers to a connected route and a local route. The local route is created automatically whenever an interface is configured with an IP address and activated.

Quote:
C xxx.xxx.30.0/24 is directly connected, Vlan26
L xxx.xxx.30.1/32 is directly connected, Vlan26
Reference:
http://www.ciscopress.com/articles/a...0210&seqNum=12

BTW, I think your mention of the Centos 7 servers have no bearing on this issue. If you want to find the cause of the routing issue, use traceroute form the impacted server. A possible gateway issue?

Last edited by ferrari; 04-13-2017 at 10:56 PM.
 
  


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
Cannot ping between two laptops in same subnet freeindy Linux - Networking 11 08-24-2014 06:17 AM
Writing a command (for loop) that would ping a Class C subnet medeiom Linux - Newbie 3 03-17-2012 08:49 AM
Cannot ping to my machine from another subnet Basel Linux - Networking 5 04-26-2010 02:26 PM
Can ping subnet one way, but not the other ghight Linux - Networking 4 10-14-2005 09:00 AM
Can't ping any PC outside subnet mrpc_cambodia Red Hat 2 10-07-2004 08:48 PM

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

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