Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Default gateway of the switch!

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

Re: Default gateway of the switch!

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

MP

New Member

Re: Default gateway of the switch!

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

Re: Default gateway of the switch!

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

New Member

Re: Default gateway of the switch!

Thank you very much once again.

362
Views
0
Helpful
4
Replies
CreatePlease to create content