Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

IP Default-gateway

How get configured IP default gateway on router

4 REPLIES
Hall of Fame Super Blue

Re: IP Default-gateway

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

Community Member

Re: IP Default-gateway

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.

Hall of Fame Super Silver

Re: IP Default-gateway

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

Re: IP Default-gateway

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

261
Views
0
Helpful
4
Replies
CreatePlease to create content