Enabling dhcp, Enabling the dhcp server on an interface, Displaying and maintaining the dhcp relay agent – H3C Technologies H3C S12500 Series Switches User Manual

Page 69: Dhcp relay agent configuration examples, Dhcp relay agent configuration example

Advertising
background image

56

68B

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 specified
on the DHCP relay agent 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
]

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
]

69B

DHCP relay agent configuration examples

By default, Ethernet, VLAN, and aggregate interfaces are down. To configure such an interface, bring

the interface up by executing the undo shutdown command.

217B

DHCP relay agent configuration example

343B

Network requirements

As shown in

708H

Figure 22

, the DHCP relay agent forwards DHCP messages between DHCP clients and the

DHCP server.
The DHCP relay agent and server are on different subnets, so 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 "

709H

DHCP server configuration examples

."

Advertising