Some more debugging, a lot further but still no success.
I attached the DD-WRT modem directly to a computer to capture the PADI packets.
Capturing from the DD-WRT modem directly, PADI packets look like the below:
22:15:54.329145 a0:63:91:47:81:07 (oui Unknown) > Broadcast, ethertype 802.1Q
(0x8100), length 36: vlan 2, p 0, ethertype PPPoE D, PPPoE PADI [Service-Name]
[Host-Uniq 0xEE720000]
0x0000: 0002 8863 1109 0000 000c 0101 0000 0103 ...c............
0x0010: 0004 ee72 0000 ...r..
On the other end of the wire at the client the packets look like:
12:13:05.995412 a0:63:91:47:81:07 (oui Unknown) > Broadcast, ethertype PPPoE D
(0x8863), length 60: PPPoE PADI [Service-Name] [Host-Uniq 0x622A0000]
0x0000: 1109 0000 000c 0101 0000 0103 0004 622a ..............b*
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0020: 0000 0000 0000 0000 0000 838c 7a4d ............zM
12:13:20.277749 a0:63:91:47:81:07 (oui Unknown) > Broadcast, ethertype PPPoE D
(0x8863), length 60: PPPoE PADI [Service-Name] [Host-Uniq 0xF02A0000]
0x0000: 1109 0000 000c 0101 0000 0103 0004 f02a ...............*
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0020: 0000 0000 0000 0000 0000 e929 b08f ...........)..
>From the above it looks like the PPPoE Discovery is not done over the vlan as
>it get's stripped.
I updated the /etc/hostname.pppoe0 config to change pppodev from vlan2 to em0.
I then plugged the device in to the bridged modem and brought up the PPPoE
interface which returned the below. I do not have IPv6 setup in my PPPoE config
so it looks like the remote tries to send me a IPv6 packet which causes OpenBSD
to send a terminate session response.
# ifconfig pppoe0 up
Feb 10 13:18:48 foo /bsd: pppoe0: lcp close(initial)
Feb 10 13:18:48 foo /bsd: pppoe0: lcp open(initial)
Feb 10 13:18:48 foo /bsd: pppoe0: lcp initial->starting
Feb 10 13:18:48 foo /bsd: pppoe0: phase establish
Feb 10 13:18:48 foo /bsd: pppoe0 (8863) state=1, session=0x0 output ->
ff:ff:ff:ff:ff:ff, len=18
Feb 10 13:18:48 foo /bsd: pppoe0 (8863) state=2, session=0x0 output ->
78:da:6e:de:db:d4, len=38
Feb 10 13:18:48 foo /bsd: pppoe0: received unexpected PADO
Feb 10 13:18:48 foo last message repeated 10 times
Feb 10 13:18:48 foo /bsd: pppoe0: session 0xe84d connected
Feb 10 13:18:48 foo /bsd: pppoe0: lcp up(starting)
Feb 10 13:18:48 foo /bsd: pppoe0: lcp starting->req-sent
Feb 10 13:18:48 foo /bsd: pppoe0: lcp output <conf-req id=0x31 len=14
05-06-0f-4a-92-53-01-04-05-d4>
Feb 10 13:18:48 foo /bsd: pppoe0 (8864) state=3, session=0xe84d output ->
78:da:6e:de:db:d4, len=22
Feb 10 13:18:48 foo /bsd: pppoe0: lcp input(req-sent): <conf-req id=0x1 len=18
01-04-05-d4-03-04-c0-23-05-06-b1-df-b5-ab-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 13:18:48 foo /bsd: pppoe0: lcp parse opts: mru auth-proto magic
Feb 10 13:18:48 foo /bsd: pppoe0: lcp parse opt values: mru 1492 auth-proto
magic 0xb1dfb5ab send conf-ack
Feb 10 13:18:48 foo /bsd: pppoe0: lcp output <conf-ack id=0x1 len=18
01-04-05-d4-03-04-c0-23-05-06-b1-df-b5-ab>
Feb 10 13:18:48 foo /bsd: pppoe0 (8864) state=3, session=0xe84d output ->
78:da:6e:de:db:d4, len=26
Feb 10 13:18:48 foo /bsd: pppoe0: lcp req-sent->ack-sent
Feb 10 13:18:48 foo /bsd: pppoe0: lcp input(ack-sent): <conf-ack id=0x31 len=14
05-06-0f-4a-92-53-01-04-05-d4-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 13:18:48 foo /bsd: pppoe0: lcp ack-sent->opened
Feb 10 13:18:48 foo /bsd: pppoe0: lcp tlu
Feb 10 13:18:48 foo /bsd: pppoe0: phase authenticate
Feb 10 13:18:48 foo /bsd: pppoe0: pap output <req id=0x32 len=29
08-62-38-6e-66-76-32-65-6d-0f-41-74-65-7a-36-79-5a-55-6f-4a-4b-6d-38-59-70>
Feb 10 13:18:48 foo /bsd: pppoe0 (8864) state=3, session=0xe84d output ->
78:da:6e:de:db:d4, len=37
Feb 10 13:18:48 foo /bsd: pppoe0: pap success
Feb 10 13:18:48 foo /bsd: pppoe0: phase network
Feb 10 13:18:48 foo /bsd: pppoe0: ipcp open(starting)
Feb 10 13:18:48 foo /bsd: pppoe0: ipv6cp_open(): no IPv6 interface
Feb 10 13:18:48 foo /bsd: pppoe0: lcp close(opened)
Feb 10 13:18:48 foo /bsd: pppoe0: lcp opened->closing
Feb 10 13:18:48 foo /bsd: pppoe0: lcp output <term-req id=0x33 len=4>
Feb 10 13:18:48 foo /bsd: pppoe0 (8864) state=3, session=0xe84d output ->
78:da:6e:de:db:d4, len=12
Feb 10 13:18:48 foo /bsd: pppoe0: phase terminate
Feb 10 13:18:48 foo /bsd: pppoe0: lcp input(closing): <term-ack id=0x33 len=4
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 13:18:48 foo /bsd: pppoe0: lcp closing->closed
Feb 10 13:18:48 foo /bsd: pppoe0: phase dead
Feb 10 13:18:48 foo /bsd: pppoe0: timeout
Feb 10 13:18:48 foo /bsd: pppoe0: disconnecting
Feb 10 13:18:48 foo /bsd: pppoe0: lcp down(closed)
Feb 10 13:18:48 foo /bsd: pppoe0: lcp closed->initial
Feb 10 13:18:48 foo /bsd: pppoe0: Down event (carrier loss), taking interface
down.
Looking at the below packet dump it looks to go through the PPPoE doing auth
etc but then terminates at the end.
12:47:39.116857 a0:63:91:47:81:07 Broadcast 8863 32: PPPoE-Discovery
code Initiation, version 1, type 1, id 0x0000, length 12
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
0000: ffff ffff ffff a063 9147 8107 8863 1109 .......c.G...c..
0010: 0000 000c 0101 0000 0103 0004 4d0c 8e7c ............M..|
12:47:39.123577 a4:6c:2a:25:7d:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-apt-ros-bras22
tag AC-Cookie, length 16
W\370e\032n\227\222\030\313\253\2614\276\336\001_
0000: a063 9147 8107 a46c 2a25 7dd4 8863 1107 .c.G...l*%}..c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d61 7074 2d72 6f73 2d62 7261 7332 3201 -apt-ros-bras22.
0050: 0400 1057 f865 1a6e 9792 18cb abb1 34be ...W.e.n......4.
0060: de01 5f .._
12:47:39.123613 a0:63:91:47:81:07 a4:6c:2a:25:7d:d4 8863 52: PPPoE-Discovery
code Request, version 1, type 1, id 0x0000, length 32
tag Service-Name, length 0
tag AC-Cookie, length 16
W\370e\032n\227\222\030\313\253\2614\276\336\001_
tag Host-Uniq, length 4 M\014\216|
0000: a46c 2a25 7dd4 a063 9147 8107 8863 1119 .l*%}..c.G...c..
0010: 0000 0020 0101 0000 0104 0010 57f8 651a ... ........W.e.
0020: 6e97 9218 cbab b134 bede 015f 0103 0004 n......4..._....
0030: 4d0c 8e7c M..|
12:47:39.123694 78:da:6e:de:db:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-sot-ken-bras21
tag AC-Cookie, length 16 \0043\206Z\320[y\353j\213X\304\372|=\341
0000: a063 9147 8107 78da 6ede dbd4 8863 1107 .c.G..x.n....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d73 6f74 2d6b 656e 2d62 7261 7332 3101 -sot-ken-bras21.
0050: 0400 1004 3386 5ad0 5b79 eb6a 8b58 c4fa ....3.Z.[y.j.X..
0060: 7c3d e1 |=.
12:47:39.123695 78:da:6e:de:d3:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-gls-har-bras21
tag AC-Cookie, length 16 \255\317\363\274Pi\240\226F\272m\272\211h3\323
0000: a063 9147 8107 78da 6ede d3d4 8863 1107 .c.G..x.n....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d67 6c73 2d68 6172 2d62 7261 7332 3101 -gls-har-bras21.
0050: 0400 10ad cff3 bc50 69a0 9646 ba6d ba89 .......Pi..F.m..
0060: 6833 d3 h3.
12:47:39.123812 78:da:6e:a1:cd:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-gls-har-bras23
tag AC-Cookie, length 16
\241\226\014\277\347\240\234^\313I\016=M\013\316\371
0000: a063 9147 8107 78da 6ea1 cdd4 8863 1107 .c.G..x.n....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d67 6c73 2d68 6172 2d62 7261 7332 3301 -gls-har-bras23.
0050: 0400 10a1 960c bfe7 a09c 5ecb 490e 3d4d ..........^.I.=M
0060: 0bce f9 ...
12:47:39.123813 b0:aa:77:b8:04:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-gls-har-bras25
tag AC-Cookie, length 16
\016\017\241\372c\217\261\354\011-\364\215\361\346\341[
0000: a063 9147 8107 b0aa 77b8 04d4 8863 1107 .c.G....w....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d67 6c73 2d68 6172 2d62 7261 7332 3501 -gls-har-bras25.
0050: 0400 100e 0fa1 fa63 8fb1 ec09 2df4 8df1 .......c....-...
0060: e6e1 5b ..[
12:47:39.123814 78:da:6e:de:df:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-gls-har-bras24
tag AC-Cookie, length 16 po\245N?f'\220\031\361\004\323\317D27
0000: a063 9147 8107 78da 6ede dfd4 8863 1107 .c.G..x.n....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d67 6c73 2d68 6172 2d62 7261 7332 3401 -gls-har-bras24.
0050: 0400 1070 6fa5 4e3f 6627 9019 f104 d3cf ...po.N?f'......
0060: 4432 37 D27
12:47:39.123961 a4:6c:2a:6a:ed:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-apt-ros-bras21
tag AC-Cookie, length 16 \271\370TY\354\357\2437_\242\271\344-'\242\254
0000: a063 9147 8107 a46c 2a6a edd4 8863 1107 .c.G...l*j...c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d61 7074 2d72 6f73 2d62 7261 7332 3101 -apt-ros-bras21.
0050: 0400 10b9 f854 59ec efa3 375f a2b9 e42d .....TY...7_...-
0060: 27a2 ac '..
12:47:39.123962 b4:de:31:b5:ae:14 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-gls-har-bras26
tag AC-Cookie, length 16 \003\316\037\374,|\3243\017\015Bp \263,\011
0000: a063 9147 8107 b4de 31b5 ae14 8863 1107 .c.G....1....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d67 6c73 2d68 6172 2d62 7261 7332 3601 -gls-har-bras26.
0050: 0400 1003 ce1f fc2c 7cd4 330f 0d42 7020 .......,|.3..Bp
0060: b32c 09 .,.
12:47:39.123963 78:da:6e:a1:c9:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-gls-har-bras22
tag AC-Cookie, length 16 \024\267\352\261\327x\320/!\243#\361\225oSa
0000: a063 9147 8107 78da 6ea1 c9d4 8863 1107 .c.G..x.n....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d67 6c73 2d68 6172 2d62 7261 7332 3201 -gls-har-bras22.
0050: 0400 1014 b7ea b1d7 78d0 2f21 a323 f195 ........x./!.#..
0060: 6f53 61 oSa
12:47:39.123964 b4:de:31:f2:63:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-apt-ros-bras23
tag AC-Cookie, length 16 \245\331\221\323cU7\262\255\214|c\377(~\330
0000: a063 9147 8107 b4de 31f2 63d4 8863 1107 .c.G....1.c..c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d61 7074 2d72 6f73 2d62 7261 7332 3301 -apt-ros-bras23.
0050: 0400 10a5 d991 d363 5537 b2ad 8c7c 63ff .......cU7...|c.
0060: 287e d8 (~.
12:47:39.123965 78:da:6e:de:dd:d4 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-sot-ken-bras22
tag AC-Cookie, length 16 \324\352Q!g\372\365\355!q\2643\266)\205\374
0000: a063 9147 8107 78da 6ede ddd4 8863 1107 .c.G..x.n....c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d73 6f74 2d6b 656e 2d62 7261 7332 3201 -sot-ken-bras22.
0050: 0400 10d4 ea51 2167 faf5 ed21 71b4 33b6 .....Q!g...!q.3.
0060: 2985 fc )..
12:47:39.126503 4c:77:6d:2c:eb:14 a0:63:91:47:81:07 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 M\014\216|
tag AC-Name, length 18 syd-apt-ros-bras24
tag AC-Cookie, length 16
\340R\037\320\360\025\354\303I\216g\226b\302\242\216
0000: a063 9147 8107 4c77 6d2c eb14 8863 1107 .c.G..Lwm,...c..
0010: 0000 004f 0105 0015 0000 0de9 010f 4156 ...O..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0300 044d 0c8e 7c01 0200 1273 7964 .....M..|....syd
0040: 2d61 7074 2d72 6f73 2d62 7261 7332 3401 -apt-ros-bras24.
0050: 0400 10e0 521f d0f0 15ec c349 8e67 9662 ....R......I.g.b
0060: c2a2 8e ...
12:47:39.131518 a4:6c:2a:25:7d:d4 a0:63:91:47:81:07 8863 77: PPPoE-Discovery
code Confirm, version 1, type 1, id 0x8577, length 57
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag AC-Cookie, length 16
W\370e\032n\227\222\030\313\253\2614\276\336\001_
tag Host-Uniq, length 4 M\014\216|
0000: a063 9147 8107 a46c 2a25 7dd4 8863 1165 .c.G...l*%}..c.e
0010: 8577 0039 0105 0015 0000 0de9 010f 4156 .w.9..........AV
0020: 4330 3030 3033 3038 3631 3939 3901 0100 C000030861999...
0030: 0001 0400 1057 f865 1a6e 9792 18cb abb1 .....W.e.n......
0040: 34be de01 5f01 0300 044d 0c8e 7c 4..._....M..|
12:47:39.159336 a0:63:91:47:81:07 a4:6c:2a:25:7d:d4 8864 36: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 16
LCP Configure-Request Id=0x13: Magic-Number=3505771336 Max-Rx-Unit=1492
0000: a46c 2a25 7dd4 a063 9147 8107 8864 1100 .l*%}..c.G...d..
0010: 8577 0010 c021 0113 000e 0506 d0f5 d348 .w...!.........H
0020: 0104 05d4 ....
12:47:39.164535 a4:6c:2a:25:7d:d4 a0:63:91:47:81:07 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 20
LCP Configure-Request Id=0x01: Max-Rx-Unit=1492 Auth-Prot=PAP
Magic-Number=198896271
0000: a063 9147 8107 a46c 2a25 7dd4 8864 1100 .c.G...l*%}..d..
0010: 8577 0014 c021 0101 0012 0104 05d4 0304 .w...!..........
0020: c023 0506 0bda ea8f 0000 0000 0000 0000 .#..............
0030: 0000 0000 0000 0000 0000 0000 ............
12:47:39.164567 a0:63:91:47:81:07 a4:6c:2a:25:7d:d4 8864 40: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 20
LCP Configure-Ack Id=0x01: Max-Rx-Unit=1492 Auth-Prot=PAP
Magic-Number=198896271
0000: a46c 2a25 7dd4 a063 9147 8107 8864 1100 .l*%}..c.G...d..
0010: 8577 0014 c021 0201 0012 0104 05d4 0304 .w...!..........
0020: c023 0506 0bda ea8f .#......
12:47:39.164640 a4:6c:2a:25:7d:d4 a0:63:91:47:81:07 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 16
LCP Configure-Ack Id=0x13: Magic-Number=3505771336 Max-Rx-Unit=1492
0000: a063 9147 8107 a46c 2a25 7dd4 8864 1100 .c.G...l*%}..d..
0010: 8577 0010 c021 0213 000e 0506 d0f5 d348 .w...!.........H
0020: 0104 05d4 0000 0000 0000 0000 0000 0000 ................
0030: 0000 0000 0000 0000 0000 0000 ............
12:47:39.164666 a0:63:91:47:81:07 a4:6c:2a:25:7d:d4 8864 51: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 31
PAP Authenticate-Request Id=0x14: Peer-Id=********
Passwd=***************
12:47:39.234993 a4:6c:2a:25:7d:d4 a0:63:91:47:81:07 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 7
PAP Authenticate-Ack Id=0x14: Message=
0000: a063 9147 8107 a46c 2a25 7dd4 8864 1100 .c.G...l*%}..d..
0010: 8577 0007 c023 0214 0005 0000 0000 0000 .w...#..........
0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0030: 0000 0000 0000 0000 0000 0000 ............
12:47:39.235021 a0:63:91:47:81:07 a4:6c:2a:25:7d:d4 8864 26: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 6
LCP Terminate-Request Id=0x15:
0000: a46c 2a25 7dd4 a063 9147 8107 8864 1100 .l*%}..c.G...d..
0010: 8577 0006 c021 0515 0004 .w...!....
12:47:39.235395 a4:6c:2a:25:7d:d4 a0:63:91:47:81:07 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 12
IPCP Configure-Request Id=0x01: IP-Address=10.20.23.229
0000: a063 9147 8107 a46c 2a25 7dd4 8864 1100 .c.G...l*%}..d..
0010: 8577 000c 8021 0101 000a 0306 0a14 17e5 .w...!..........
0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0030: 0000 0000 0000 0000 0000 0000 ............
12:47:39.239776 a4:6c:2a:25:7d:d4 a0:63:91:47:81:07 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0x8577, length 6
LCP Terminate-Ack Id=0x15:
0000: a063 9147 8107 a46c 2a25 7dd4 8864 1100 .c.G...l*%}..d..
0010: 8577 0006 c021 0615 0004 0000 0000 0000 .w...!..........
0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0030: 0000 0000 0000 0000 0000 0000 ............
12:47:39.258643 a0:63:91:47:81:07 a4:6c:2a:25:7d:d4 8863 20: PPPoE-Discovery
code Terminate, version 1, type 1, id 0x8577, length 0
0000: a46c 2a25 7dd4 a063 9147 8107 8863 11a7 .l*%}..c.G...c..
0010: 8577 0000 .w..
------
Next I updated my pppoe conf adding ipv6:
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev em0 authproto pap \
authname 'b8nfv2em' authkey 'Atez6yZUoJKm8Yp'
mtu 1492
llprio 1
dest 0.0.0.1
inet6 eui64
!/sbin/route add default -ifp pppoe0 0.0.0.1
!/sbin/route add ::/0 -ifp pppoe0 fe80::%pppoe0
This looks to bring up a session, but not completely:
ifconfig pppoe0
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
index 6 priority 0 llprio 1
dev: em0 state: session
sid: 0xc93 PADI retries: 0 PADR retries: 0 time: 00:06:52
sppp: phase network authproto pap authname "b8nfv2em"
groups: pppoe egress
status: active
inet 0.0.0.1 --> 0.0.0.0 netmask 0xff000000
inet6 fe80::f158:4833:c68d:6ecc%pppoe0 -> prefixlen 64 scopeid 0x6
Feb 10 15:09:12 foo /bsd: pppoe0: timeout
Feb 10 15:09:12 foo /bsd: pppoe0 (8863) state=1, session=0x0 output ->
ff:ff:ff:ff:ff:ff, len=18
Feb 10 15:09:12 foo /bsd: pppoe0 (8863) state=2, session=0x0 output ->
b0:aa:77:b8:04:d4, len=38
Feb 10 15:09:12 foo /bsd: pppoe0: received unexpected PADO
Feb 10 15:09:12 foo last message repeated 9 times
Feb 10 15:09:12 foo /bsd: pppoe0: session 0xc528 connected
Feb 10 15:09:12 foo /bsd: pppoe0: lcp up(starting)
Feb 10 15:09:12 foo /bsd: pppoe0: lcp starting->req-sent
Feb 10 15:09:12 foo /bsd: pppoe0: lcp output <conf-req id=0x1 len=14
05-06-28-08-a1-c2-01-04-05-d4>
Feb 10 15:09:12 foo /bsd: pppoe0 (8864) state=3, session=0xc528 output ->
b0:aa:77:b8:04:d4, len=22
Feb 10 15:09:12 foo /bsd: pppoe0: lcp input(req-sent): <conf-req id=0x1 len=18
01-04-05-d4-03-04-c0-23-05-06-0e-7d-82-43-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 15:09:12 foo /bsd: pppoe0: lcp parse opts: mru auth-proto magic
Feb 10 15:09:12 foo /bsd: pppoe0: lcp parse opt values: mru 1492 auth-proto
magic 0xe7d8243 send conf-ack
Feb 10 15:09:12 foo /bsd: pppoe0: lcp output <conf-ack id=0x1 len=18
01-04-05-d4-03-04-c0-23-05-06-0e-7d-82-43>
Feb 10 15:09:12 foo /bsd: pppoe0 (8864) state=3, session=0xc528 output ->
b0:aa:77:b8:04:d4, len=26
Feb 10 15:09:12 foo /bsd: pppoe0: lcp req-sent->ack-sent
Feb 10 15:09:12 foo /bsd: pppoe0: lcp input(ack-sent): <conf-ack id=0x1 len=14
05-06-28-08-a1-c2-01-04-05-d4-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 15:09:12 foo /bsd: pppoe0: lcp ack-sent->opened
Feb 10 15:09:12 foo /bsd: pppoe0: lcp tlu
Feb 10 15:09:12 foo /bsd: pppoe0: phase authenticate
Feb 10 15:09:12 foo /bsd: pppoe0: pap output <req id=0x2 len=29
08-62-38-6e-66-76-32-65-6d-0f-41-74-65-7a-36-79-5a-55-6f-4a-4b-6d-38-59-70>
Feb 10 15:09:12 foo /bsd: pppoe0 (8864) state=3, session=0xc528 output ->
b0:aa:77:b8:04:d4, len=37
Feb 10 15:09:12 foo /bsd: pppoe0: pap success
Feb 10 15:09:12 foo /bsd: pppoe0: phase network
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp open(initial)
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp initial->starting
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp_open(): no IP interface
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp open(initial)
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp initial->starting
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp up(starting)
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp starting->req-sent
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp output <conf-req id=0x3 len=14
01-0a-f1-58-48-33-c6-8d-6e-cc>
Feb 10 15:09:12 foo /bsd: pppoe0 (8864) state=3, session=0xc528 output ->
b0:aa:77:b8:04:d4, len=22
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp input(starting): <conf-req id=0x1 len=10
03-06-0a-14-15-fd-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp parse opts: address
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp parse opt values: address 10.20.21.253
[not agreed] send conf-nak
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp output <conf-nak id=0x1 len=10
03-06-00-00-00-00>
Feb 10 15:09:12 foo /bsd: pppoe0 (8864) state=3, session=0xc528 output ->
b0:aa:77:b8:04:d4, len=18
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp input(req-sent): <conf-req id=0x1
len=14
01-0a-b2-aa-77-ff-fe-b8-03-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp parse opts: ifid
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp parse opt values: ifid
fe80::b2aa:77ff:feb8:300 [conf-ack] send conf-ack
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp output <conf-ack id=0x1 len=14
01-0a-b2-aa-77-ff-fe-b8-03-00>
Feb 10 15:09:12 foo /bsd: pppoe0 (8864) state=3, session=0xc528 output ->
b0:aa:77:b8:04:d4, len=22
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp req-sent->ack-sent
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp input(ack-sent): <conf-ack id=0x3
len=14
01-0a-f1-58-48-33-c6-8d-6e-cc-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp ack-sent->opened
Feb 10 15:09:12 foo /bsd: pppoe0: ipv6cp tlu
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp input(starting): <conf-req id=0x2 len=4
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00>
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp parse opts:
Feb 10 15:09:12 foo /bsd: pppoe0: ipcp parse opt values: still need hisaddr
send conf-nak
The ipcp parse opt values: still need hisaddr end conf-nak looks to repeat.
When I do a 'route show' with PPPoE established it hangs with no output,
disabling PPPoE 'route show' displays output.
Also when I do a packet dump it looks like no IPv4 address is assigned with a
source ip 0.0.0.1
15:47:27.876705 00:0d:b9:4f:74:98 78:da:6e:de:dd:d4 8864 34: PPPoE-Session
code Session, version 1, type 1, id 0x0c93, length 14
LCP Echo-Reply Id=0x3d: Magic-Number=3576684521 Data=d52fdfe9
15:47:29.948676 00:0d:b9:4f:74:98 78:da:6e:de:dd:d4 8864 80: PPPoE-Session
code Session, version 1, type 1, id 0x0c93, length 60
IP 0.0.0.1.5272 > 192.168.2.1.53: [udp sum ok] 28002+ A?
pool.ntp.org.(30) (ttl 64, id 6173, len 58)
15:47:30.172558 00:0d:b9:4f:74:98 78:da:6e:de:dd:d4 8864 106: PPPoE-Session
code Session, version 1, type 1, id 0x0c93, length 86
IP 0.0.0.1 > 8.8.8.8: icmp: echo request (id:2dba seq:0) [icmp cksum
ok] (ttl 255, id 30110, len 84)
15:47:31.178950 00:0d:b9:4f:74:98 78:da:6e:de:dd:d4 8864 106: PPPoE-Session
code Session, version 1, type 1, id 0x0c93, length 86
On the PPoE discovery packet dump I can see a configure request with IP
10.20.25.118 but an Nak is sent back with IP-Address=0.0.0.0?
Reading https://tools.ietf.org/html/rfc1332 3.3 IP-Address, OpenBSD is
disagreeing with the ip "10.20.25.118" and suggesting "0.0.0.0"?
16:29:49.602965 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Request Id=0x01: IP-Address=10.20.25.118
16:29:49.603321 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x01: IP-Address=0.0.0.0
Full tcp dump of ppopoe discovery with ipv6 + no vlan set:
16:29:49.344473 00:0d:b9:4f:74:98 ff:ff:ff:ff:ff:ff 8863 32: PPPoE-Discovery
code Initiation, version 1, type 1, id 0x0000, length 12
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
16:29:49.354343 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-apt-ros-bras24
tag AC-Cookie, length 16
U\371n\277\267\3044\202^\237\316\304\223\257\240\002
16:29:49.354408 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8863 52: PPPoE-Discovery
code Request, version 1, type 1, id 0x0000, length 32
tag Service-Name, length 0
tag AC-Cookie, length 16
U\371n\277\267\3044\202^\237\316\304\223\257\240\002
tag Host-Uniq, length 4 \020|l]
16:29:49.354459 a4:6c:2a:6a:ed:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-apt-ros-bras21
tag AC-Cookie, length 16
'On\344\330\233\242\345\023\011\216\2247x\335\317
16:29:49.354461 78:da:6e:a1:cd:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-gls-har-bras23
tag AC-Cookie, length 16 \342\007\025\215DUA/\204\302\000\214Qb\226\354
16:29:49.354576 78:da:6e:de:d3:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-gls-har-bras21
tag AC-Cookie, length 16 \230\\253ng\275\347\246\233Gz\013Z\022\230a
16:29:49.354577 78:da:6e:de:df:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-gls-har-bras24
tag AC-Cookie, length 16 X\312\365\002<\372\210Os\267\350$\257\036 l
16:29:49.354698 b4:de:31:b5:ae:14 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-gls-har-bras26
tag AC-Cookie, length 16
\302\276\034\177\030\037OXE\303\300\003\302Y\022u
16:29:49.354699 b0:aa:77:b8:04:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-gls-har-bras25
tag AC-Cookie, length 16 )h\342\361Wx\202\213\034\231\334%R\3051@
16:29:49.354700 a4:6c:2a:25:7d:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-apt-ros-bras22
tag AC-Cookie, length 16
\212\357\020\366\334m\226Y\005\323\247[z\342\351\021
16:29:49.354820 b4:de:31:f2:63:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-apt-ros-bras23
tag AC-Cookie, length 16 \362}\374DF\271\006.2\210!n\202\335\257\216
16:29:49.354821 78:da:6e:a1:c9:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-gls-har-bras22
tag AC-Cookie, length 16 `\035\366\350\251\033\UL\011\327y\235\036>%
16:29:49.354942 78:da:6e:de:dd:d4 00:0d:b9:4f:74:98 8863 99: PPPoE-Discovery
code Offer, version 1, type 1, id 0x0000, length 79
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag Host-Uniq, length 4 \020|l]
tag AC-Name, length 18 syd-sot-ken-bras22
tag AC-Cookie, length 16
L\235k\027\017\035\364y\002\327\235\246?\005\257\032
16:29:49.365316 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8863 77: PPPoE-Discovery
code Confirm, version 1, type 1, id 0xf7ba, length 57
tag Vendor-Specific, length 21 \000\000\015\351\001\017AVC000030861999
tag Service-Name, length 0
tag AC-Cookie, length 16
U\371n\277\267\3044\202^\237\316\304\223\257\240\002
tag Host-Uniq, length 4 \020|l]
16:29:49.386604 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 36: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 16
LCP Configure-Request Id=0x3c: Magic-Number=849039807 Max-Rx-Unit=1492
16:29:49.394598 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 20
LCP Configure-Request Id=0x01: Max-Rx-Unit=1492 Auth-Prot=PAP
Magic-Number=403967986
16:29:49.394628 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 40: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 20
LCP Configure-Ack Id=0x01: Max-Rx-Unit=1492 Auth-Prot=PAP
Magic-Number=403967986
16:29:49.394724 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 16
LCP Configure-Ack Id=0x3c: Magic-Number=849039807 Max-Rx-Unit=1492
16:29:49.394749 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 51: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 31
PAP Authenticate-Request Id=0x3d: Peer-Id=********
Passwd=***************
16:29:49.602847 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 7
PAP Authenticate-Ack Id=0x3d: Message=
16:29:49.602904 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 36: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 16
IPV6CP Configure-Request Id=0x3e: IPv6-Interface-Id=f158:4833:c68d:6ecc
16:29:49.602965 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Request Id=0x01: IP-Address=10.20.25.118
16:29:49.603321 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x01: IP-Address=0.0.0.0
16:29:49.611321 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 16
IPV6CP Configure-Request Id=0x01: IPv6-Interface-Id=4e77:6dff:fe2c:e940
16:29:49.611398 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 36: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 16
IPV6CP Configure-Ack Id=0x01: IPv6-Interface-Id=4e77:6dff:fe2c:e940
16:29:49.611435 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 16
IPV6CP Configure-Ack Id=0x3e: IPv6-Interface-Id=f158:4833:c68d:6ecc
16:29:49.611883 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x02:
16:29:49.611924 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x02: IP-Address=0.0.0.0
16:29:49.619745 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x03:
16:29:49.619772 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x03: IP-Address=0.0.0.0
16:29:49.627567 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x04:
16:29:49.627591 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x04: IP-Address=0.0.0.0
16:29:49.635578 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x05:
16:29:49.635601 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x05: IP-Address=0.0.0.0
16:29:49.643325 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x06:
16:29:49.643346 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x06: IP-Address=0.0.0.0
16:29:49.646281 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 98: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 78
IPv6 :: > ff02::16: HBH multicast listener report v2, 1 group record(s)
[hlim 1]
16:29:49.646400 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 98: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 78
IPv6 :: > ff02::16: HBH multicast listener report v2, 1 group record(s)
[hlim 1]
16:29:49.651315 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x07:
16:29:49.651350 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x07: IP-Address=0.0.0.0
16:29:49.659307 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x08:
16:29:49.659360 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x08: IP-Address=0.0.0.0
16:29:49.667086 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x09:
16:29:49.667109 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x09: IP-Address=0.0.0.0
16:29:49.674817 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 6
IPCP Configure-Request Id=0x0a:
16:29:49.674840 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 32: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 12
IPCP Configure-Nak Id=0x0a: IP-Address=0.0.0.0
16:29:49.846104 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 98: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 78
IPv6 fe80::4e77:6dff:fe2c:e940 > ff02::16: HBH multicast listener
report v2, 1 group record(s) [hlim 1]
16:29:49.846270 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 98: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 78
IPv6 fe80::4e77:6dff:fe2c:e940 > ff02::16: HBH multicast listener
report v2, 1 group record(s) [hlim 1]
16:29:49.847034 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 86: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 66
IPv6 fe80::4e77:6dff:fe2c:e940 > ff02::1: icmp6: neighbor adv: tgt is
fe80::4e77:6dff:fe2c:e940
16:29:50.165101 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 98: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 78
IPv6 fe80::4e77:6dff:fe2c:e940 > ff02::16: HBH multicast listener
report v2, 1 group record(s) [hlim 1]
16:29:50.165213 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 98: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 78
IPv6 fe80::4e77:6dff:fe2c:e940 > ff02::16: HBH multicast listener
report v2, 1 group record(s) [hlim 1]
16:30:03.329911 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 82: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 62
IP 0.0.0.1.43313 > 192.168.2.1.53: 29988+ A? www.google.com.(32)
16:30:08.340939 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 82: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 62
IP 0.0.0.1.47174 > 192.168.2.1.53: 29988+ A? www.google.com.(32)
16:30:09.613257 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 14
LCP Echo-Request Id=0x01: Magic-Number=403967986 Data=329b51bf
16:30:09.613283 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 34: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 14
LCP Echo-Reply Id=0x01: Magic-Number=849039807 Data=329b51bf
16:30:18.353786 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 82: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 62
IP 0.0.0.1.17812 > 192.168.2.1.53: 29988+ A? www.google.com.(32)
16:30:24.405493 00:0d:b9:4f:74:98 4c:77:6d:2c:eb:14 8864 30: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 10
LCP Echo-Request Id=0x3f: Magic-Number=849039807
16:30:24.413557 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 10
LCP Echo-Reply Id=0x3f: Magic-Number=403967986
16:30:29.644658 4c:77:6d:2c:eb:14 00:0d:b9:4f:74:98 8864 60: PPPoE-Session
code Session, version 1, type 1, id 0xf7ba, length 14
LCP Echo-Request Id=0x02: Magic-Number=403967986 Data=329b51bf
...
--
Adam Evans
On Sat, 9 Feb 2019, at 17:51, 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.
>
> Using tcpdump the PADI message form OpenBSD looks like below:
>
> 15:21:47.340929 a0:63:91:47:81:07 ff:ff:ff:ff:ff:ff 8100 36: 802.1Q
> vid 2 pri 0 PPPoE-Discovery
> code Initiation, version 1, type 1, id 0x0000, length 12
> tag Service-Name, length 0
> tag Host-Uniq, length 4 \210\352\235\232
>
> From the router running DD-WRT we can see the PADI packet followed by
> the response PADO:
>
> 01:14:57.164338 a0:63:91:47:81:07 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q
> (0x8100), length 36: vlan 2, p 0, ethertype PPPoE D, PPPoE PADI
> [Service-Name] [Host-Uniq 0x55440000]
>
> 01:14:57.171736 78:da:6e:de:df:d4 > a0:63:91:47:81:07, ethertype 802.1Q
> (0x8100), length 103: vlan 2, p 0, ethertype PPPoE D, PPPoE PADO
> [Vendor-Specific "......AVC000030861999"] [Service-Name] [Host-Uniq
> 0x55440000] [AC-Name "syd-gls-har-bras24"] [AC-Cookie "po.N?
> f'......D27"]
>
> To me, the PADI packets look the same, I even spoofed the MAC on the
> OpenBSD box so it looks like the DD-WRT router although this shouldn't
> be necessary I just wanted to verify.
>
> Does anyone have any ideas? My ISP requires me to use vlan 2, the
> packets look like they are using vlan 2. I also set priority to 0 to
> match the dd-wrt router. I've also tried to disable pflog in case that
> was blocking ingress with no luck. I'm out of ideas as the egress PADI
> broadcasts look identical from both devices. Any help is appreciated.
>
> If config output:
>
> 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
> 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
>
>
> Config files:
> ## /etc/hostname.em0:
> mtu 1492 up
>
>
> ## /etc/hostname.vlan2:
> vnetid 2 parent em0
> llprio 0
> mtu 1492
> up
>
> ## /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
>
>
>
> --
> Adam Evans