- Table of Contents
-
- 06-Layer 3 - IP Services Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DNS Commands
- 05-NAT Commands
- 06-IP Forwarding Basics Commands
- 07-Adjacency Table Commands
- 08-IP Performance Optimization Commands
- 09-UDP Helper Commands
- 10-IPv6 Basics Commands
- 11-DHCPv6 Commands
- 12-IPv6 DNS Commands
- 13-Tunneling Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Adjacency Table Commands | 75.47 KB |
|
NOTE: · The adjacency table feature only applies to hardware forwarding, but not software forwarding. · The adjacency table feature does not apply to Ethernet networks that use ARP for storing and managing neighbor information. · You can only view adjacency tables of tunnel interfaces and POS interfaces. For more information about tunnel interfaces, see Layer 3—IP Services Configuration Guide. For more information about POS interfaces, see Interface Configuration Guide. |
display adjacent-table
Syntax
display adjacent-table { all | physical-interface interface-type interface-number | routing-interface interface-type interface-number | slot slot-id } [ count | verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Displays all the IPv4 adjacency table entries.
physical-interface interface-type interface-number: Displays the IPv4 adjacency table entry information of the specified physical interface.
routing-interface interface-type interface-number: Displays the IPv4 adjacency table entry information of the specified routing interface.
slot slot-id: Displays the IPv4 adjacency table entry information of the specified slot.
count: Displays the number of IPv4 adjacency table entries.
verbose: Displays detailed IPv4 adjacency table entry information.
|: 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 the display adjacent-table command to display IPv4 adjacency table entries.
Examples
# Display the detailed information of all the IPv4 adjacency table entries.
<Sysname> display adjacent-table all verbose
IP Address : 1.1.1.1
Routing Interface : Pos2/1/3
Physical Interface : Pos2/1/3
Logical Interface : N/A
Service Type : PPP
Action Type : FORWARDING
Link Media Type : P2P
Slot : 2
Virtual Circuit Information : N/A
Link Head Information(IP) : ff030021
Link Head Information(MPLS) : ff030281
# Display the IPv4 adjacency table entries in slot 2.
<Sysname> display adjacent-table slot 2
IP Address Routing Interface Physical Interface Type Slot
1.1.1.1 Pos2/1/3 Pos2/1/3 PPP 2
# Display the number of IPv4 adjacency table entries of slot 2.
<Sysname> display adjacent-table slot 2 count
Total ADJ entries on slot 2 : 1
This output shows that slot 2 has one IPv4 adjacency table entry.
Table 1 Output description
Field |
Description |
IP Address |
Next hop IP address |
Routing Interface |
Adjacency table routing interface, namely, outgoing interface in the route forwarding entry. |
Physical Interface |
Adjacency table physical interface. |
Logical Interface |
Adjacency table logical interface: An abstract interface that does not correspond to any physical entity and is used for adjacency table implementation. |
Service Type |
Adjacency table service type. |
Action Type |
Action to take on the packet that matches the entry, forward or drop |
Link Media Type |
Link media type, which is related to the link layer protocol used by the outgoing interface. P2P indicates point-to-point, such as the point-to-point protocol (PPP). |
Slot |
Slot number of the physical device, such as PVC and DLCI. |
Virtual Circuit Information |
Virtual circuit information of the adjacency table entry |
Link Head Information (IP) |
Information of the link layer header corresponding to the IPv4 protocol |
Link Head Information (MPLS) |
Information of the link layer header corresponding to the MPLS protocol |
display ipv6 adjacent-table
Syntax
display ipv6 adjacent-table { all | physical-interface interface-type interface-number | routing-interface interface-type interface-number | slot slot-id } [ count | verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Displays all the IPv6 adjacency table entries.
physical-interface interface-type interface-number: Displays the IPv6 adjacency table entry information on the specified physical interface.
routing-interface interface-type interface-number: Displays the IPv6 adjacency table entry information on the specified routing interface.
slot slot-id: Displays the IPv6 adjacency table entries in the specified slot.
count: Displays the number of IPv6 adjacency table entries.
verbose: Displays detailed IPv6 adjacency table entry information.
|: 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 the display ipv6 adjacent-table command to display IPv6 adjacency table entries.
# Display the detailed information of all the IPv6 adjacency table entries.
<Sysname> display ipv6 adjacent-table all verbose
IPv6 Address : N/A
Routing Interface : Pos2/1/4
Physical Interface : Pos2/1/4
Logical Interface : N/A
Service Type : PPP
Action Type : FORWARDING
Link Media Type : P2P
Slot : 0
Virtual Circuit Information : N/A
Link Head Information(IPv6) : ff030057
Time Stamp : 141225
# Display the IPv6 adjacency table entries in slot 2.
<Sysname> display ipv6 adjacent-table slot 2
IPv6 Address Routing Interface Physical Interface Type Slot
N/A Pos2/1/4 Pos2/1/4 PPP 1
# Display the number of IPv6 adjacency table entries in slot 2.
<Sysname> display ipv6 adjacent-table slot 2 count
Total IPv6 ADJ entries : 1
The output shows that slot 1 has one IPv6 adjacency table entry.
Table 2 Output description
Field |
Description |
IPv6 Address |
Next hop IPv6 address |
Routing Interface |
Adjacency table routing interface, namely, outgoing interface in the route forwarding entry. |
Physical Interface |
Adjacency table physical interface. |
Logical Interface |
Adjacency table logical interface: An abstract interface that does not correspond to any physical entity and is used for adjacent table implementation. |
Service Type |
Adjacency table service type, such as PPP. |
Action Type |
Action to take on the packet that matches the entry, forward or drop |
Link Media Type |
Link media type, which is related to the link layer protocol used by the outgoing interface. P2P indicates point-to-point, such as the point-to-point protocol (PPP). |
Slot |
Slot number of the physical device |
Virtual Circuit Information |
Virtual circuit information of the adjacency table entry. |
Link Head Information(IPv6) |
Information of the link layer header corresponding to the IPv6 protocol |