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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Keywork "track" and "DHCP" on the same route

Hi all

Can someone tell me why I coulnd't put those keywords "DHCP" and "track", on the same route. I must use an interface route because my ISP's address are assign dynamically.

Thanks

8 REPLIES
Hall of Fame Super Bronze

Re: Keywork "track" and "DHCP" on the same route

You can create an ip route with track by using the egress interface as the keyword which enables you to use the track option.

For instance, if the egress interface is serial 0/0.

ip route 0.0.0.0 0.0.0.0 serial 0/0 track [valule]

New Member

Re: Keywork "track" and "DHCP" on the same route

I already use the egress interface as the keyword, but it's not a serial interface

Router:Cisco 831

ex.:ip route 0.0.0.0 0.0.0.0 Ethernet 1 track 1

But instead of using the keyword track, I must use the keyword DHCP to let the router know that he will receive he's gateway from DHCP.

Like this : ip route 0.0.0.0 0.0.0.0 Ethernet 1 DHCP track 1, but I can't put those two keyword on the same route.

Does it exist an other way to do the same thing ?

Hall of Fame Super Bronze

Re: Keywork "track" and "DHCP" on the same route

I'm assuming that using

ip route 0.0.0.0 0.0.0.0 Ethernet 1 track 1

does not work in your environment ?

The packets will be sent to the Ethernet interface whether the interface got its IP via static or DHCP.

New Member

Re: Keywork "track" and "DHCP" on the same route

Usually yes. But some of my customer's ISP have something wrong with their "proxy arp" on edge routeurs. So I must use the DHCP keyword to be able to connect on the internet.

Hall of Fame Super Bronze

Re: Keywork "track" and "DHCP" on the same route

Perhaps they've disabled proxy-arp at their end for security reasons. I'm afraid it can't be done with dhcp and track option on the same ip route statement.

New Member

Re: Keywork "track" and "DHCP" on the same route

Can I do tracking in an other way ?

(Like doing it to automatically shut down the interface if the tracking condition is reach, instead of remove the static route from the routing table if the tracking condition is reach. Because if the interface is shutdown, the default route will be remove from the routing table even if this is a ditrectly connected route.)

Hall of Fame Super Bronze

Re: Keywork "track" and "DHCP" on the same route

Shutting an interface down can be down with kron, however - I don't have time to lab it up at the moment.

I don't any other suggestion, sorry.

New Member

Re: Keywork "track" and "DHCP" on the same route

dont't be sorry.

I found an other way. I change the AD the my default route to an higher value and pass my other default route before it with another tracking object that's negate the first one.

But I'll check for kron too.

Thank you very much

151
Views
4
Helpful
8
Replies