IP Default-gateway

Unanswered Question
Sep 30th, 2008

How get configured IP default gateway on router

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Jon Marshall Tue, 09/30/2008 - 10:46

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 command. See this link for more details



medusindsol Tue, 09/30/2008 - 12:49

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.

Giuseppe Larosa Tue, 09/30/2008 - 10:48



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


MUHAMMAD SHAHEEN Fri, 10/03/2008 - 02:39

Hi Anand,

Yes, You can check IP default-gatway on the L3 Switch/Router by using the following command.

#Show ip route

hope this helps !!!




This Discussion