View IPv4 Address Bindings

About this task

View the IPv4 address bindings that IP Source Guard (IPSG) allows.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. View the allowed IPv4 address bindings for a specific interface:

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

  3. View the allowed IPv4 address bindings for a specific IP address:

    show ip source binding {A.B.C.D}

Example

View the allowed IPv4 address bindings for the port 1/1.

Switch:1>show ip source binding interface gigabitEthernet 1/1

==========================================================================================
                                                   IPSG Source Table
==========================================================================================
PORT       IP              VLAN    VRF
NUM        ADDRESS         ID      NAME
------------------------------------------------------------------------------------------
1/1        192.0.2.1       200     GlobalRouter
------------------------------------------------------------------------------------------

All 1 out of 1 Total IP Source Guard entries displayed

View the IPv4 address bindings for a specific IP address.

Switch:1>show ip source binding 192.0.2.1 

==========================================================================================
                                                   IPSG Source Table
==========================================================================================
PORT       IP              VLAN    VRF
NUM        ADDRESS         ID      NAME
------------------------------------------------------------------------------------------
1/1        192.0.2.1       200     GlobalRouter
------------------------------------------------------------------------------------------

All 1 out of 1 Total IP Source Guard entries displayed

Variable Definitions

The following table defines parameters for the show ip source binding command.

Variable

Value

{A.B.C.D}

Identifies the IPv4 address.

interface gigabitEthernet {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

vlan <1-4059>

Specifies the VLAN ID of the VLAN for which to view IPv4 address bindings.

vrf WORD<1-16>

Specifies the VRF name of the VRF for which to view the IPv4 address bindings.

vrfids WORD<0-512>

Specifies the VRF ID of the VRF for which to view IPv4 address bindings.