Method used to configure the DHCP Option field on the AR

0

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

Other related questions:
Configuring the DHCP Option 43 field on an AC
Perform the following operations to configure the DHCP Option 43 field on an AC that functions as a DHCP server: 1. Run the system-view command to enter the system view. 2. Run the dhcp enable command to enable the DHCP function. 3. Run the ip pool ip-pool-name command to enter the global address pool view. 4. Run the option 43 sub-option 2 ip-address ip-address &<1-8> command to set the DHCP Option 43 field to the IP addresses of the active and standby ACs.

How is DHCP Option 43 configured on an AR
Option 43 is a vendor specific information option. If an AP and an AC are located on different network segments, the AP cannot discover the ACs through broadcast. To address this problem, configure Option 43 on the DHCP server to advertise AC's IP addresses to the AP. The AR functions as the DHCP server and the AC's IP address is 192.168.22.1. The configuration of Option 43 is as follows: - Based on the global address pool: [Huawei] dhcp enable [Huawei] ip pool huawei [Huawei-ip-pool-huawei] network 192.168.100.0 255.255.255.0 [Huawei-ip-pool-huawei] gateway-list 192.168.100.1 [Huawei-ip-pool-huawei] option 43 sub-option 3 hex 31302E31302E31302E31 //Run the option 43 sub-option 3 ascii 192.168.22.1 command. - Based on the interface address pool: [Huawei] dhcp enable [Huawei] interface gigabitethernet 1/0/0 //Enter the view of the interface connected to the AP. [Huawei-GigabitEthernet1/0/0] ip address 10.10.10.10 24 [Huawei-GigabitEthernet1/0/0] dhcp select interface [Huawei-GigabitEthernet1/0/0] dhcp server 43 sub-option 3 hex 31302E31302E31302E31 //Run the dhcp server option 43 sub-option 3 ascii 192.168.22.1 command. If an Option 43 contains multiple AC IP addresses, the IP addresses are separated by commas (,). The ASCII value of commas (,) is 2C. For example, if the ACs' IP addresses are 192.168.22.1 and 192.168.22.2, run the option 43 sub-option 3 hex 3139322E3136382E3130302E322C3139322E3136382E3130302E33 or option 43 sub-option 3 ascii 192.168.22.1,192.168.22.2 command.

Method used to configure NAT and DHCP on the AR
Huawei AR series routers support DHCP and NAT so that users can dynamically obtain IP addresses and access the Internet. This function applies to all versions and models of the AR.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top