cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
594
Views
0
Helpful
4
Replies

Default gateway of the switch!

mirica1979
Level 1
Level 1

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.

4 Replies 4

Martin Parry
Level 3
Level 3

Please can you confirm if the switch is connected to the LAN at all, and whether it is reachable via IP?

MP

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 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

Thank you very much once again.

Getting Started

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: