Re: pppoe(4) connection doesn't fully initialize ~50% of the time
Björn Ketelaars <[email protected]> Mon, 15 Jun 2026 21:32:24 +0200
| Newsgroups | gmane.os.openbsd.misc |
|---|---|
| Message-ID | <[email protected]> |
On Mon 15/06/2026 20:11, Jurjen Oskam wrote: > Hi, > > I recently switched to another ISP, and it uses PPPoE so I set things > up using pppoe(4). This works fine about 50% of the time: after a > reboot of the OpenBSD box there's a ~50% chance that the link comes up > correctly. The strange thing is that IPv4 connectivity does *not* work > in that case, while IPv6 connectivity (via dhcp6leased) *does* work. A > tcpdump of IPv4 traffic on pppoe0 shows only outbound packets (TCP > SYNs, UDP, etc), nothing coming back in. > > The PPPoE connection is from an Ethernet interface on my machine > (igc1) directly to the ONT of the ISP. The ONT expects the PPPoE > session on VLAN 6. The ISP has assigned a static IPv4 address. > > I suspect some sort of race condition occurring somewhere, but I > wouldn't know where to start digging. What would be the best way of > debugging this? > > The hostname.if files: > > calvin# cat /etc/hostname.igc1 > media 2500baseT mtu 1508 up > calvin# cat /etc/hostname.vlan6 > vnetid 6 parent igc1 mtu 1508 up > calvin# cat /etc/hostname.pppoe0 > inet 45.142.146.140 255.255.255.255 NONE \ > pppoedev vlan6 authproto pap \ > authname '[email protected]' authkey '1234' \ > mtu 1500 up > dest 0.0.0.1 > inet6 autoconf eui64 > !/sbin/route add default -ifp pppoe0 0.0.0.1 > !/sbin/route add -inet6 default -ifp pppoe0 fe80::%pppoe0 Could you try hostname.pppoe0 with: inet 45.142.146.140 255.255.255.255 0.0.0.1 \ pppoedev vlan6 authproto pap \ authname '[email protected]' authkey '1234' \ mtu 1500 up inet6 autoconf eui64 !/sbin/route add default -ifp pppoe0 0.0.0.1 !/sbin/route add -inet6 default -ifp pppoe0 fe80::%pppoe0