show ldp fec

Use the following command to display all FECs (Forwarding Equivalence Classes) known to this LSR.

Command Syntax

Copy
show ldp fec
show ldp fec (prefix)
show mpls ldp fec
show mpls ldp fec (prefix|)

Parameter

prefix

Display prefix FEC information.

Command Mode

Exec mode and Privileged Exec mode

Applicability

This command was introduced before OcNOS version 1.3 and was updated in OcNOS version 5.1.

Example

When LDP LFA FRR in not enabled:

Copy
#show ldp fec
LSR codes    : E/N - LSR is egress/non-egress for this FEC,
               L - LSR received a label for this FEC,
               > - LSR will use this route for the FEC
FEC                 Code    Session             Out Label   ELC   Nexthop Addr
10.0.1.0/31         NL      22.1.1.1            impl-null   No    connected
                    E >     non-existent        none        No    connected
10.0.2.0/31         NL      44.1.1.1            24322       No    no nexthop
                    NL>     22.1.1.1            impl-null   No    10.0.1.1
10.0.3.0/31         NL      22.1.1.1            24323       No    no nexthop
                    NL>     44.1.1.1            impl-null   No    10.0.4.1
10.0.4.0/31         NL      44.1.1.1            impl-null   No    connected
                    E >     non-existent        none        No    connected
11.1.1.1/32         E >     non-existent        none        No    connected
22.1.1.1/32         NL>     22.1.1.1            impl-null   No    10.0.1.1
33.1.1.1/32         NL>     44.1.1.1            24323       No    10.0.4.1
                    NL>     22.1.1.1            24324       No    10.0.1.1
44.1.1.1/32         NL>     44.1.1.1            impl-null   No    10.0.4.1
192.168.254.0/24    NL      22.1.1.1            impl-null   No    connected
                    NL      44.1.1.1            impl-null   No    connected
                    E >     non-existent        none        No    connected

When LDP LFA FRR in enabled:

Copy
#show ldp fec
LSR codes    : E/N - LSR is egress/non-egress for this FEC,
               L - LSR received a label for this FEC,
               P - Primary route, B - LFA Backup route,
               R - Remote LFA Backup route,
               > - LSR will use this route for the FEC
FEC                 Code    Session             Out Label   ELC   Nexthop Addr
10.0.1.0/31         NL      22.1.1.1            impl-null   No    connected
                    E >     non-existent        none        No    connected
10.0.2.0/31         NLB>    44.1.1.1            24322       No    10.0.4.1
                    NLP>    22.1.1.1            impl-null   No    10.0.1.1
10.0.3.0/31         NLB>    22.1.1.1            24323       No    10.0.1.1
                    NLP>    44.1.1.1            impl-null   No    10.0.4.1
10.0.4.0/31         NL      44.1.1.1            impl-null   No    connected
                    E >     non-existent        none        No    connected
11.1.1.1/32         E >     non-existent        none        No    connected
22.1.1.1/32         NLP>    22.1.1.1            impl-null   No    10.0.1.1
33.1.1.1/32         NLP>    44.1.1.1            24323       No    10.0.4.1
                    NLB>    44.1.1.1            24323       No    10.0.4.1
                    NLP>    22.1.1.1            24324       No    10.0.1.1
                    NLB>    22.1.1.1            24324       No    10.0.1.1
44.1.1.1/32         NLP>    44.1.1.1            impl-null   No    10.0.4.1
1.1.1.1/32          NL      1.1.1.1             impl-null   No    no nexthop
                    NLP>    3.3.3.3             24320       No    30.1.1.1
                    NLB>    3.3.3.3             24320       No    30.1.1.1
                    NLP>    2.2.2.2             24320       No    20.1.1.1
                    NLB>    2.2.2.2             24320       No    20.1.1.1
2.2.2.2/32          NLR>    1.1.1.1             24324       No    1.1.1.1
                                                    (via 30.1.1.1,label 24320)
                    NLP>    2.2.2.2             impl-null   No    20.1.1.1
192.168.254.0/24    NL      22.1.1.1            impl-null   No    connected
                    NL      44.1.1.1            impl-null   No    connected
                    E >     non-existent        none        No    connected

Table 49 shows the codes at the end of each route entry that indicate where the route originated.

Table 49.

Origin Codes

Origin Code

Description

Comments

E/N

Egress/Non-egress

LSR is egress/non-egress for this FEC.

L

LSR

LSR received a label for this FEC.

>

 

LSR will use this route for the FEC.

P

Primary route

When LDP LFA FRR is enabled

B

LFA Backup route

When LDP LFA FRR is enabled

R

Remote LFA Backup route

When LDP LFA FRR is enabled

 

Table 50 explains the show command output fields.

Table 50.

show ldp fec output fields details

Field

Description

FEC

Displays the Forward Equivalency Class (FEC) for this entry.

Session

Reports the current session state.

Out Label

Label received from downstream neighbor for route.

ELC

Displays if route has ELC

Nexthop addr

Displays the IP address of the next hop.