Default gateway of the switch!

Unanswered Question
Jul 12th, 2007

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
mirica1979 Thu, 07/12/2007 - 04:11

Yes the switch is connected to the LAN and is reachable via IP.

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 x.x.x.x (where x.x.x.x = gateway address)

ip default-gateway x.x.x.x

Hope this helps



This Discussion