Configure default gateway on a Cisco switch
1. Verify if the device has ip routing enabled or not. Use the following commands
show run | inc routing
show ip route
2. If the device does not support ip routing, use the following command.
conf t
ip default-gateway (L3 device IP address)
end
wr
!
show ip route
3. If the device supports ip routing, use the following command.
conf t
ip route 0.0.0.0 0.0.0.0 (L3 device IP address)
wr
!
show ip route
#ccna #cisco #networking