2-9
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 2-3, Switch A
forwards messages between DHCP clients and the DHCP server.
Figure 2-3 Network diagram for DHCP relay agent