cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1024
Views
0
Helpful
3
Replies

[cisco packet tracer]'s weird ip default-gateway, why?

Translator
Community Manager
Community Manager

Configure the management IP for the three-layer switch (ip routing is not enabled), use ip default-gateway to set the default gateway, the result is that the computer ping in the vlan does not communicate with the svi of the network.

3ab3630914a44e018aef26b2ba250db9.png

Set in the switch: ip default-gateway 192.168.1.1; Then on pc0, execute: ping 192.168.2.1, cannot ping!

pc0 and vlan2 in the same network segment, theoretically can be ping, the packet does not leave the network, gateway nothing. It just didn't work out. Why?

3 Replies 3

eafrempong
Level 1
Level 1

Did you find a solution ?

for that to work, you need inter-vlan routing enabled on the switch ip routing.

BB

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

How to Ask The Cisco Community for Help

Joseph W. Doherty
Hall of Fame
Hall of Fame

Set in the switch: ip default-gateway 192.168.1.1

That makes no sense.  Also, shouldn't have anything to do with the PC using 192.168.2.2/24 pinging the switch's 192.168.2.1/24.

I created a similar setup, in PT (attached), and works fine for me.

JosephWDoherty_0-1753394156391.png

Perhaps you can post your PT file?