Command Manual – Network Protocol 
Quidway S8500 Series Routing Switches  Chapter 4  DHCP Configuration Commands
 
Huawei Technologies Proprietary 
4-12 
dhcp server option code { ascii ascii-string | hex hex-string | ip-address ip-address 
[ ip-address ] } 
undo dhcp server option code 
In system view: 
dhcp server option code { ascii ascii-string | hex hex-string | ip-address ip-address 
[ ip-address ] } { interface vlan-interface vlan-id [ to vlan-interface vlan-id ] | all } 
undo dhcp server option code { interface vlan-interface vlan-id [ to vlan-interface 
vlan-id ] | all } 
View 
VLAN interface view, system view 
Parameter 
code: Option code customized by user. This argument ranges from 2 to 254. 
ascii ascii-string: Specifies a string comprising ASCII characters. The string can be of 1 
to 63 characters in length. 
hex hex-string: Specifies a numeric string containing 2 or 4 hexadecimal digits (hh or 
hhhh). 
ip-address ip-address [ ip-address ]: Specifies one or more IP addresses. You can 
specify up to eight IP addresses (separated by spaces) in one command. 
interface vlan-interface vlan-id [ to vlan-interface vlan-id ]: Specifies one or more 
VLAN interfaces. 
all: Specifies all VLAN interfaces. 
Description 
Use the dhcp server option command to configure a custom DHCP option for the 
DHCP address pool of current VLAN interface, or for the DHCP address pool(s) of the 
specified VLAN interface(s). 
Use the undo dhcp server option command to remove a custom DHCP option 
configured for the DHCP address pool of current VLAN interface, or for the DHCP 
address pool(s) of the specified VLAN interface(s). 
If you execute the dhcp server option command multiple times, the new 
configurations overwrite the corresponding old ones. 
Related command: option. 
Example 
# Configure a custom DHCP option for the DHCP address pool of VLAN interface 1, 
with the code argument of 100 and the hex-string argument of 0x11 and 0x22. 
<Quidway> system-view