show ip dhcp snooping binding

To display IP-to-MAC address bindings for all interfaces or a specific interface, use the show ip dhcp snooping binding command.

show ip dhcp snooping binding [ IP-address ] [ MAC-address ] [ interface ethernet slot / port ] [ vlan vlan-id ]

show ip dhcp snooping binding [ dynamic ]

show ip dhcp snooping binding [ static ]

Syntax Description

IP-address
(Optional) IPv4 address that the bindings shown must include. Valid entries are in dotted-decimal format.
MAC-address
(Optional) MAC address that the bindings shown must include. Valid entries are in dotted-hexadecimal format.
interface ethernet slot / port
(Optional) Specifies the Ethernet interface that the bindings shown must be associated with. The slot number is from 1 to 255, and the port number is from 1 to 128.
vlan vlan-id
(Optional) Specifies a VLAN ID that the bindings shown must be associated with. Valid VLAN IDs are from 1 to 4094, except for the VLANs reserved for internal use.
Use a hyphen (-) to separate the beginning and ending IDs of a range of VLAN IDs; for example, 70-100.
Use a comma (,) to separate individual VLAN IDs and ranges of VLAN IDs; for example, 20,70-100,142.
dynamic
(Optional) Limits the output to all dynamic IP-MAC address bindings.
static
(Optional) Limits the output to all static IP-MAC address bindings.

Command Default

None

Command Modes

Any command mode

Command History

Release
Modification
5.0(2)N2(1)
This command was introduced.

Usage Guidelines

The binding interface includes static IP source entries. Static entries appear with the term "static" in the Type column.

Examples

This example shows how to show all bindings:

switch# show ip dhcp snooping binding
MacAddress IpAddress LeaseSec Type VLAN Interface
----------------- --------------- -------- ---------- ---- -------------
0f:00:60:b3:23:33 10.3.2.2 infinite static 13 Ethernet2/46
0f:00:60:b3:23:35 10.2.2.2 infinite static 100 Ethernet2/10
switch#
 

Related Commands

Command
Description
clear ip dhcp snooping binding
Clears the DHCP snooping binding database.
copy running-config startup-config
Copies the running configuration to the startup configuration.
ip dhcp snooping
Globally enables DHCP snooping on the device.
ip source binding
Creates a static IP source entry for a Layer 2 Ethernet interface.
show ip dhcp snooping statistics
Displays DHCP snooping statistics.
show running-config dhcp
Displays the DHCP snooping configuration, including the IP Source Guard configuration.