display ipv6 neighbors
Format
display ipv6 neighbors [ ipv6-address | [ vid vid ] interface-type interface-number ]
display ipv6 neighbors [ interface-type interface-number [ vid vid [ cevid cevid ] ] ]
Parameters
Parameter | Description | Value |
---|---|---|
ipv6-address | Displays neighbor entries of a specified IPv6 address. | The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
vid vid | Displays neighbor entries of a specified VLAN. | The value is an integer that ranges from 1 to 4094. |
interface-type interface-number | Displays neighbor entries on a specified interface. | - |
cevid cevid | Specifies the inner tag. | The value is an integer that ranges from 1 to 4094. |
Usage Guidelines
The display ipv6 neighbors command displays information about dynamic and static ND entries. The information helps you:
- Check whether the local routing device has learned MAC addresses from neighbors.
- Check the neighbor status of the local routing device, including neighbor unreachable, neighbor reachable, or unknown.
You can run one of the following commands as required:
To view neighbor entries based on the neighbor IPv6 address, run the display ipv6 neighbors [ ipv6-address ] command.
To view neighbor entries based on the neighbor interface number, run the display ipv6 neighbors interface-type interface-number command.
To view neighbor entries on a VLANIF interface, run the display ipv6 neighbors [ interface-type interface-number [ vid vid ] ] command.
If no parameter is specified, the display ipv6 neighbors command displays all neighbor entries.
Example
# Display neighbor entries on vlanif 100.
<AC6605> display ipv6 neighbors vlanif 100 ----------------------------------------------------------------------------- IPv6 Address : 2::1 Link-layer : 707b-e8e9-d329 State : STALE Interface : GE0/0/0 Age : 00h05m12s VLAN : 200 CEVLAN: - VPN name : Is Router: TRUE Secure FLAG : UN-SECURE IPv6 Address : FE80::727B:E8FF:FEE9:D329 Link-layer : 707b-e8e9-d329 State : STALE Interface : GE0/0/1 Age : 00h03m02s VLAN : 100 CEVLAN: - Is Router: TRUE Secure FLAG : UN-SECURE ----------------------------------------------------------------------------- Total: 2 Dynamic: 2 Static: 0
# Display neighbor entries of IPv6 address 2::1.
<AC6605> display ipv6 neighbors 2::1
-----------------------------------------------------------------------------
IPv6 Address : 2::1
Link-layer : 707b-e8e9-d329 State : STALE
Interface : GE0/0/0 Age : 00h08m37s
VLAN : 200 CEVLAN: -
Is Router: TRUE
Secure FLAG : UN-SECURE
-----------------------------------------------------------------------------
Total: 1 Dynamic: 1 Static: 0
Item |
Description |
---|---|
IPv6 Address |
IPv6 address of a neighbor. |
Link-layer |
Link layer address (MAC address) of a neighbor. |
State |
Status of a neighbor entry:
|
Interface |
Name of the interface to which the neighbor entry belongs. |
Age |
Aging time of the neighbor entry:
|
VLAN |
ID of the VLAN to which the neighbor belongs. |
CEVLAN |
Inner VLAN ID. |
Is Router |
Whether an NA packet carries the R flag:
|
Secure FLAG |
Whether the neighbor entry is secure:
|
Total |
Total number of neighbor entries. |
Dynamic |
Number of dynamic neighbor entries. |
Static |
Number of static neighbor entries. |