Hi,

I'm trying to make a new Internet connection work with using OpenBSD as
a router. The ISP is Ebox in Québec. The only instructions I have from
them is

> To establish the connection, make sure that the PPPoE configuration
> is done using the VLAN ID 40 option. Additionally, if your router
> requires you to configure the MTU value, it must be set to 1492.

(and with the username/password).

I tried the following configs:

/etc# head -n 20 hostname.*
==> hostname.em0 <==
up

==> hostname.pppoe0 <==
inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev vlan40 authproto pap \
        authname 'user' authkey 'password' \
        up
!/sbin/route add default -ifp pppoe0 0.0.0.1

==> hostname.vlan40 <==
vnetid 40 parent em0
#llprio 0
#txprio 0


(I think I'll have to set the 802.1p PCP field to 0 hence the comments)

which result in

$ ifconfig                                                                      
                                                                                
    
lo0: flags=2008049<UP,LOOPBACK,RUNNING,MULTICAST,LRO> mtu 32768
        index 4 priority 0 llprio 3
        groups: lo
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 
1500
        lladdr 3c:97:0e:33:0b:1e
        index 1 priority 0 llprio 3
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
iwn0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 60:67:20:91:bf:0c
        index 2 priority 4 llprio 3
        groups: wlan
        media: IEEE802.11 autoselect
        status: no network
        ieee80211: nwid ""
enc0: flags=0<>
        index 3 priority 0 llprio 3
        groups: enc
        status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
        index 5 priority 0 llprio 3
        groups: pflog
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
        index 10 priority 0 llprio 3
        dev: vlan40 state: PADI sent
        sid: 0x0 PADI retries: 0 PADR retries: 0
        sppp: phase establish authproto pap 
        groups: pppoe egress
        status: no carrier
        inet 0.0.0.0 --> 0.0.0.1 netmask 0xffffffff
vlan40: flags=8102<BROADCAST,PROMISC,MULTICAST> mtu 1500
        lladdr 3c:97:0e:33:0b:1e
        index 11 priority 0 llprio 3
        encap: vnetid 40 parent em0 txprio packet rxprio outer
        groups: vlan
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active

As shown, the connection is not working.

My current issue is that I run `tcpdump -ni em0` and most of the time, I
don't even see any pppoe connection attempt. At one point I saw:
14:45:49.861981 802.1Q vid 40 pri 1 PPPoE-Session
        code Session, version 1, type 1, id 0x0a61, length 42
        79.124.62.126.0 > 198.16.211.51.44479: S 4005972210:4005972210(0) win 
1024 [tos 0x48]
14:45:53.488758 802.1Q vid 40 pri 1 PPPoE-Session
        code Session, version 1, type 1, id 0x0a61, length 54
        18.204.97.105.443 > 198.16.211.51.57020: . ack 2369810081 win 27 
<nop,nop,timestamp 1826030239 2817137414> (DF)
14:45:54.985191 802.1Q vid 40 pri 1 PPPoE-Session
        code Session, version 1, type 1, id 0x0a61, length 62
        106.45.10.224.56908 > 198.16.211.51.2842: S 1421050218:1421050218(0) 
win 64240 <mss 1440,sackOK,timestamp 3409755466 0,nop,wscale 7> (DF)
14:45:55.997666 802.1Q vid 40 pri 1 PPPoE-Session
        code Session, version 1, type 1, id 0x0a61, length 62
        106.45.10.224.56908 > 198.16.211.51.2842: S 1421050218:1421050218(0) 
win 64240 <mss 1440,sackOK,timestamp 3409756478 0,nop,wscale 7> (DF)
14:46:09.623500 802.1Q vid 40 pri 1 PPPoE-Session
        code Session, version 1, type 1, id 0x0a61, length 10
        LCP Echo-Request Id=0x6f: Magic-Number=411574615
14:46:13.968475 802.1Q vid 40 pri 1 PPPoE-Session
        code Session, version 1, type 1, id 0x0a61, length 54
        18.204.97.105.443 > 198.16.211.51.57020: . ack 1 win 27 
<nop,nop,timestamp 1826050719 2817137414> (DF)

but since I see no attempt, it's hard to play with the different
parameters to find the working combination.

The ISP provided router works fine.

My tests are done on an old x230 laptop running -current as of last
week.

I don't see anything in /var/log/messages or dmesg.

Any idea what the issue maybe or how to investigate?

Cheers,
Daniel

Reply via email to