show ldp routes
Use this command to display LDP routes.
Command Syntax
show ldp routes
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ldp routes
Prefix: 0.0.0.0/0 Nexthop: 10.0.2.2 IFINDEX: 2
Prefix: 1.1.1.1/32 Nexthop: 20.0.0.1 IFINDEX: 3
Prefix: 2.2.2.2/32 Nexthop: 0.0.0.0 IFINDEX: 1
Prefix: 3.3.3.3/32 Nexthop: 30.0.0.2 IFINDEX: 4
Prefix: 4.4.4.4/32 Nexthop: 40.0.0.2 IFINDEX: 5
Prefix: 5.5.5.5/32 Nexthop: 30.0.0.2 IFINDEX: 4
Nexthop: 40.0.0.2 IFINDEX: 5
Prefix: 20.0.0.0/24 Nexthop: 0.0.0.0 IFINDEX: 3
Prefix: 30.0.0.0/24 Nexthop: 0.0.0.0 IFINDEX: 4
Prefix: 40.0.0.0/24 Nexthop: 0.0.0.0 IFINDEX: 5
Prefix: 50.0.0.0/24 Nexthop: 30.0.0.2 IFINDEX: 4
Prefix: 60.0.0.0/24 Nexthop: 40.0.0.2 IFINDEX: 5
Table 2-12 explains the show command output fields.
Table 2-12: show ldp routes output fields details
Field | Description |
---|
Prefix | Details of the network address prefix. |
Nexthop | Displays the IP address of the next hop. |
IFINDEX | Displays an interface index. |
Last modified date: 07-13-2023