DHCP option 60 support

7

S series switches (except S1700 switches) support the Option 60 field of DHCP Request packets only when they function as DHCP clients.

Other related questions:
What cautions should be taken when configuring DHCP Option 60 and Option 43 on a Layer 2/Layer 3 network?
DHCP Option 43 and Option 60 must be configured on a Layer 3 network, while they are optional on a Layer 2 network.

DHCP option configuration on S series switch
For S series switches except S1700 switches, Option fields in a DHCP message carry control information and parameters that are not defined in some protocols. Options are classified into well-known and self-defined options. For more information about well-known DHCP options, see RFC 2132. Vendors can define their own options. The S2720, S2750, S5700LI, S5700S-LI, and S5710LI switches in earlier versions of V200R007 do not support the DHCP Option configuration. All switches in V200R007 and later versions support the DHCP Option configuration. For example, you can set self-defined Option 64 to 0x11 in hexadecimal notation and configure well-known Option 121 to assign a classless static route (with the destination IP address set to 10.10.10.10/24 and gateway address set to 10.11.11.11) to clients as follows: - Configuration on an interface: [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 configuration: [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 - Configuration using a DHCP Option template (this method is used when network parameters are delivered to clients with static IP addresses): [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

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.

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.

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