On 23/11/2019 19:38, Joey Hess wrote:
> Using ppp for the first time in a year or so, it seems something has
> broken WRT defaultroute, which was working before.

Hi Joey,

This seems surprising, or I'm sure I'd have heard much more about this
by now. Curious.

> There was no default route set before starting pppd.
> After pon, this is the result:
> 
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
> 10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 
> wlx9cefd5fcd6f3
> 207.223.72.68   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0

This looks like output from the old 'route' tool. Would you mind also
providing output from 'ip route' as well, please?

What is your PPP link running on? I don't expect it to be a modem, but
is it PPPoE or PPTP or a VPN of some kind? That might also help to nail
things down.

> So apparently it's set a default route with no gateway, if that's even a
> thing. It certianly does not work.

PPP interfaces are point-to-point so it's perfectly valid to have a
route with no gateway address and just the interface as a destination.
There's no ARP on the PPP link, and any packets stuffed down the
interface (should) end up on the other end. There's no notion of a
router IP address on such links.

> Manually adding 207.223.72.68 as the default gateway makes the connection 
> work.

This doesn't make much sense to me, but a before and after of your route
table using 'ip route' would be really helpful and might shed some light
on the situation.

[snip]

> I enabled debug and didn't see anything in the log about routing.
> Here's the relevant part of the log, after authentication
> (log is in reverse order)

No, ppp doesn't negotiate a default route, it's up to each end to add
one as required. Hence the defaultroute / nodefaultroute options for pppd.

Cheers,
Chris

-- 
Chris Boot
bo...@debian.org

Reply via email to