show ipv6 ospf route
Use this command to display the IPv6 routing table for OSPFv3.
The routes can be displayed in two ways:
• Each routing entry in a single-line
• Each routing entry in multiple lines
By default, the routing table is displayed in the multi-line format. For a single line display, give the
ipv6 ospf display route single-line command.
Command Syntax
show ipv6 ospf route
show ipv6 ospf WORD route
Parameters
WORD
Tag value to use as a “match” value for controlling redistribution via route maps.
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is sample output in single-line format:
#show ipv6 ospf route
Destination Metric Next-hop
3ffe:1:1::/48 10 directly connected, eth0
3ffe:2:1::/48 10 directly connected, eth0
3ffe:2:2::/48 10 directly connected, eth0
3ffe:3:1::/48 10 directly connected, eth0
3ffe:3:2::/48 10 directly connected, eth0
3ffe:3:3::/48 10 directly connected, eth0
E2 3ffe:100:1::1/128 10/20 via fe80::203:47ff:fe4c:776e, eth0
E2 3ffe:100:2::1/128 10/20 via fe80::203:47ff:fe4c:776e, eth0
E2 3ffe:100:3::1/128 10/20 via fe80::203:47ff:fe4c:776e, eth0
IA 3ffe:101:1::/48 20 via fe80::203:47ff:fe4c:776e, eth0
IA 3ffe:101:2::/48 20 via fe80::203:47ff:fe4c:776e, eth0
IA 3ffe:101:3::/48 20 via fe80::203:47ff:fe4c:776e, eth0
The following is sample output in multi-line format:
#show ipv6 ospf route
Destination Metric
Next-hop Interface
3ffe:1:1::/48 10
-- eth0
3ffe:2:1::/48 10
-- eth0
3ffe:2:2::/48 10
-- eth0
3ffe:3:1::/48 10
-- eth0
3ffe:3:2::/48 10
-- eth0
3ffe:3:3::/48 10
-- eth0
E2 3ffe:100:1::1/128 10/20
fe80::203:47ff:fe4c:776e eth0
Table 3-55 explains the fields for each ospf route entry.
Table 3-55: show ipv6 ospf route output details
Field | Description |
---|
IP address | IP address of the remote network. |
Metric | For OSPF the metric is cost, which indicates the best quality path to use to forward packets. |
Next hop router IP address | This route is available through the next hop router located at this IP address. This identifies exactly where packets go when they match this route. |
Outgoing interface name | Interface used to get to the next-hop address for this route. |
Last modified date: 10/16/2023