Display DHCP Snooping Interface Information

Use the following procedure to view the DHCP Snooping interface information.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Display DHCP Snooping brouter port information:

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

  3. Display DHCP Snooping VLAN information:

    show ip dhcp-snooping vlan <1-4059>

  4. Display DHCP Snooping information for specific VRF name:

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

  5. Display DHCP Snooping information for specific VRF ID:

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

Examples

Switch:1>show ip dhcp-snooping interface gigabitEthernet
===============================================================================
                          Dhcp Snooping Interface Info
===============================================================================
PORT       PORT            TRUNK
NUM        CLASS           ID
-------------------------------------------------------------------------------
1/1        UNTRUSTED       none
1/2        UNTRUSTED       none
2/1        UNTRUSTED       none
2/2        UNTRUSTED       none
-------------------------------------------------------------------------------

All 4 out of 4 Total Num of Dhcp Snooping entries displayed
Switch:1>show ip dhcp-snooping vlan
===============================================================================
                            Dhcp Snooping Vlan Info
===============================================================================
VLAN       VRF
ID         NAME            ENABLE       ORIGIN
-------------------------------------------------------------------------------
1          GlobalRouter    false        RADIUS
10         GlobalRouter    false        RADIUS
4051       GlobalRouter    false        RADIUS
4052       GlobalRouter    false        RADIUS
-------------------------------------------------------------------------------

All 4 out of 4 Total Num of Dhcp Snooping entries displayed
Switch:1>show ip dhcp-snooping binding vrfids 0
=======================================================================================================
                                              DHCP Snooping Binding Table
=======================================================================================================
MAC                       IP              PORT    VLAN    VRF             LEASE      EXPIRY     ENTRY
ADDRESS                   ADDRESS         NUM     ID      NAME            TIME       TIME       TYPE
-------------------------------------------------------------------------------------------------------
36:63:0e:73:03:fe         192.0.2.8       1/1/2  200     GlobalRouter    86400      83700      Learned
36:63:0e:73:03:ff         192.0.2.9       1/1/2  200     GlobalRouter    86400      83700      Learned
Static entries  : 0
Learned entries : 2
Total entries   : 2
-------------------------------------------------------------------------------------------------------

All 2 out of 2 Total DHCP Snooping binding entries displayed
Switch:1>show ip dhcp-snooping binding vrf vrf100
=======================================================================================================
                                              DHCP Snooping Binding Table
=======================================================================================================
MAC                       IP              PORT    VLAN    VRF             LEASE      EXPIRY     ENTRY
ADDRESS                   ADDRESS         NUM     ID      NAME            TIME       TIME       TYPE
-------------------------------------------------------------------------------------------------------
00:00:00:00:01:01         192.0.2.11      1/24    100     vrf100          Infinite   none       Static
Static entries  : 1
Learned entries : 0
Total entries   : 1
-------------------------------------------------------------------------------------------------------

All 1 out of 3 Total DHCP Snooping binding entries displayed