display ip source binding

Syntax

display ip source binding [ static ] [ interface interface-type interface-number | ip-address ip-address | mac-address mac-address ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

static: Displays static IPv4 source guard entries, including global static IPv4 binding entries and port-based static IPv4 binding entries. If you do not specify this keyword, the command displays all static and dynamic IPv4 source guard entries.

interface interface-type interface-number: Displays IPv4 source guard entries of the interface specified by its type and number.

ip-address ip-address: Displays IPv4 source guard entries of an IP address.

mac-address mac-address: Displays IPv4 source guard entries of an MAC address (in the format H-H-H).

slot slot-number: Displays IPv4 source guard entries on the specified device. The slot-number argument specifies the device ID. It must be 1.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ip source binding to display IPv4 source guard entries.

Note the following when you do not use the static keyword:

Note the following when you use the static keyword:

Related commands: ip verify source and ip source binding.

Examples

# Display all IPv4 source guard entries.

<Sysname> display ip source binding
Total entries found: 3
 MAC Address         IP Address          VLAN       Interface        Type
 040a-0000-4000      10.1.0.9            N/A        Eth1/0/1         Static
 040a-0000-3000      10.1.0.8            2          Eth1/0/2         DHCP-SNP
 040a-0000-2000      10.1.0.7            2          Eth1/0/2         DHCP-SNP

# Display all static IPv4 source guard entries.

<Sysname> display ip source binding static
Total entries found: 2
 MAC Address          IP Address         VLAN       Interface        Type
040a-0000-0012        10.1.0.12          N/A        Eth1/0/3         Static
 040a-0000-0013       10.1.0.13          N/A        Eth1/0/3         Static 

Table 46: Command output

Field

Description

Total entries found

Total number of found entries

MAC Address

MAC address of the IP source guard entry. If no MAC address is bound in the entry, this field displays N/A.

IP Address

IP address of the IP source guard entry. If no IP address is bound in the entry, this field displays N/A.

VLAN

VLAN bound to the IP source guard entry. If no VLAN information exists in the entry, this field displays N/A.

Interface

Interface of the IPv4 source guard entry

Type

Type of the IPv4 source guard entry:

  • Static—Static IPv4 binding entry

  • DHCP-SNP—Entry generated based on DHCP snooping entry