cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4337
Views
20
Helpful
22
Replies

cant ping device which is directly connected

davejumby
Level 1
Level 1

Hi 

 

I have a 3850 switch and to it is connected my pc with the ip 172.24.0.253. My gateway which is an svi on the switch is 172.24.0.254. The switch has a layer 3 port whose IP is 172.30.0.2. I can ping my PC from the switch but when I introduce the source parameter to the ping command and have the layer 3 port (172.30.0.2) as the source I am not able to ping. This exact setup is working in all my other switches. Any idea on what I'm missing here. its really frustrating me.

 

 

Below is my routing table

Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

172.24.0.0/16 is variably subnetted, 3 subnets, 2 masks
C 172.24.0.0/24 is directly connected, Vlan100
L 172.24.0.254/32 is directly connected, Vlan100
C 172.24.253.254/32 is directly connected, Loopback0
172.30.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.30.0.0/30 is directly connected, GigabitEthernet1/1/2
L 172.30.0.2/32 is directly connected, GigabitEthernet1/1/2

22 Replies 22

Hello

Make sure the pc has a default-gateway and enable vlan 1 svi on the switch
int vlan 1
no shut




Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi Paul

 

This didn't work  

balaji.bandi
Hall of Fame
Hall of Fame

Can you post below output :

 

show ip interface brief

show ip cef 172.24.0.253 details

show ip cef 172.24.0.254 details

show ip cef 172.30.0.2 details

show platform software ip switch active R0 cef prefix 172.24.0.253/32 detail

show interface vlan 100 | in bia

===

 

Try disable fast switching for testing.

 

no ip route-cache

 

enable debug :

 

debug ip icmp 

debug ip routing

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi Balaji, 

 

here are the outputs 

Switch#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES unset up down
Vlan100 172.24.0.254 YES manual up up
Vlan110 172.19.1.20 YES manual down down
GigabitEthernet0/0 unassigned YES unset down down
GigabitEthernet1/0/1 unassigned YES unset down down

GigabitEthernet1/0/22 unassigned YES unset down down
GigabitEthernet1/0/23 unassigned YES unset down down
GigabitEthernet1/0/24 unassigned YES unset up up
GigabitEthernet1/1/1 unassigned YES unset down down
GigabitEthernet1/1/2 172.30.0.2 YES manual up up

Loopback0 172.24.253.254 YES manual up up

=============================================================================

Switch#show ip cef 172.24.0.253 detail
172.24.0.253/32, epoch 3, flags [attached]
Adj source: IP adj out of Vlan100, addr 172.24.0.253 FFAB3C3AA0
Dependent covered prefix type adjfib, cover 172.24.0.0/24
attached to Vlan100


============================================================================
Switch#show ip cef 172.24.0.254 detail
172.24.0.254/32, epoch 3, flags [receive, local, source eligible]
Interface source: Vlan100 flags: local, source eligible
receive for Vlan100
=======================================================================
Switch#show ip cef 172.30.0.2 detail
172.30.0.2/32, epoch 3, flags [receive, local, source eligible]
Interface source: GigabitEthernet1/1/2 flags: local, source eligible
receive for GigabitEthernet1/1/2


===========================================================================

Switch#$rm software ip switch active R0 cef prefix 172.24.0.253/32 detail
Forwarding Table

172.24.0.253/32 -> OBJ_ADJACENCY (33), urpf: 34
Connected Interface: 43
Prefix Flags: Directly L2 attached
OM handle: 0x8055fd60

===============================================================================

Hardware is Ethernet SVI, address is 00bf.7769.3bd1 (bia 00bf.7769.3bd1)

balaji.bandi
Hall of Fame
Hall of Fame

Can you please post below output, along with debug.

 

show adjacency 172.24.0.253 detail

show platform software adjacency switch active R0 index 10

 

Can you post your source IP address ping outcome from the console - when you initiated ?

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello

sh arp
sh mac address-table int gig1/1/2
sh mac address-table int gig1/0/24
clear arp
ping 172.24.0.253
ping 172.24.0.253 source gig1/1/2
ping 172.24.0.253 source loopback0

 

lastly try a different routed port-
default interface 1/1/2
int 1/0/23
no switchport
ip address 172.30.0.2 255.255.255.252
no shut


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi Balaji

here it is. I didn' really understand your last question 

 

Switch#
*Oct 25 12:56:42.352: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:43.353: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:44.353: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:46.354: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:47.890: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:48.891: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:49.891: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:51.892: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:55.892: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:56:59.127: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:57:00.127: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:57:01.127: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:57:03.128: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:57:07.129: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
Switch#
*Oct 25 12:57:11.131: ICMP: dst (13.107.4.52) host unreachable sent to 172.24.0.253
*Oct 25 12:57:12.131: ICMP: dst (13.107.4.52) host unreachable sent to 172.24.0.253
*Oct 25 12:57:14.132: ICMP: dst (13.107.4.52) host unreachable sent to 172.24.0.253
*Oct 25 12:57:18.133: ICMP: dst (13.107.4.52) host unreachable sent to 172.24.0.253
*Oct 25 12:57:26.133: ICMP: dst (13.107.4.52) host unreachable sent to 172.24.0.253
*Oct 25 12:57:32.147: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253
*Oct 25 12:57:33.147: ICMP: dst (8.8.8.8) host unreachable sent to 172.24.0.253


Switch#show platform software adjacency switch active R0 index 10
Number of adjacency objects: 4

post this output - show adjacency 172.24.0.253 detail

 

capture how you pinging using source and post the outcome.

Like are you ping with source interface or using extending ping?

same debug output.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card