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

ip default-gateway and ip route

hi,

what is main difference between ip default-gateway and ip route...as they are for the default gateway functionality...

in which situation i should use ip default-gateway and ip route...

regards

Devang

5 REPLIES

Re: ip default-gateway and ip route

ip default-gateway is only used when ip routing is disabled. ip route is only used when ip routing is enabled.

Kevin Dorrell

Luxembourg

Re: ip default-gateway and ip route

HI Devang, [Do Rate all HELPFUL POSTS]

Refer Link below for more detail:

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094374.shtml

ip default-gateway

--------------------------

The ip default-gateway command differs from the other two commands. It should only be used when ip routing is disabled on the Cisco router.

ip default-network

---------------------------------

Unlike the ip default-gateway command, you can use ip default-network when ip routing is enabled on the Cisco router. When you configure ip default-network the router considers routes to that network for installation as the gateway of last resort on the router.

ip route 0.0.0.0 0.0.0.0

---------------------------------

Creating a static route to network 0.0.0.0 0.0.0.0 is another way to set the gateway of last resort on a router. As with the ip default-network command, using the static route to 0.0.0.0 is not dependent on any routing protocols. However, ip routing must be enabled on the router.

Note: IGRP does not understand a route to 0.0.0.0. Therefore, it cannot propagate default routes created using the ip route 0.0.0.0 0.0.0.0 command. Use the ip default-network command to have IGRP propagate a default route.

Do Rate ALL HELPFUL POSTS.

Best Regards,

Guru Prasad R

Community Member

Re: ip default-gateway and ip route

hai prasad,

goood one ..cheers .... un4tntly still m not able to rate ...ticket opend with cisco ..they told applecation issue ...tey are investigating the same

Lijesh

Re: ip default-gateway and ip route

HI Lijesh,

No Problem :-) and Do Rate for All Helpful POSTS once the Rating System is activated for your ID.

Best Regards,

Guru Prasad R

Community Member

Re: ip default-gateway and ip route

ip default gateway is used on workstations within a given network so as to enable them route packets that are destined to address not within the same network.

While ip route is used to statically assign routes to other routers. Its usually used when one does not intend to use routing protocols especially for very small networks where an administrator can keep track of changing routes

748
Views
0
Helpful
5
Replies
CreatePlease to create content