H3C LS-3100-52P-OVS-H3 Operation Manual - page 399
3-9
z
To support Option 82, it is required to perform related configuration on both the DHCP server and
relay agent. Refer to
Configuring the Handling Mode for Option 82
for DHCP server configuration of
this kind.
z
If the handling strategy of the DHCP relay agent is configured as replace, you need to configure a
padding format for Option 82. If the handling strategy is keep or drop, you need not configure any
padding format.
z
If sub-option 1 (node identifier) of Option 82 is padded with the device name (sysname) of a node,
the device name must contain no spaces. Otherwise, the DHCP relay agent will drop the message.
Displaying and Maintaining DHCP Relay Agent Configuration
To do…
Use the command…
Remarks
Display information about DHCP
server groups correlated to a specified
or all interfaces
display dhcp relay { all | interface
interface-type interface-number}
Display Option 82 configuration
information on the DHCP relay agent
display dhcp relay information { all |
interface interface-type
interface-number }
Display information about bindings of
DHCP relay agents
display dhcp relay security [ ip-address
| dynamic | static ]
Display statistics information about
bindings of DHCP relay agents
display dhcp relay security statistics
Display information about the
refreshing interval for entries of
dynamic IP-to-MAC bindings
display dhcp relay security tracker
Display information about the
configuration of a specified or all
DHCP server groups
display dhcp relay server-group
{ group-id | all }
Display packet statistics on relay agent
display dhcp relay statistics
[ server-group { group-id | all } ]
Available in
any view
Clear packet statistics from relay agent
reset dhcp relay statistics
[ server-group group-id ]
Available in
user view
DHCP Relay Agent Configuration Examples
DHCP Relay Agent Configuration Example
Network requirements
VLAN-interface 1 on the DHCP relay agent (Switch A) connects to the network where DHCP clients
reside. The IP address of VLAN-interface 1 is 10.10.1.1/24 and IP address of VLAN-interface 2 is
10.1.1.2/24 that communicates with the DHCP server 10.1.1.1/24. As shown in
Figure 3-3
, Switch A
forwards messages between DHCP clients and the DHCP server.