132 CHAPTER 10: DHCP SERVER CONFIGURATION
Customizing DHCP
Service
With the evolution of DHCP, new options are constantly coming into being. You can
add the new options as the properties of DHCP servers by performing the following
configuration.
Configuring Gateway
Addresses for DHCP
Clients
Gateways are necessary for DHCP clients to access servers/hosts outside the current
network segment. After you configure gateway addresses on a DHCP server, the
DHPC server provides the gateway addresses to DHCP clients as well while assigning
IP addresses to them.
You can configure gateway addresses for address pools on a DHCP server. Currently,
you can configure up to eight gateway addresses for a DHCP address pool.
Interface Address Pool-based DHCP Server ConfigurationThis section contains configuration information for Interface Address Pool-Based
DHCP Server
Configuration Overview An interface address pool is created when the interface is assigned a valid unicast IP
address and you execute the dhcp select interface command in interface view. The IP
addresses contained in it belong to the network segment where the interface resides
in and are available to the interface only.
You can perform certain configurations for DHCP address pools of an interface or
multiple interfaces within specified interface ranges. Configuring for multiple
Table117 Customize DHCP service
Operation Command Description
Enter system view System-view -
Create a DHCP address
pool and enter DHCP
address pool view
dhcp server ip-pool
pool-name
Required
By default, no global DHCP address pool is
created.
Configure customized
options
option code { ascii
ascii-string | hex
hex-string&<1-10> |
ip-address
ip-address&<1-8> }
Required
By default, no customized option is
configured.
Table118 Configure gateway addresses for DHCP clients
Operation Command Description
Enter system view system-view -
Create a DHCP address
pool and enter DHCP
address pool view
dhcp server
ip-pool pool-name
Required
By default, no global DHCP address pool is
created.
Configure gateway
addresses for DHCP clients
gateway-list
ip-address&<1-8>
Required
By default, no gateway address is configured.