Method used to configure the DHCP Option field on the AR

Option fields in a DHCP message carry control information and parameters that are not defined in protocols. There are known options and customized options. For details about known options, see RFC 2132. Customized options are defined by vendors.
For example, to set Option 64 to the hexadecimal string 0x11 and configure known Option 121 to assign classless static route to clients (destination IP address 10.10.10.10/24 and gateway address 10.11.11.11), perform the following configurations:
- Interface address pool
[Huawei] interface gigabitethernet1/0/1
[Huawei-GigabitEthernet1/0/1] dhcp server option 64 hex 11
[Huawei-GigabitEthernet1/0/1] dhcp server option121 ip-address 10.10.10.10 24 10.11.11.11
- Global address pool
[Huawei] ip pool global1 [Huawei-ip-pool-global1] option 64 hex 11
[Huawei-ip-pool-global1] option121 ip-address 10.10.10.10 24 10.11.11.11
- DHCP option template (applicable to only the scenario where user-defined network parameters are allocated to static clients)
[Huawei] dhcp option template template1
[Huawei-dhcp-option-template-template1] option 64 hex 11
[Huawei-dhcp-option-template-template1] option121 ip-address 10.10.10.10 24 10.11.11.11

Scroll to top