Verifying the DHCP Configuration
To display DHCP configuration information, perform one of the following tasks:
Purpose
Command
Displays the DHCP relay
configuration.
show ip dhcp relay
Displays the DHCPv6 relay global
or interface-level configuration.
show ipv6 dhcp relay
[
interface interface
]
Displays all the DHCP server
addresses configured on the device.
show ip dhcp relay address
Displays general information about
DHCP snooping.
show ip dhcp snooping
Displays the DHCP configuration
in the running configuration.
show running-config dhcp
[
all
]
Displays the IPv4 or IPv6 address
assigned to the interface when
DHCP client is enabled.
show running-config interface
{
ethernet slot/port
|
mgmt 0
|
vlan
vlan-id
}
Displays the DHCP configuration
in the startup configuration.
show startup-config dhcp [
all
]
Displaying IPv6 RA Guard Statistics
To display IPv6 RA guard statistics, perform one of the following tasks:
Purpose
Command
Displays IPv6-related RA guard statistics.
show ipv6 raguard statistics
The following example shows sample statistics:
switch#
show ipv6 raguard statistics
-------------------------------------
Interface
Rx
Drops
------------- ---------- ------------
Ethernet1/53
4561102
4561102
Displaying DHCP Snooping Bindings
Use the
show ip dhcp snooping binding
[
ip-address
|
mac-address
|
dynamic
|
static
|
vlan vlan-id
|
interface
interface-type interface-number
] command to display all entries from the DHCP snooping binding database.
MacAddress
IpAddress LeaseSec Type
VLAN Interface
Cisco Nexus 9000 Series NX-OS Security Configuration Guide, Release 9.x
364
Configuring DHCP
Verifying the DHCP Configuration