display mpls forwarding nhlfe
Use display mpls forwarding nhlfe to display Next Hop Label Forwarding Entry (NHLFE) entries.
Syntax
display mpls forwarding nhlfe [ nid ] [ slot slot-number ]
display mpls forwarding nhlfe [ nid ] [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
nid: Displays the NHLFE entry with the specified NID. The NID value is in the range of 0 to 4294967294. If you do not specify an NID, this command displays NHLFE entry information for all NIDs.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays NHLFE entries for the active MPU.
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays NHLFE entries for the global active MPU.
Usage guidelines
An NHLFE entry records label forwarding information, such as the outgoing label and outgoing interface. NHLFE entries are mainly used to add multiple labels to packets.
To add multiple labels to a packet, an LSR performs the following operations:
Obtains the bottom label and NID in the matching FIB or ILM entry.
Obtains the outer label in the NHLFE entry identified by the NID.
Examples
# Display the NHLFE entry with NID 2048.
<Sysname> display mpls forwarding nhlfe 2048 Flags: T - Forwarded through a tunnel N - Forwarded through the outgoing interface to the nexthop IP address B - Backup forwarding information A - Active forwarding information M – P2MP forwarding information NID Tnl-Type Flag OutLabel Forwarding Info -------------------------------------------------------------------------------- 2048 LSP NA 2025 Vlan10 10.11.112.26
# Display all NHLFE entries.
<Sysname> display mpls forwarding nhlfe Total NHLFE entries: 5 Flags: T - Forwarded through a tunnel N - Forwarded through the outgoing interface to the nexthop IP address B - Backup forwarding information A - Active forwarding information M – P2MP forwarding information NID Tnl-Type Flag OutLabel Forwarding Info -------------------------------------------------------------------------------- 10 - TA - 2049 20 - TA - 2050 2048 LSP NA 2025 Vlan10 10.11.112.26 2049 LSP NA 3024 Vlan20 10.11.112.26 TB 3026 20 2050 LSP NA 3025 Vlan30 10.11.113.26
Table 2: Command output
Field | Description |
---|---|
Total NHLFE entries | Total number of NHLFE entries. |
NID | NHLFE entry index. |
Tnl-Type | Tunnel type:
|
Flag | Forwarding flag:
|
OutLabel | Outgoing label. |
Forwarding Info | Forwarding information:
|