08-12-2012 10:22 AM - edited 03-04-2019 05:15 PM
Hi,
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 0.0.0.0 0.0.0.0 dhcp"
The strange thing is that when the WAN link comes up and gets a default gateway of lets say 1.1.1.1 the the "show run" starts to look like this:
ip route 0.0.0.0 0.0.0.0 dhcp
ip route 0.0.0.0 0.0.0.0 1.1.1.1 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 2.2.2.2) my configuration looks like this:
ip route 0.0.0.0 0.0.0.0 dhcp
ip route 0.0.0.0 0.0.0.0 1.1.1.1 254
ip route 0.0.0.0 0.0.0.0 2.2.2.2 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?
Thanks!
08-12-2012 12:13 PM
Hello,
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 0.0.0.0 0.0.0.0 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:
And of course, if you do have a support contract with Cisco, be sure to inform them about this!
Best regards,
Peter
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide