Display DHCP Snooping Binding Table Information

Use the following procedure to display the DHCP Snooping binding table, you can filter the entries displayed based on the type, port, or VLAN.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Display all binding entries:

    show ip dhcp-snooping binding

  3. Display binding entries based on the MAC address or IP address:

    show ip dhcp-snooping binding address [0x00:0x00:0x00:0x00:0x00:0x00|{A.B.C.D}]

  4. Display binding entries configured on the ports:

    show ip dhcp-snooping binding interface [gigabitEthernet{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

  5. Display binding entries configured on the VLANs:

    show ip dhcp-snooping binding vlan <1-4059>

  6. Display binding entries configured on a specific VRF:

    show ip dhcp-snooping binding vrf WORD<1-16>

  7. Display binding entries configured on a specific VRF ID:

    show ip dhcp-snooping binding vrfids WORD<0-512>

  8. Display a summary of the DHCP Snooping binding table:

    show ip dhcp-snooping binding summary [<1-4059>] [vrf WORD<1-16>] [vrfids WORD<0-512>] [{slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}]

  9. Display binding entries based on the type of entry:

    show ip dhcp-snooping binding type [dynamic|static]

Example

Switch:1>show ip dhcp-snooping binding
=========================================================================================================
                                              DHCP Snooping Binding Table
=========================================================================================================
MAC                       IP              PORT    VLAN    VRF        LEASE        EXPIRY     ENTRY
ADDRESS                   ADDRESS         NUM     ID      NAME       TIME         TIME       TYPE
---------------------------------------------------------------------------------------------------------
23-74-44-33-15-33     192.0.2.40          225       1     13446        0          0          Static    
ab-22-44-23-22-11     192.0.2.56          213      34     52341        0          0          Static    
bb-22-44-33-af-ab     192.0.2.134         197     234     34345        0          0          Static    
bb-22-44-af-af-ab     192.0.2.88          197     999     52342        0          0          Static    
fe-92-44-33-22-33     192.0.2.13          211     333     52343        0          0          Static    
fe-ab-44-33-22-33     192.0.2.45          197      74     52343        0          0          Static
---------------------------------------------------------------------------------------------------------
Static entries  : 6
Learned entries : 0
Total entries   : 6
---------------------------------------------------------------------------------------------------------