User guide

Chapter 5. Command Line Interface Reference 237
DHCP SET MASK
Used to conveniently change the mask of a DHCP subnet without having to delete and recreate the subnet and all
its entries.
DHCP SET VALUEOPTION
Sets values for global options, options specific to a subnetwork, or options specific to a client lease. For more
information, see Setting Option Values, on page 85.
dhcp set mask <net> <mask>
net IP address of the subnetwork lease in the format of 4 decimals separated by periods.
mask IP network mask, in the format of 4 decimals separated by periods.
Example:
dhcp set mask 192.168.254.0 255.255.255.0
dhcp set valueoption [<ipaddr>|<net>] <code> <value>....
ipaddr Specify the client IP address if the option value applies only to the client lease (4 decimals
separated by periods).
net Specify the subnetwork IP address if the option value applies only to the subnetwork lease (4
decimals separated by periods).
code Code specifying the option to be set. It can be a number between 1 and 61 or a keyword. Use
the command dhcp list deÞnedoptions to list the codes and keywords (see DHCP LIST
DEFINEDOPTIONS, on page 232.)
value Value to be assigned to the speciÞed option. It could be a byte, word, signed long, unsigned
long, binary, IP address, or string depending on the option.
Example 1: This command does not specify an client or subnetwork address, and thus sets a global value
for the domainnameserver option.
dhcp set valueoption domainnameserver 192.168.254.2 192.168.254.3
Example 2: This command sets the value for the gateway option associated with the subnetwork.
dhcp set valueoption gateway 192.168.254.0 192.168.254.254
Example 3: This command sets a value for the winserver option associated with a speciÞc client.
dhcp set valueoption 192.168.254.251 winserver 192.168.254.7
Example 4: This command sets a static route (option 33) to IP address 192.168.253.253 through router
192.168.254.254. (No mask is specified.)
dhcp set valueoption 33 192.168.254.254 192.168.253.253