6-4Follow these steps to enable DHCP:To do… Use the command… RemarksEnter system view system-view —Enable DHCP dhcp enable RequiredDisabled by default.Enabling the DHCP Relay Agent on an InterfaceWith this task completed, upon receiving a DHCP request from the enabled interface, the relay agentwill forward the request to a DHCP server for address allocation.Follow these steps to enable the DHCP relay agent on an interface:To do… Use the command… RemarksEnter system view system-view —Enter interface view interface interface-typeinterface-number —Enable the DHCP relay agenton the current interface dhcp select relayRequiredWith DHCP enabled, interfaceswork in the DHCP servermode.If the DHCP client obtains an IP address via the DHCP relay agent, the address pool of the subnet towhich the IP address of the DHCP relay agent belongs must be configured on the DHCP server.Otherwise, the DHCP client cannot obtain a correct IP address.Correlating a DHCP Server Group with a Relay Agent InterfaceTo improve reliability, you can specify several DHCP servers as a group on the DHCP relay agent andcorrelate a relay agent interface with the server group. When the interface receives requestingmessages from clients, the relay agent will forward them to all the DHCP servers of the group.Follow these steps to correlate a DHCP server group with a relay agent interface:To do… Use the command… RemarksEnter system view system-view —Create a DHCP server groupand add a server into the groupdhcp relay server-groupgroup-id ip ip-addressRequiredNot created by default.Enter interface view interface interface-typeinterface-number —