09-30-2008 10:33 AM - edited 03-03-2019 11:44 PM
How get configured IP default gateway on router
09-30-2008 10:46 AM
You would simply use this commmand from global config mode
router(config)# ip default-gateway
Note that you would only do this on a router if you have ip routing disabled. If your router is acting as a router then you need to look into the ip default-network command or the ip route 0.0.0.0 command. See this link for more details
http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml
Jon
09-30-2008 12:49 PM
Hi Jon,
thanks for your response. I already configured ip default gateway on interface, but want to see on to router thru show command. Thanks.
09-30-2008 10:48 AM
Hello,
use
ip route 0.0.0.0 0.0.0.0 x.x.x.x
where x.x.x.x is the ip address of the IP next-hop default gateway
this requires that ipv4 routing is turned on with
ip routing
if ip routing is disabled like in a L2 switch
ip default-gateway x.x.x.x
Hope to help
Giuseppe
10-03-2008 02:39 AM
Hi Anand,
Yes, You can check IP default-gatway on the L3 Switch/Router by using the following command.
#Show ip route 0.0.0.0
hope this helps !!!
Regards
Shaheen
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