Dhcp relay agent configuration examples, Dhcp relay agent configuration example, Network requirements – H3C Technologies H3C S5560 Series Switches User Manual
Page 76: Configuration procedure

61
Task Command
Clear relay entries on the DHCP relay agent.
reset dhcp relay client-information [ interface
interface-type interface-number | ip ip-address
[ vpn-instance vpn-instance-name ] ]
Clear packet statistics on the DHCP relay agent.
reset dhcp relay statistics [ interface interface-type
interface-number ]
DHCP relay agent configuration examples
DHCP relay agent configuration example
Network requirements
As shown in
, configure the DHCP relay agent on Switch A so that DHCP clients can obtain IP
addresses and configuration parameters from the DHCP server on another subnet.
The DHCP relay agent and server are on different subnets. Configure static or dynamic routing to make
them reachable to each other.
Perform the configuration on the DHCP server to guarantee the client-server communication. For DHCP
server configuration information, see "
DHCP server configuration examples
."
Figure 23 Network diagram
Configuration procedure
# Specify IP addresses for the interfaces. (Details not shown.)
# Enable DHCP.
[SwitchA] dhcp enable
# Enable the DHCP relay agent on VLAN-interface 10.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] dhcp select relay
# Specify the IP address of the DHCP server on the relay agent.
[SwitchA-Vlan-interface10] dhcp relay server-address 10.1.1.1
Switch B
DHCP server
Switch A
DHCP relay agent
DHCP client
DHCP client
DHCP client
DHCP client
Vlan-int20
10.1.1.2/24
Vlan-int10
10.10.1.1/24
Vlan-int20
10.1.1.1/24