9. DHCP Snooping
show ip dhcp snooping binding
Displays the DHCP snooping binding database.
Syntax
show ip dhcp snooping binding [[ip]
Input mode
User mode and administrator mode
Parameters
[ip] <ip address>
Displays the binding database entry for the specified IP address.
mac <mac address>
Displays the binding database entry for the specified MAC address.
vlan <vlan id>
Displays the binding database entry for the specified VLAN interface.
For <vlan id>, specify the VLAN ID set by the
command.
interface <interface type> <interface number>
Displays the binding database entry for the specified interface.
For <interface type> <interface number>, the following values can be set:
• gigabitethernet <nif no.>/<port no.>
• tengigabitethernet <nif no.>/<port no.>
• port-channel <channel group number>
For details about the valid setting range of <nif no.>/<port no.> and <channel group
number>, see Specifiable values for parameters.
{ static | dynamic }
static
Displays the binding database entry for statically registered entries.
dynamic
Displays the binding database entry for dynamically registered entries.
Operation when a parameter is omitted
This command can display only the entries that meet the conditions specified by the
parameter. If no parameters are set, entries are displayed with no condition applied. If multiple
parameters are specified, the entries conforming to the conditions will be displayed.
Operation when all parameters are omitted:
Displays all entries.
Example
The following figure shows an example of displaying all DHCP snooping entries.
250
<ip address>
] [mac
<vlan id>
[vlan
]
<interface type> <interface number>
[interface
[{ static | dynamic }]
ip dhcp snooping vlan
<mac address>
]
configuration
]