- 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 | 62.8 KB |
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 IPv4 adjacency table entries.
physical-interface interface-type interface-number: Displays IPv4 adjacency table entry information for the specified physical interface.
routing-interface interface-type interface-number: Displays IPv4 adjacency table entry information for the specified routing interface.
slot slot-id: Displays IPv4 adjacency table entry information for 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 display adjacent-table to display IPv4 adjacency table entries.
Examples
# Display detailed information about all 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
Table 1 Command output
Field |
Description |
IP Address |
Next hop IP address. |
Routing Interface |
Adjacency table routing interface, namely, output 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 output interface. P2P indicates point-to-point, such as PPP. |
Slot |
Slot number of the physical device, such as PVC and DLCI. |
Virtual Circuit Information |
Virtual circuit information for the adjacency table entry. |
Link Head Information(IP) |
Information about the link layer header corresponding to the IPv4 protocol. |
Link Head Information(MPLS) |
Information about 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 IPv6 adjacency table entries.
physical-interface interface-type interface-number: Displays IPv6 adjacency table entry information for the specified physical interface.
routing-interface interface-type interface-number: Displays IPv6 adjacency table entry information for the specified routing interface.
slot slot-id: Displays IPv6 adjacency table entries about 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 display ipv6 adjacent-table to display IPv6 adjacency table entries.
Examples
# Display detailed information about all 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
Table 2 Command output
Field |
Description |
IPv6 Address |
Next hop IPv6 address. |
Routing Interface |
Adjacency table routing interface, namely, output 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 output interface. P2P indicates point-to-point, such as PPP. |
Slot |
Slot number of the physical device. |
Virtual Circuit Information |
Virtual circuit information for the adjacency table entry. |
Link Head Information(IPv6) |
Information about the link layer header corresponding to the IPv6 protocol. |