Sorry, a copy and paste error
Below is the ifconfig -A output, note I've updated llprio to 1 on the vlan
which now looks to send down the wire as prio=0 when testing on a client. Ref:
http://openbsd-archive.7691.n7.nabble.com/use-link0-on-vlan-4-to-force-the-vlan-priority-to-llprio-td339390.html.
With llprio=1 on the pppoe0 device I get the below
OpenBSD:
22:10:52.275405 00:0d:b9:4f:74:98 Broadcast 8100 36: 802.1Q vid 2 pri 1
PPPoE-Discovery
code Initiation, version 1, type 1, id 0x0000, length 12
tag Service-Name, length 0
tag Host-Uniq, length 4 \307\270\216T
0000: ffff ffff ffff 000d b94f 7498 8100 0002 .........Ot.....
0010: 8863 1109 0000 000c 0101 0000 0103 0004 .c..............
0020: c7b8 8e54 ...T
Imac client:
22:00:24.885745 00:0d:b9:4f:74:98 (oui Unknown) > Broadcast, ethertype 802.1Q
(0x8100), length 60: vlan 2, p 0, ethertype PPPoE D, PPPoE PADI [Service-Name]
[Host-Uniq 0xC7B88E54]
0x0000: 1109 0000 000c 0101 0000 0103 0004 c7b8 ................
0x0010: 8e54 0000 0000 0000 0000 0000 0000 0000 .T..............
0x0020: 0000 0000 0000 0000 0000 ..........
In the morning I'll try doing a packet capture on the DD-WRT device that works
plugged in to another machine to grab it's PADI packets.
Ifconfig (note ethernet cable unpluged on em0 at the time):
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
index 5 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff000000
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0d:b9:4f:74:98
index 1 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0d:b9:4f:74:99
index 2 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0d:b9:4f:74:9a
index 3 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<>
index 4 priority 0 llprio 3
groups: enc
status: active
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
index 6 priority 0 llprio 1
dev: vlan2 state: PADI sent
sid: 0x0 PADI retries: 33 PADR retries: 0
sppp: phase establish authproto pap authname "redacted"
groups: pppoe egress
status: no carrier
inet 0.0.0.1 --> 0.0.0.0 netmask 0xff000000
vlan2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0d:b9:4f:74:98
index 7 priority 0 llprio 1
encap: vnetid 2 parent em0
groups: vlan
media: Ethernet autoselect (none)
status: no carrier
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 8 priority 0 llprio 3
groups: pflog
--
Adam Evans
On Sat, 9 Feb 2019, at 21:35, Sebastien Marie wrote:
> On Sat, Feb 09, 2019 at 05:51:27PM +1100, Adam Evans wrote:
> > Hi, i'm trying to set up an OpenBSD router (6.4) on a PcEngines APU2D4 with
> > Intel i210AT nics however I am having difficulties with PPPoE. I can see
> > the discovery PADI packets going out using tcpdump but do not see any PADO
> > response so PPPoE times out and retries sending the PADI packets.
> >
> > More confusing is my Netgear R7000 running DD-WRT that I want to replace
> > with the APU handles PPPoE just fine and bizarrely the PADI packets look
> > the same however the packets from OpenBSD don't get a response but the
> > R7000 does.
> >
> >
> > If config output:
>
> the ifconfig output is a bit odd.
>
> > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
> > index 5 priority 0 llprio 3
> > groups: lo
> > inet6 ::1 prefixlen 128
> > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
> > inet 127.0.0.1 netmask 0xff000000
> > em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1492
> > lladdr 00:0d:b9:4f:74:98
> > index 1 priority 0 llprio 3
> > media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
> > status: active
> > em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
> > lladdr 00:0d:b9:4f:74:99
> > index 2 priority 0 llprio 3
> > media: Ethernet autoselect (none)
> > status: no carrier
> > em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
> > lladdr 00:0d:b9:4f:74:99
> > index 2 priority 0 llprio 3
> > media: Ethernet autoselect (none)
> > status: no carrier
>
> em1 is listed twice
>
> > em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> > lladdr 00:0d:b9:4f:74:9a
> > index 3 priority 0 llprio 3
> > groups: egress
> > media: Ethernet autoselect (none)
> > status: no carrier
> > inet 192.168.2.103 netmask 0xffffff00 broadcast 192.168.2.255
> > enc0: flags=0<>
> > index 4 priority 0 llprio 3
> > groups: enc
> > status: active
> > pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
> > index 6 priority 0 llprio 3
> > groups: pflog
> > pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
> > index 7 priority 0 llprio 0
> > dev: vlan2 state: PADI sent
> > sid: 0x0 PADI retries: 10 PADR retries: 0
> > sppp: phase establish authproto pap authname "b8nfv2em"
> > groups: pppoe
> > status: no carrier
> > inet 0.0.0.1 --> 0.0.0.0 netmask 0xff000000
> > vlan2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1492
> > lladdr 00:0d:b9:4f:74:98
> > index 8 priority 0 llprio
>
> vlan2 isn't attached to anything: you should have a line like:
>
> encap: vnetid 2 parent em0 txprio packet
>
> > Config files:
> > ## /etc/hostname.em0:
> > mtu 1492 up
> >
> >
> > ## /etc/hostname.vlan2:
> > vnetid 2 parent em0
> > llprio 0
> > mtu 1492
> > up
>
> the configuration file seems fine.
>
> > ## /etc/hostname.pppoe0:
> > inet 0.0.0.0 255.255.255.255 NONE \
> > pppoedev vlan2 authproto pap \
> > authname 'redacted' authkey 'redacted' up
> > mtu 1492
> > llprio 0
> > dest 0.0.0.1
> > !/sbin/route add default -ifp pppoe0 0.0.0.1
>
>
> so, could you check the configuration file of hostname.vlan2 is really
> applied on the running system ?
>
> else, could you send the whole output of ifconfig ? (but feel free to
> remove pppoe0 authentification information).
>
> thanks.
> --
> Sebastien Marie