82 
Step Command Remarks 
2.  Enter interface view. 
interface 
interface-type 
interface-number
 
N/A 
3.  Enable the DHCP relay agent.
dhcp select relay 
By default, an interface operates in 
the DHCP server mode when DHCP 
is enabled. 
4.  Return to system view. 
quit 
N/A 
5.  Create a DHCP relay 
address pool and enter its 
view. 
dhcp server ip-pool
 pool-name
By default, no DHCP relay address 
pool exists. 
This command is the same for 
creating DHCP address pools on a 
DHCP server. However, the relay 
address pool names are not 
necessarily the same as the server 
address pool names. 
6.  Specify gateway addresses 
for the clients matching the 
relay address pool. 
gateway-list
 ip-address&<1-64> 
[ 
export-route
 ]
 
By default, the relay address pool 
does not have any gateway 
addresses. 
7.  Specify DHCP servers for 
the relay address pool. 
remote-server
 
ip-address&<1-8>
 
By default, the relay address pool 
does not have any DHCP server IP 
addresses. 
You can specify a maximum of eight 
DHCP servers for one relay address 
pool for high availability. The relay 
agent forwards DHCP-DISCOVER 
and DHCP-REQUEST packets to all 
DHCP servers in the relay address 
pool. 
8.  Return to system view. 
quit 
N/A 
9.  Enable the DHCP smart 
relay feature. 
dhcp smart-relay enable 
By default, the DHCP smart relay 
feature is disabled. 
 
Displaying and maintaining the DHCP relay agent 
Execute display commands in any view and reset commands in user view. 
 
Task Command 
Display information about DHCP servers on an 
interface. 
display dhcp relay
 
server-address 
[ 
interface
 
interface-type interface-number
 
] 
Display Option 82 configuration information on the 
DHCP relay agent. 
display dhcp relay information 
[
 interface 
interface-type interface-number ]
 
Display relay entries on the DHCP relay agent. 
display dhcp relay client-information 
[
 interface
 
interface-type interface-number
 |
 
ip
 ip-address 
[
 vpn-instance
 vpn-instance-name
 
] ] 
Display packet statistics on the DHCP relay agent.
display dhcp relay statistics 
[ 
interface
 
interface-type interface-number ]
 
Display MAC address check entries on the DHCP 
relay agent. 
display dhcp relay check mac-address 
Clear relay entries on the DHCP relay agent. 
reset dhcp relay client-information 
[
 interface
 
interface-type interface-number
 |
 
ip
 ip-address