67
Procedure
1. Enter system view.
system-view
2. Enter interface view.
interface interface-type interface-number
3. Specify a DHCP server address on the relay agent.
dhcp relay server-address
By default, no DHCP server address is specified on the relay agent.
To specify multiple DHCP server addresses, repeat this step. You can specify a maximum of
eight DHCP servers.
Configuring a DHCP address pool on a DHCP relay agent
About DHCP address pool on a DHCP relay agent
This feature allows DHCP clients of the same type to obtain IP addresses and other configuration
parameters from the DHCP servers specified in the matching DHCP address pool.
It applies to scenarios where the DHCP relay agent connects to clients of the same access type but
classified into different types by their locations. In this case, the relay interface typically has no IP
address configured. You can use the
gateway-list command to specify gateway addresses for
clients matching the same DHCP address pool and bind the gateway addresses to the device's MAC
address.
Upon receiving a DHCP DISCOVER or REQUEST from a client that matches a DHCP address pool,
the relay agent processes the packet as follows:
• Fills the giaddr field of the packet with a specified gateway address.
• Forwards the packet to all DHCP servers in the matching DHCP address pool.
The DHCP servers select a DHCP address pool according to the gateway address.
Procedure
1. Enter system view.
system-view
2. Create a DHCP address pool and enter its view.
dhcp server ip-pool pool-name
3. DHCP address pool.
gateway-list ip-address&<1-64>
By default, no gateway address is specified.
4. Specify DHCP servers for the DHCP address pool.
remote-server ip-address&<1-8>
By default, no DHCP server is specified for the DHCP address pool.
You can specify a maximum of eight DHCP servers for one DHCP address pool for high
availability.
Specifying the DHCP server selecting algorithm
About DHCP server selecting algorithm
The DHCP relay agent supports the polling and master-backup DHCP server selecting algorithms.