148DHCP relay agent configuration examplesExample: Configuring basic DHCP relay agentNetwork configurationAs shown in Figure 41, configure the DHCP relay agent on Router A. The DHCP relay agent enablesDHCP clients to obtain IP addresses and other configuration parameters from the DHCP server onanother subnet.Because the DHCP relay agent and server are on different subnets, you need to configure static ordynamic routing to make them reachable to each other.DHCP server configuration is also required to guarantee the client-server communication throughthe DHCP relay agent. For DHCP server configuration information, see "DHCP server configurationexamples."Figure 41 Network diagramProcedure# Specify IP addresses for the interfaces. (Details not shown.)# Enable DHCP. system-view[RouterA] dhcp enable# Enable the DHCP relay agent on GigabitEthernet 1/0/1.[RouterA] interface gigabitethernet 1/0/1[RouterA-GigabitEthernet1/0/1] dhcp select relay# Specify the IP address of the DHCP server on the relay agent.[RouterA-GigabitEthernet1/0/1] dhcp relay server-address 10.1.1.1Verifying the configuration# Verify that DHCP clients can obtain IP addresses and all other network parameters from the DHCPserver through the DHCP relay agent. (Details not shown.)# Display the statistics of DHCP packets forwarded by the DHCP relay agent.[RouterA] display dhcp relay statistics# Display relay entries if you have enabled relay entry recording on the DHCP relay agent.[RouterA] display dhcp relay client-informationRouter BDHCP serverRouter ADHCP relay agentDHCP client DHCP clientDHCP clientDHCP clientGE1/0/210.1.1.2/24GE1/0/110.10.1.1/24GE1/0/110.1.1.1/24