09-18-2012 05:35 AM - edited 03-07-2019 08:56 AM
I'm trying to configure a L3 switch with some vlans.
Despite we add a "ip default-gateway", that is displayed on the "show run", when we look "show ip route" there is no default gateway or gateway of last resource.
On the show running we see the following:
interface vlan 31
ip address 10.221.31.177.255.255.255.0
!
interface vlan 32
ip address 10.221.36.125 255.255.255.240
interface vlan 36
ip address 10.221.36.105 255.255.255.248
ip default-gateway 10.221.36.105
One server connected to the vlan 32 is not able to ping the switch svi on vlan 36 (10.221.36.105).
When we look the "show ip route" we see that the default gateway is not set.
Ip routing is enabled on the switch. I tested the same configuration on my simultator and it works fine.
I'm attaching the "show running", "show version", "show protocols" and "show ip routing".
Could someone help me?
Message was edited by: Luiz Santos The ip routing is enabled on the switch!!
09-18-2012 05:47 AM
Hello Luiz,
IP routing is enabled
when ip routing is enabled, the command ip default-gateway is not effective
configure a static default route instead like
ip route 0.0.0.0 0.0.0.0.0
the
Edit:
on the PC on Vlan 32 the default gateway has to be set as the IP address of SVI Vlan32 on the switch 10.221.36.125 in order to be able to ping another SVI on the device.
The lack of a gateway of last resort should not influence inter vlan routing.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide