cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14493
Views
3
Helpful
6
Replies

Finding the default gateway of the switches (help!, for an assignment)

Tysonvd
Level 1
Level 1

I need to find the default gateway for the pc's and the switches (for uni). I have done the pc's as they were pretty simple. As this is a .pka task file i did not setup any of the network. I have run the following commands to see if i could find it out but am not able to:

-"show ip interface brief"

-"show start"

-"show run"

help.... just need the default gateway for S1 and S2, would it be the router ip?

 

image.png

1 Accepted Solution

Accepted Solutions

in switches, get #show run

out put and check for # ip default-gateway command. use the ip address after that command.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

View solution in original post

6 Replies 6

in switches, get #show run

out put and check for # ip default-gateway command. use the ip address after that command.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

Yeah under show run and show start, there is no command stating "ip default-gateway" this means there is no default gateway set?

 

default-gateway set for Layer 2 switches. you can also look with below command

 

show ip route

 

show run | in route

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Wow, emailed lecturer and they forgot to set an ip for the default gateway, thanks anyway guys

 

I did find that in pocket trace you can use

do show run | include gateway if you are in config mode
or 

show run | include gateway  - in privilege mode. 
Hope you find that helpful. 

AG - Campbell
Level 1
Level 1

sh run | i default-gateway