cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
485
Views
0
Helpful
4
Replies

IP Default-gateway

medusindsol
Level 1
Level 1

How get configured IP default gateway on router

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

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

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
Hall of Fame
Hall of Fame

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

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card