DHCP Offer with Option 82 informations

IPoE related questions
Post Reply
luciusbsd
Posts: 1
Joined: 11 Feb 2020, 02:32

DHCP Offer with Option 82 informations

Post by luciusbsd »

Hello guys,

I have a problem in my IPoE scenario when accel send Offer packet to my client.
My OLT use relay agent information to work.

I tested a normal DHCP server and it worked great :

Code: Select all

01:46:59.452849 IP (tos 0x0, ttl 16, id 0, offset 0, flags [none], proto UDP (17), length 380)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:d5:57:45, length 352, xid 0x42e2f6f5, Flags [Broadcast] (0x8000)
          Client-Ethernet-Address 00:0c:42:d5:57:45
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            Parameter-Request Option 55, length 8:
              Subnet-Mask, Classless-Static-Route, Default-Gateway, Static-Route
              Domain-Name-Server, NTP, Option 138, Vendor-Option
            Hostname Option 12, length 9: "CPE-LUCIO"
            Client-ID Option 61, length 7: ether 00:0c:42:d5:57:45
            Agent-Information Option 82, length 50:
              Circuit-ID SubOption 1, length 31: OLT1-ALVORADA eth 1/2/6/0/2:750
              Remote-ID SubOption 2, length 15: 52847365249-152
            END Option 255, length 0
            PAD Option 0, length 0, occurs 26
01:46:59.453127 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 354)
    10.177.0.1.67 > 255.255.255.255.68: [udp sum ok] BOOTP/DHCP, Reply, length 326, xid 0x42e2f6f5, Flags [Broadcast] (0x8000)
          Your-IP 10.177.0.100
          Client-Ethernet-Address 00:0c:42:d5:57:45
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 10.177.0.1
            Lease-Time Option 51, length 4: 86400
            Subnet-Mask Option 1, length 4: 255.255.255.0
            Default-Gateway Option 3, length 4: 10.177.0.1
            Domain-Name-Server Option 6, length 4: 10.177.0.1
            Agent-Information Option 82, length 50:
              Circuit-ID SubOption 1, length 31: OLT1-ALVORADA eth 1/2/6/0/2:750
              Remote-ID SubOption 2, length 15: 52847365249-152
            END Option 255, length 0

But, when I use accel, we have this offer packet without relay agent information:

Code: Select all

01:50:10.351568 IP (tos 0x0, ttl 16, id 0, offset 0, flags [none], proto UDP (17), length 380)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:0c:42:d5:57:45, length 352, xid 0xf3a25498, Flags [Broadcast] (0x8000)
          Client-Ethernet-Address 00:0c:42:d5:57:45
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Discover
            Parameter-Request Option 55, length 8:
              Subnet-Mask, Classless-Static-Route, Default-Gateway, Static-Route
              Domain-Name-Server, NTP, Option 138, Vendor-Option
            Hostname Option 12, length 9: "CPE-LUCIO"
            Client-ID Option 61, length 7: ether 00:0c:42:d5:57:45
            Agent-Information Option 82, length 50:
              Circuit-ID SubOption 1, length 31: OLT1-ALVORADA eth 1/2/6/0/2:750
              Remote-ID SubOption 2, length 15: 52847365249-152
            END Option 255, length 0
            PAD Option 0, length 0, occurs 26
01:50:10.357627 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 312)
    10.177.0.1.67 > 255.255.255.255.68: [no cksum] BOOTP/DHCP, Reply, length 284, xid 0xf3a25498, Flags [Broadcast] (0x8000)
          Your-IP 10.177.0.2
          Client-Ethernet-Address 00:0c:42:d5:57:45
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Offer
            Server-ID Option 54, length 4: 10.177.0.1
            Lease-Time Option 51, length 4: 600
            RN Option 58, length 4: 300
            Default-Gateway Option 3, length 4: 10.177.0.1
            Subnet-Mask Option 1, length 4: 255.255.255.0
            Domain-Name-Server Option 6, length 8: 128.201.136.41,128.201.136.42
            END Option 255, length 0
How can I add relay agent informations in Offer Packet?

Thanks.
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: DHCP Offer with Option 82 informations

Post by dimka88 »

UPD:/ Already we have solution, but need testing and then this fix will be in master branch
Post Reply