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 binding entries. If you do not specify this keyword, the command displays all static and dynamic IPv4 source guard binding entries.
interface interface-type interface-number: Displays IPv4 source guard binding entries of the interface specified by its type and number.
ip-address ip-address: Displays IPv4 source guard binding entries of an IP address.
mac-address mac-address: Displays IPv4 source guard binding entries of an MAC address (in the format H-H-H).
slot slot-number: Displays IPv4 source guard binding entries on an IRF member switch. The slot-number argument specifies the ID of an IRF member switch. The value range for the argument depends on the number of member switches and their member IDs in the IRF fabric.
|: 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 binding entries.
If you do not specify any parameters, the command displays all static and dynamic IPv4 binding entries.
If you specify only the static keyword, the command displays all static IPv4 binding entries.
Related commands: ip verify source and ip source binding.
Examples
# Display all IPv4 source guard binding 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 binding 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 58: Command output
Field | Description |
---|---|
Total entries found | Total number of found entries |
MAC Address | MAC address of the IP source guard binding entry. N/A means that no MAC address is bound in the entry. |
IP Address | IP address of the IP source guard binding entry. N/A means that no IP address is bound in the entry. |
VLAN | VLAN bound to the IP source guard binding entry. N/A means that no VLAN information exists in the entry. |
Interface | Interface of the IPv4 source guard binding entry |
Type | Type of the IPv4 source guard binding entry:
|