2-4 
Task  Remarks 
Correlating a DHCP Server Group with a Relay Agent Interface  Required 
Configuring DHCP Relay Agent Security Functions  Optional 
Configuring the DHCP Relay Agent to Support Option 82  Optional 
 
Correlating a DHCP Server Group with a Relay Agent Interface 
To enhance reliability, you can set multiple DHCP servers on the same network. These DHCP servers 
form a DHCP server group. When an interface of the relay agent establishes a correlation with the 
DHCP server group, the interface will forward received DHCP packets to all servers in the server group.  
Follow these steps to correlate a DHCP server group with a relay agent interface: 
To do…  Use the command…  Remarks 
Enter system view 
system-view 
— 
Configure the DHCP server IP 
address(es) in a specified 
DHCP server group 
dhcp-server groupNo ip 
ip-address&<1-8> 
Required 
By default, no DHCP server IP 
address is configured in a 
DHCP server group. 
interface interface-type 
interface-number 
Map an interface to a DHCP 
server group 
dhcp-server groupNo 
Required 
By default, a VLAN interface is 
not mapped to any DHCP 
server group. 
 
 
To improve security and avoid malicious attack to the unused SOCKETs, S4200G Ethernet switches 
provide the following functions: 
z  UDP 67 and UDP 68 ports used by DHCP are enabled only when DHCP is enabled.  
z  UDP 67 and UDP 68 ports are disabled when DHCP is disabled. 
The corresponding implementation is as follows: 
z  When a VLAN interface is mapped to a DHCP server group with the dhcp-server command, the 
DHCP relay agent is enabled. At the same time, UDP 67 and UDP 68 ports used by DHCP are 
enabled. 
z  When the mapping between a VLAN interface and a DHCP server group is removed with the undo 
dhcp-server command, DHCP services are disabled. At the same time, UDP 67 and UDP 68 ports 
are disabled.