all 13 comments

[–]Wax_Trax 5 points6 points  (7 children)

PPP on Cisco installs host routes to the other side by default.

Perform a "show ip route" both before and after you bring the interfaces up, and you'll see.

[–]PacketPuncher[S] 1 point2 points  (6 children)

So this is the intended behavior? I don't think I even knew this when I passed my CCNA.

[–]Wax_Trax 2 points3 points  (5 children)

This is intended behavior, but I don't believe it is taught at the CCNA level.

You can disable this behavior on the interface with "no peer neighbor-route"

Likewise, you can create an automatic default route with "ppp ipcp route default"

[–]PacketPuncher[S] 0 points1 point  (4 children)

Huh. Ok. I thought they had to be on the same network. I guess I'll have to read up on PPP.

And you're probably right about not being taught at CCNA level. Those commands are not supported in Packet Tracer.

Thank you. I thought I lost my mind/skillset for a minute. But that was just something I never knew about or noticed before.

[–]Wax_Trax 4 points5 points  (3 children)

Host routes are /32, which means a single IP on a subnet. Another way to think about it is with loopback interfaces. If you assign an IP address to a loopback address, and then advertise that interface (or subnet) into a routing protocol (or use static routing), that IP address becomes reachable to all devices that can reach the attached router via either the advertising routing protocol or static route.

The same goes for PPP with the default host-route installed. When the PPP connection is made, the /32 to the IP address of the other end of the link is installed in the local routing table. Because it's a /32, it does not matter that the IP address is not on the same subnet as the local interface, because the local router knows that it can reach that other IP address through that interface because of the /32 host route.

I know it sounds confusing and contrary to what is traditionally taught in networking. The key is to remember that a /32 host route is a subnet of one.

[–]_mynd 4 points5 points  (1 child)

I don't think that's completely accurate.

If you joined two routers together by an Ethernet interface, on different subnets, and pointed the host route out the interface, I'm fairly confident it won't work.

The reason this works in PPP isn't because of the host routes, but because it's a point-to-point interface. In other words, the routers know that the only device on the other side of the link is the other router.

[–]Wax_Trax 1 point2 points  (0 children)

You're right. I forgot to take the point-to-point nature into account. There I go again confusing people! LOL

Thank you

[–]pez347 1 point2 points  (0 children)

This is good knowledge to know going forward. Thank you everyone, I feel smarter now.

[–]chuckbalesCCNP|CCDP|CCNA-V|CMNA 3 points4 points  (2 children)

On a point-to-point circuit, there's only one place for the traffic to go (the other side), so you don't necessarily need routes just to ping your neighbor.

This is different than an ethernet connection where there could be multiple devices in the segment, which is why we have ARP to match an IP to a MAC address. With ethernet you can't just put traffic on the wire and know it'll get to the right device.

[–]a_cute_epic_axisJust 'cause it ain't in my flair doesn't mean I don't have certs 2 points3 points  (0 children)

Technically speaking, you very much DO need routes, but you don't need to have devices on the same subnet. PPP will install host routes by default, which will be seen in the routing table whenever the PPP session is up.

[–]PacketPuncher[S] 0 points1 point  (0 children)

Ok. Thank you. I have another question. I put OSPF on the "misconfigured" topology that I originally described + a switch and a pc pulling DHCP from the DHCP pool I put on the router. The routers didn't form an adjacency, and I could not ping from the PC.. But once I changed the "East" interface to the same subnet as the "West" interface, and added the network under ospf config, they formed an adjacency and I was able to ping from the PC.

I almost see what's going on here, but not exactly. If my pings work from the routers, why doesn't configuring ospf fix the ping from PC "problem"?

ninja edit: I'm confident that I didn't mess up configuring OSPF when the 2 routers were on different subnets.

[–]zreliford235 0 points1 point  (1 child)

PPP connections are different from "point to point" in the sense that if you connected g0/0 on r1 to the same port on r2, they need to be in the same subnet to communicate.

PPP is different from an Ethernet link.

[–]the-packet-throwerMeow 🐈🐈Meow 🐱🐱 Meow Meow🍺🐈🐱Meow A+! 0 points1 point  (0 children)

PPP installs a /32 "peer neighbor-route" of its neighbour to ensure connectivity. It's a dial-up networking thing where ISPs would give their dial-up customers IPs from many different ranges.