Closed aleheux-tc closed 1 year ago
We also need this feature. Juniper MX when running BNG expects a LDRA header in the DHCP6 packet when setting DHCPv6 option 18 and option 37. Lightweight DHCPv6 Relay Agent explained in https://www.rfc-editor.org/rfc/rfc6221.
I will start to work on LDRA support today. Maybe will have first draft by tomorrow.
Please check: https://github.com/rtbrick/bngblaster/pull/164
Please verify/check with 0.8.17
!
LDRA works.
Describe the bug
When using the agent-remote-id and agent-circuit-id BNGBlaster inserts these into the regular DHCPv6 SOLICIT requests. RFC8415 seems to require that these two options are only used in RELAY-FORW requests.
JunOS 20.4R3-S5.4 (or possibly earlier) does not accept these requests with the following error message:
Feb 17 12:58:13.459218 [MSTR][NOTE] [default:BNG-Users][RLY][INET6][demux0.3221238073] dhcpv6_packet_handle: Invalid packet, received interface-id 0xad05ce9 remote-id 0xad05d0a in a non relay packet
Version (
bngblaster -v
):As of Fri 17 Feb 2023 01:04:06 PM UTC
JSON configuration:
Steps to reproduce the behavior:
Expected behavior
I expect the Juniper MX router to accept the DHCPv6 requests sent by BNGBlaster.
Additional context
We use BNGBlaster to run tests on our FTTH platform. In a production environment a client would be connected through an OLT which would relay the client's DHCP request(s) and insert the circuit-id and remote-id.
When we use BNGBlaster the OLT is not in the chain and we use it to emulate the traffic coming from the OLT.
The way to fix this issue is probably by adding a knob to BNGBlaster to have it wrap its requests in a RELAY-FORW.