display ipv6 source binding
Syntax
display ipv6 source binding [ static ] [ interface interface-type interface-number | ipv6-address ipv6-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 IPv6 source guard entries. If you do not specify this keyword, the command displays all static and dynamic IPv6 source guard entries.
interface interface-type interface-number: Displays the IPv6 source guard entries of an interface.
ipv6-address ipv6-address: Displays the IPv6 source guard entries of an IPv6 address.
mac-address mac-address: Displays the IPv6 source guard entries of an MAC address. The MAC address must be in the format H-H-H.
slot slot-number: Displays IPv6 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 ipv6 source binding to display IPv6 source guard entries.
Note the following when you do not use the static keyword:
If you do not specify any other parameters either, the command displays static and dynamic IPv6 binding entries on all ports.
Note the following when you use the static keyword:
If you do not specify any other parameters, the command displays all port-based static IPv6 binding entries.
Related commands: ipv6 verify source and ipv6 source binding.
Examples
# Display all IPv6 source guard entries.
<Sysname> display ipv6 source binding Total entries found: 3 MAC Address IP Address VLAN Interface Type 040a-0000-0001 2001::1 N/A Eth1/0/1 Static-IPv6 040a-0000-0001 2001::3 2 Eth1/0/1 DHCPv6-SNP 040a-0000-0002 2001::4 6 Eth1/0/2 ND-SNP
# Display all static IPv6 source guard entries.
<Sysname> display ipv6 source binding static Total entries found: 2 MAC Address IP Address VLAN Interface Type 040a-0000-0012 2001::4 N/A Eth1/0/3 Static-IPv6 040a-0000-0013 2001::5 N/A Eth1/0/3 Static-IPv6
Table 47: Command output
Field | Description |
---|---|
Total entries found | Total number of found entries |
MAC Address | MAC address bound in the entry. If no MAC address is bound in the entry, this field displays N/A. |
IPv6 Address | IPv6 address bound in the entry. If no IP address is bound in the entry, this field displays N/A. |
VLAN | VLAN bound in the entry. If no VLAN information exists in the entry, this field displays N/A. |
Interface | Interface of the binding entry. |
Type | Type of the IPv6 source guard entry:
|