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

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

ip route to dhcp remains in configuration after wr with AD 254


I'm running several routers with the 15.1(4)M4 IOS and they all face this issue:

The ethernet WAN link is configured with an DHCP address, so the default route has been configured as follows: "ip route dhcp"

The strange thing is that when the WAN link comes up and gets a default gateway of lets say the the "show run" starts to look like this:

ip route dhcp

ip route 254

There is a new static added with an AD of 254 to the running configuration. As soon as I save this configuration this entry is saved as well and remains there even after a reload. So if I would get another gateway from the DHCP server (lets say my configuration looks like this:

ip route dhcp

ip route 254

ip route 254

So my configuration is starting to fill up with default routes. This might just be cosmetic since only the route that has its gateway in a directly connected subnet is installed in the routing table. But my question is, is this normal behaviour?


Cisco Employee

ip route to dhcp remains in configuration after wr with AD 254


Definitely, this is not a normal behavior. In fact, the default routes should be added with AD 1, not AD 254 - because of the static "ip route dhcp" command.

There seems to be a number of bugs recorded in Cisco's bug database that describe similar issues, although I have not been able to find exactly the one you describe here.

In any case, two suggestions:

  1. Try upgrading the IOS if possible
  2. Try removing the ip route dhcp from your configuration altogether. It has been my experience that regardless of the presence of this command, the default route will be added to your routing table automatically. Perhaps the lack of this static default route in your running configuration will prevent the router from adding the DHCP-discovered default routes into your running-config.

And of course, if you do have a support contract with Cisco, be sure to inform them about this!

Best regards,


CreatePlease login to create content