Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Running on Ubuntu 20.04.4, installed version is bngblaster-0.7.1-ubuntu-20.04_amd64.deb
Version (bngblaster -v
):
Version: 0.7.1
IO Modes: packet_mmap_raw (default), packet_mmap, raw
JSON configuration:
{
"interfaces": {
"qdisc-bypass": false,
"io-mode": "packet_mmap_raw",
"access": [
{
"interface": "enp3s0f0",
"type": "pppoe",
"outer-vlan-min": 4,
"outer-vlan-max": 4,
"inner-vlan-min": 1,
"inner-vlan-max": 4094,
"authentication-protocol": "CHAP"
}
]
},
"sessions": {
"count": 10,
"session-time": 0,
"max-outstanding": 800,
"start-rate": 400,
"stop-rate": 400
},
"pppoe": {
"reconnect": true,
"discovery-timeout": 10,
"discovery-retry": 10
},
"ppp": {
"mru": 1492,
"authentication": {
"username": "mx10k3test{session-global}@zen",
"password": "password",
"timeout": 5,
"retry": 30,
"protocol": "CHAP"
},
"lcp": {
"conf-request-timeout": 1,
"conf-request-retry": 10,
"keepalive-interval": 30,
"keepalive-retry": 3
},
"ipcp": {
"enable": true,
"request-ip": true,
"request-dns1": true,
"request-dns2": true,
"conf-request-timeout": 1,
"conf-request-retry": 10
},
"ip6cp": {
"enable": true,
"conf-request-timeout": 1,
"conf-request-retry": 10
}
},
"dhcpv6": {
"enable": true,
"rapid-commit": true
},
"access-line": {
"agent-remote-id": "DEU.RTBRICK.{session-global}",
"agent-circuit-id": "0.0.0.0/0.0.0.0 eth 0:{session-global}",
"rate-up": 1024,
"rate-down": 16384
}
}
Steps to reproduce the behavior:
- start BNG using "sudo bngblaster -C pppoe.json"
Expected behavior
I'd expect a PADR to be created. I do note that the PADI is double tagged on the PCAP, but the PADO appears single tagged, when PCAP'd using BNGBlaster, but when running the capture on the Arista switch (upstream from the server), the tagging is as expected
Arista PCAP
20:36:02.409429 02:00:00:00:00:01 > Broadcast, ethertype 802.1Q (0x8100), length 92: vlan 4, p 0, ethertype 802.1Q, vlan 1, p 0, ethertype PPPoE D, PPPoE PADI [Service-Name] [Vendor-Specific "......0.0.0.0/0.0.0.0 eth 0:1..DEU.RTBRICK.1..........@."]
20:36:02.477526 f2:7c:c7:af:77:f3 > 02:00:00:00:00:01, ethertype 802.1Q (0x8100), length 76: vlan 4, p 6, ethertype 802.1Q, vlan 1, p 6, ethertype PPPoE D, PPPoE PADO [AC-Name "BNG3.THN-LON.LAB-RE0"] [Service-Name] [AC-Cookie "G~...9.{t. ..7]c"]
20:36:07.414196 02:00:00:00:00:01 > f2:7c:c7:af:77:f3, ethertype 802.1Q (0x8100), length 92: vlan 4, p 0, ethertype 802.1Q, vlan 1, p 0, ethertype PPPoE D, PPPoE PADI [Service-Name] [Vendor-Specific "......0.0.0.0/0.0.0.0 eth 0:1..DEU.RTBRICK.1..........@."]