cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1818
Views
10
Helpful
8
Replies

Switch is not passing pings

sah1128
Level 1
Level 1

I am making a network pictured below with 5 total subnets with the LANSwitch1 in the centre. I have been having problems pinging between subnets, in the example pictures where I ping from Router3 to Switch1 the pings seem to alternate between success and time outs. It seems like the LANSwitch is causing the problems, in the successful ping photo you can see that the LANSwitch will forward the frame, but in the unsuccessful ping photos the LANSwitch instead decapsulates the frame then drops the packet because the destination address does not match. When I ping from any other device .eg PC3 to Switch1 the LANSwitch drops the packet every single time, whereas pinging from the routers will sometimes work correctly.

So why is the LANSwitch sometimes forwarding frames but sometimes will not?

Let me know if any more info is required

Edit: here is the link for the .pkt 

https://drive.google.com/file/d/1msxjWG9EixmgBCVLvImrOcXmjuWf1Df1/view?usp=sharing

Thanks

8 Replies 8

Hello,

 

Can you provide the configuration files of all devices or upload the .pkt files to take a look.

Also make sure of 4 things:

That all router interfaces connecting to the WAN Switch are in the same subnet.

All Router interfaces connecting to their LAN switch/PCs are in a different subnet

All PCs have correct Subnet/IP and default gateway (DG being the Routers LAN interface IP address

All routers know how to get to all other networks (either dynamic routing protocol or static routes configured)

 

-David

Hi

Thanks for the reply, I will upload my .pkt file

As far as I can tell all the subnets, ip addresses and gateways are correct.

I have used the IP route command to give routing instructions to all routers, but when I initially did this some of the addresses I put in were incorrect, I have redone the IP route command with the correct info, but could the initial commands be causing a problem?

 

 

If they are still there and they are static routes then yes they can be conflicting.

Hello,

what are the passwords for the routers and switches ?

Passwords are all 'Cisco'

 

Hello,

I opened your file, not sure if that has already been mentioned, but R3 has an incorrect default route to the subnet to which the switch belongs. Make the change below:

Router3(config)#no ip route 192.168.10.0 255.255.255.192 192.168.10.121
Router3(config)#ip route 192.168.10.0 255.255.255.192 192.168.10.122

OK so I looked at the lab. In this situation it looks like you have the static routes pointing to the switch in the middle....but it doesn't have any idea where to send them after that.

 

That's switch doesn't need an IP (unless this is a lab that needs you to do it or you're just trying to learn. But for the static routes you need to point to the Router the LAN is coming from. In other words on R1 you would need 3 separate static statements. 1 pointing to each router based on what LAN they have. For example R3 has the LAN 192.168.10.124 255.255.255.248

 

on R3 the routes would look like

ip route 192.168.10.64 255.255.255.240 192.168.10.123

ip route 192.168.10.0 255.255.255.192 192.168.10.122

ip route 192.168.10.112 255.255.255.248 192.168.10.125

 

Then all the other routers would need similar configs pointing to the neighbor with the LAN they have.

 

If you want an easy solution just remove all static routes and apply a dynamic routing protocol. You can paste the below into all 4 routers and it should work:

 

conf t

router eigrp 10

network 0.0.0.0

 

P.S. I removed ALL static routes and used the above dynamic configuration and everything could ping.

You had a LOT of static routes on the devices. Remember the router knows what networks its connected to so you don't need anything for those. You just need to provide the path for other networks out its exit interface or next hop neighbor.

 

Hope that helps.

 

-David

your config is OK except 
you add this IP " 192 192.168.10.121" as next-hop in each Subnet??
this make Router add it in routing table and hence you get two output 
one success when the router select the right path 
failure when the router select the wrong path 
so only remove this static route from all router and check again

Reply from 192.168.10.122: bytes=32 time<1ms TTL=254 <right route 

Request timed out. <-wrong route

Reply from 192.168.10.122: bytes=32 time<1ms TTL=254