6.0 sppp does not answer PPPoE-Discovery code offer

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

6.0 sppp does not answer PPPoE-Discovery code offer

Axel Rau
Hi,

while trying to switch my Vigor130 to pppoe pass through and let my
OpenBSD firewall handle the pppoe stuff, I get:

1:31:42.085747 00:0f:c9:04:db:87 ff:ff:ff:ff:ff:ff 8100 36: 802.1Q vid 7 pri 3
PPPoE-Discovery
        code Initiation, version 1, type 1, id 0x0000, length 12
        tag Service-Name, length 0
        tag Host-Uniq, length 4 \372\250u'
11:31:42.129253 00:30:88:1f:18:9a 00:0f:c9:04:db:87 8863 83: PPPoE-Discovery
        code Offer, version 1, type 1, id 0x0000, length 63
        tag Host-Uniq, length 4 \372\250u'
        tag AC-Name, length 27 FFMR71-se800-B2224180702381
        tag AC-Cookie, length 16
\200g\260jE\320\217\020\334w\265\223\372\020\000\331
        tag Service-Name, length 0
11:31:52.050263 00:1d:aa:8b:5f:ac ff:ff:ff:ff:ff:ff 0800 158: 0.0.0.0.4018 >
255.255.255.255.4944: [udp sum ok] udp 116 (ttl 254, id 7, len 144)
11:32:02.050725 00:1d:aa:8b:5f:ac ff:ff:ff:ff:ff:ff 0800 158: 0.0.0.0.4086 >
255.255.255.255.4944: [udp sum ok] udp 116 (ttl 254, id 8, len 144)
11:32:12.051056 00:1d:aa:8b:5f:ac ff:ff:ff:ff:ff:ff 0800 158: 0.0.0.0.4163 >
255.255.255.255.4944: [udp sum ok] udp 116 (ttl 254, id 9, len 144)
11:32:22.051519 00:1d:aa:8b:5f:ac ff:ff:ff:ff:ff:ff 0800 158: 0.0.0.0.4249 >
255.255.255.255.4944: [udp sum ok] udp 116 (ttl 254, id 10, len 144)
11:32:32.051848 00:1d:aa:8b:5f:ac ff:ff:ff:ff:ff:ff 0800 158: 0.0.0.0.4344 >
255.255.255.255.4944: [udp sum ok] udp 116 (ttl 254, id 11, len 144)
11:32:42.052309 00:1d:aa:8b:5f:ac ff:ff:ff:ff:ff:ff 0800 158: 0.0.0.0.4448 >
255.255.255.255.4944: [udp sum ok] udp 116 (ttl 254, id 12, len 144)
11:32:42.090628 00:0f:c9:04:db:87 ff:ff:ff:ff:ff:ff 8100 36: 802.1Q vid 7 pri
3 PPPoE-Discovery
        code Initiation, version 1, type 1, id 0x0000, length 12
        tag Service-Name, length 0
        tag Host-Uniq, length 4 \372\250u'
11:32:42.131758 00:30:88:1f:18:9a 00:0f:c9:04:db:87 8863 83: PPPoE-Discovery
        code Offer, version 1, type 1, id 0x0000, length 63
        tag Host-Uniq, length 4 \372\250u'
        tag AC-Name, length 27 FFMR71-se800-B2224180702381
        tag AC-Cookie, length 16
\200g\260jE\320\217\020\334w\265\223\372\020\000\331
        tag Service-Name, length 0
. . .

Any help appreciated.

Thanks, Axel


PS: Details:

root@gw2:/etc # cat hostname.em5
# em5
inet 192.168.178.3 255.255.255.0 NONE
up
description "description "port 2 - 2nd from right - uplink to Vigor130 +
vlan7"
root@gw2:/etc # cat hostname.vlan7
vlan 7 vlandev em5
root@gw2:/etc # cat hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
        pppoedev vlan7 \
        authproto pap \
        authname 'some_user' authkey some_pw up
dest 0.0.0.1
!route add -inet -label default -ifp ${if} default 0.0.0.1
root@gw2:/etc #


root@gw2:~ # ifconfig pppoe0
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
        index 14 priority 0 llprio 3
        dev: vlan7 state: PADI sent
        sid: 0x0 PADI retries: 7 PADR retries: 0
        sppp: phase establish authproto pap authname "some_user"
        groups: pppoe egress
        status: no carrier
        inet 0.0.0.0 --> 0.0.0.1 netmask 0xffffffff
root@gw2:~ # ifconfig vlan7
vlan7: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0f:c9:04:db:87
        index 9 priority 0 llprio 3
        vlan: 7 parent interface: em5
        vnetid: 7
        parent: em5
        groups: vlan
        status: active
root@gw2:~ # ifconfig em5
em5: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
        lladdr 00:0f:c9:04:db:87
        index 6 priority 0 llprio 3
        media: Ethernet autoselect (100baseTX half-duplex)
        status: active
        inet 192.168.178.3 netmask 0xffffff00 broadcast 192.168.178.255


OpenBSD 6.0 (GENERIC.MP) #1: Wed Jan  4 21:44:59 CET 2017
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
.MP
cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A
CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE
3,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
real mem  = 2137407488 (2038MB)
avail mem = 2083766272 (1987MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 08/25/09, BIOS32 rev. 0 @ 0xfa7d0, SMBIOS rev. 2.2 @
0xf0000 (45 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 08/25/2009
bios0: PhoenixAward 945GSE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP MCFG APIC SSDT
acpi0: wakeup devices PEG1(S3) PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
PEX5(S5) HUB0(S5) UAR1(S5) UAR2(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3)
USBE(S3) AC97(S5) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 132MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.0.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU N270 @ 1.60GHz ("GenuineIntel" 686-class) 1.60
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A
CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE
3,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG1)
acpiprt2 at acpi0: bus 1 (PEX0)
acpiprt3 at acpi0: bus 2 (PEX1)
acpiprt4 at acpi0: bus 3 (PEX2)
acpiprt5 at acpi0: bus 4 (PEX3)
acpiprt6 at acpi0: bus -1 (PEX4)
acpiprt7 at acpi0: bus -1 (PEX5)
acpiprt8 at acpi0: bus 5 (HUB0)
acpicpu0 at acpi0: C1(@1 halt!), PSS
acpicpu1 at acpi0: C1(@1 halt!), PSS
acpitz0 at acpi0: critical temperature is 70 degC
acpibtn0 at acpi0: PWRB
"PNP0501" at acpi0 not configured
"PNP0501" at acpi0 not configured
"PNP0400" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
bios0: ROM list: 0xc0000/0xe400! 0xef000/0x1000!
cpu0: Enhanced SpeedStep 1596 MHz: speeds: 1600, 1333, 1067, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0: apic 2 int 16
inteldrm0: 1024x768
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 2 int 16
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:0f:c9:04:db:82
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 2 int 17
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:0f:c9:04:db:83
ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 2 int 18
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
00:0f:c9:04:db:84
ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 2 int 19
pci4 at ppb3 bus 4
em3 at pci4 dev 0 function 0 "Intel 82572EI" rev 0x06: apic 2 int 19, address
00:0f:c9:04:db:85
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 2 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 2 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 2 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 2 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci5 at ppb4 bus 5
em4 at pci5 dev 10 function 0 "Intel 82541GI" rev 0x05: apic 2 int 19, address
00:0f:c9:04:db:86
em5 at pci5 dev 11 function 0 "Intel 82541GI" rev 0x05: apic 2 int 18, address
00:0f:c9:04:db:87
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI" rev 0x02: msi, AHCI 1.1
ahci0: port 0: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, ST9160511NS, SN04> SCSI3 0/direct fixed
naa.5000c5001a7ba1b8
sd0: 152627MB, 512 bytes/sector, 312581808 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 2 int
19
iic0 at ichiic0
iic0: addr 0x2e 00=00 01=00 02=80 03=00 04=a1 05=07 06=00 07=00 words 00=00ff
01=00ff 02=80ff 03=00ff 04=a1ff 05=07ff 06=00ff 07=00ff
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-4200CL5
spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-4200CL5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83627EHF rev 0x68
lm1 at wbsio0 port 0x290/8: W83627EHF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
acpitz0: _AL0[0] _PR0 failed
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a swap on sd0b dump on sd0b

---
PGP-Key:29E99DD6  ☀  computing @ chaos claudius

Reply | Threaded
Open this post in threaded view
|

Re: 6.0 sppp does not answer PPPoE-Discovery code offer

Axel Rau
> Am 07.01.2017 um 20:01 schrieb Axel Rau <[hidden email]>:
>
> Hi,
>
> while trying to switch my Vigor130 to pppoe pass through and let my
> OpenBSD firewall handle the pppoe stuff, I get:

Turning on debug shows:

Jan  8 17:48:05 gw1 /bsd: pppoe0 (8863) state=1, session=0x0 output ->
ff:ff:ff:ff:ff:ff, len=18
Jan  8 17:48:05 gw1 /bsd: pppoe0: wrong interface, not accepting host unique
Jan  8 17:48:05 gw1 /bsd: pppoe: received PADO but could not find request for
it
Jan  8 17:49:05 gw1 /bsd: pppoe0: timeout

Setting pppoedev to a physical device (em5) and let the Vigor 130
do the vlan tagging advances the state to
        code Request:

18:45:32.630667 00:60:e0:5a:75:45 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 \203\017\224\371
18:45:33.674682 00:30:88:1f:18:9a 00:60:e0:5a:75:45 8863 83: PPPoE-Discovery
        code Offer, version 1, type 1, id 0x0000, length 63
        tag Host-Uniq, length 4 \203\017\224\371
        tag AC-Name, length 27 FFMR71-se800-B2224180702381
        tag AC-Cookie, length 16
\347\212\027\206\367\214\026\211i\277\311\267\010d!\026
        tag Service-Name, length 0
18:45:33.749614 00:60:e0:5a:75:45 00:30:88:1f:18:9a 8863 52: PPPoE-Discovery
        code Request, version 1, type 1, id 0x0000, length 32
        tag Service-Name, length 0
        tag AC-Cookie, length 16
\347\212\027\206\367\214\026\211i\277\311\267\010d!\026
        tag Host-Uniq, length 4 \203\017\224\371
18:45:38.840790 00:60:e0:5a:75:45 00:30:88:1f:18:9a 8863 52: PPPoE-Discovery
        code Request, version 1, type 1, id 0x0000, length 32
        tag Service-Name, length 0
        tag AC-Cookie, length 16
\347\212\027\206\367\214\026\211i\277\311\267\010d!\026
        tag Host-Uniq, length 4 \203\017\224\371

It seems that sppp does not work with vlan pseudi device.

I also tried this on a different hardware box with
        em5 at pci0 dev 20 function 3 „Intel I354 SGMII“ rev 0x03: \
        msi, address 00:60:e0:5a:75:45
instead of
        em5 at pci5 dev 11 function 0 „Intel 82541GI“ rev 0x05: \
        apic 2 int 18, address 00:0f:c9:04:db:87
which made no difference.

hostname.pppoe0 in use:

inet 0.0.0.0 255.255.255.255 NONE \
pppoedev em5 \ authproto pap \
authname ‚[hidden email]‘ authkey some_pw up
dest 0.0.0.1
debug

Anybody using pppoe with 6.0-STABLE?

Axel
> ---
PGP-Key:29E99DD6  ☀  computing @ chaos claudius

Reply | Threaded
Open this post in threaded view
|

[RESOLVED] Re: 6.0 sppp does not answer PPPoE-Discovery code offer

Axel Rau
Updating the firmware of the Vigor130 box from 3.7.9_m7 to 3.7.9.4_m7
solved the problem.

> . . .


> It seems that sppp does not work with vlan pseudi device.

Anybody fixing that?

Axel
---
PGP-Key:29E99DD6  â˜€  computing @ chaos claudius

Reply | Threaded
Open this post in threaded view
|

Re: [RESOLVED] Re: 6.0 sppp does not answer PPPoE-Discovery code offer

Stuart Henderson
On 2017-01-09, Axel Rau <[hidden email]> wrote:
>> It seems that sppp does not work with vlan pseudi device.
>
> Anybody fixing that?

I'm not running any right now, but I was fairly recently and it
worked then.

Is your ISP one of those silly ones that requires the priority in
the 802.1q header to be 0?