SDN/SDDC Retreat in Miami, Florida (November 4th-6th)
Separate SDN hype from real life!

Remove unwanted PPP peer route

When IOS started supporting dynamic allocation of IPCP (IP over PPP) addresses, it also got the mechanism to insert a dynamic host route toward the neighbor's IP address once the IP addresses were negotiated. This mechanism makes perfect sense in dynamic address allocation environments, as the subnet mask is not negotiated with IPCP. Without a host route toward the other end of the PPP link, there would be no easy way to reach the IP prefixes reachable via the PPP link.However, the PPP code got way too aggressive in the recent IOS releases. For example, in the 12.4T train, you get a connected host route toward the IP address of the PPP peer even on a leased line where both addresses are in the same IP subnet. Here's a sample printout from my lab router that illustrates this behavior:

R1#show run interface serial 1/0
Current configuration : 107 bytes
interface Serial1/0
 ip address
 encapsulation ppp
 serial restart-delay 0
R1#show ip route longer | begin Gateway
Gateway of last resort is not set is variably subnetted, 4 subnets, 2 masks
C is directly connected, Serial1/0
C is directly connected, Serial1/0

To disable the automatic insertion of the connected host route, use the no peer neighbor-route interface configuration command.

You have to clear the IP routing table or flap the interface to remove the PPP-generated host route

1 comment:

  1. Coincidentally, I've just run into this issue as we turned up a new circuit to a remote office; I wondered if this was something in the PPP RFC or a Cisco oddity. Thanks very much for the enlightening information!


You don't have to log in to post a comment, but please do provide your real name/URL. Anonymous comments might get deleted.