03-24-2022 04:53 AM - edited 03-24-2022 04:55 AM
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?
Solved! Go to Solution.
03-24-2022 05:00 AM
in switches, get #show run
out put and check for # ip default-gateway command. use the ip address after that command.
03-24-2022 05:00 AM
in switches, get #show run
out put and check for # ip default-gateway command. use the ip address after that command.
03-24-2022 05:04 AM
Yeah under show run and show start, there is no command stating "ip default-gateway" this means there is no default gateway set?
03-24-2022 05:07 AM
default-gateway set for Layer 2 switches. you can also look with below command
show ip route
show run | in route
03-24-2022 05:07 AM
Wow, emailed lecturer and they forgot to set an ip for the default gateway, thanks anyway guys
09-11-2024 05:12 AM
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.
02-09-2025 09:53 AM
sh run | i default-gateway
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide