07-12-2007 03:48 AM - edited 03-05-2019 05:15 PM
Hi people,
I want to know how can one find out the ip default gateway of a switch that is not directly connected with a router within a LAN?We can access the router through a console connection from a laptop.
How can find out the switch ip default-gateway considering that the swicth is not directly connected with the router which gives us access to the lan.
Thanks people.
07-12-2007 04:00 AM
Please can you confirm if the switch is connected to the LAN at all, and whether it is reachable via IP?
MP
07-12-2007 04:11 AM
Yes the switch is connected to the LAN and is reachable via IP.
07-12-2007 04:17 AM
You should then be able to telnet onto the switch, and issue either of the following
show ip route
This will show you the routing table of the switch. It is likely all that will be in here is the gateway of last resort, and the subnet that the switch belongs in as a "c" route.
show run
This will show you the running config of the switch. If you scroll right down to the bottom of this you will see one of the following
ip route 0.0.0.0 0.0.0.0 x.x.x.x (where x.x.x.x = gateway address)
ip default-gateway x.x.x.x
Hope this helps
MP
07-12-2007 04:28 AM
Thank you very much once again.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: