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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

default gateway - interface name or IP...

hi all,

just had an issue where routing stopped working and after changing the next hop on the default gateway from the interface name to the actual IP fixed the issue.

Before it was like this:

ip route 10.0.10.0 255.255.255.0 FastEthernet0/0

Then changed it to this and fixed the issue:

ip route 10.0.10.0 255.255.255.0 10.0.107.1

I remember reading somewhere that there is a difference but don't remember exactly what it is.

6 REPLIES
VIP Super Bronze

Re: default gateway - interface name or IP...

Hello opers13,

The difference is that the admin distance for connected interface is 0 and for static route is 1.  The lower admin is more preferd over higher

HTH

Reza

Hall of Fame Super Blue

Re: default gateway - interface name or IP...

sharifimr wrote:

Hello opers13,

The difference is that the admin distance for connected interface is 0 and for static route is 1.  The lower admin is more preferd over higher

HTH

Reza

Reza

Just for your info.

This comes up now and then in these forums. Even though many books/articles make the same statement that AD is 1 for static to next-hop and 0 for static to interface in actual fact any static route has an AD of 1. So both the above routes will have AD 1. A long time ago apparently static routes to interface did have an AD of 0 but that has changed now. See this article  -

Static routes AD

Jon

VIP Super Bronze

Re: default gateway - interface name or IP...

Jon,

Thanks for the info and posting the paper.

You know, it is funny because I had read the same article a while back but I could not remember the fact that this has changed (I guess it is the age ha).

Reza

Hall of Fame Super Silver

Re: default gateway - interface name or IP...

Hello Reza, Jon

I still think that the biggest difference is proxy ARP in the case of original poster between the two forms of static routing.

I agree that once there was a difference in AD value if using an ip next-hop or the interface name.

Or other device configuration has changed  (proxy ARP was disabled) or the ARP table of the router was somewhat full.

Hope to help

Giuseppe

Hall of Fame Super Blue

Re: default gateway - interface name or IP...

giuslar wrote:

Hello Reza, Jon

I still think that the biggest difference is proxy ARP in the case of original poster between the two forms of static routing.

I agree that once there was a difference in AD value if using an ip next-hop or the interface name.

Or other device configuration has changed  (proxy ARP was disabled) or the ARP table of the router was somewhat full.

Hope to help

Giuseppe

Giuseppe

I still think that the biggest difference is proxy ARP in the case of original poster between the two forms of static routing.

I agree. I don't think the AD had any effect on the original posters problem and if i suggested it did that wasn't my intention. I just wanted to share some info with Reza.

Jon

Hall of Fame Super Silver

Re: default gateway - interface name or IP...

Hello Opers13,

when using an outgoing interface the local device relies on proxy-arp on other boxes.

That is the willingness of other devices to answer with their MAC address for ARP requests out of context for IP addresses that are not in the local subnet.

when using an IP next-hop it works even if the gateway/router has no ip proxy-arp.

This makes the difference.

To be noted that using the IP address next-hop is to be preferred to minimize ARP activity: only one ARP request is enough to resolve default gatewaty with proxy ARP a different request for each destination address is done

AD should be a secondary aspect here.

Hope to help

Giuseppe

778
Views
5
Helpful
6
Replies