- show (ospf | ospf3) route
- <detail>
- <abr | asbr | extern | inter | intra>
- <instance instance-name
- <logical-system (all | logical-system-name)>
- <realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)>
- <topology topology-name>
- <transit>
Command introduced before JUNOS Release 7.4.
topology option introduced in JUNOS Release 9.0.
realm option introduced in JUNOS Release 9.2.
Display the entries in the Open Shortest Path First (OSPF) routing table.
none — Display standard information about all entries in the OSPF routing table for all routing instances on all logical systems and all topologies.
detail — (Optional) Display detailed information.
abr — (Optional) Display routes to area border routers.
asbr — (Optional) Display routes to autonomous system border routers.
extern — (Optional) Display external routes.
inter — (Optional) Display interarea routes.
intra — (Optional) Display intra-area routes.
instance instance-name — (Optional) Display entries for the specified routing instance.
logical-system (all | logical-system-name) — (Optional) Perform this operation on all logical systems or on a particular logical system.
realm (ipv4-multicast | ipv4-unicast | ipv6-multicast) — (ospf3 only) (Optional) Display entries in the routing table for the specified OSPFv3 realm, or address family. Use the realm option to specify an address family for OSPFv3 other than IPv6 unicast, which is the default.
topology topology-name — (ospf only) (Optional) Display routes for a particular topology.
transit — (ospf3 only) (Optional) Display OSPFv3 routes to pseudonodes.
view
Table 82 list the output fields for the show (ospf | ospf3) route command. Output fields are listed in the approximate order in which they appear.
Table 82: show (ospf | ospf3) route Output Fields
user@host> show ospf route
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface addr/label
10.255.71.12 Intra Router IP 1 fe-0/0/2.0 192.16.22.86
10.255.71.13/32 Intra Network IP 0 lo0.0
192.168.222.84/30 Intra Network LSP 1 fe-0/0/2.0 lsp-ab
user@host> show ospf route detail
Topology default Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface addr/
label
10.255.14.174 Inter AS BR IP 210 t1-3/0/1.0
area 0.0.0.2, origin 10.255.14.185
10.255.14.178 Intra Router IP 200 t3-3/1/3.0
area 0.0.0.2, origin 10.255.14.178, optional-capability 0x0
10.210.1.0/30 Intra Network IP 10 t3-3/1/2.0
area 0.0.0.2, origin 10.255.14.172, priority medium
100.1.1.1/32 Inter Network IP 210 t1-3/0/1.0
area 0.0.0.2, origin 10.255.14.185, priority low
112.3.1.0/24 Ext2 Network IP 0 t1-3/0/1.0
area 0.0.0.0, origin 10.255.14.174, priority high
200.3.3.0/30 Inter Network IP 220 t1-3/0/1.0
area 0.0.0.2, origin 10.255.14.185, priority high
user@host> show ospf3 route
Prefix Path Route NH Metric
type type type
10.255.71.13 Intra Router IP 1
NH-interface fe-0/0/2.0, NH-addr fe80::290:69ff:fe9b:e002
10.255.71.13;0.0.0.2 Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface addr/label
10.255.245.1 Intra Router IP 40 fxp1.1 192.168.36.17
area 0.0.0.0, origin 10.255.245.1 optional-capability 0x0,
10.255.245.3 Intra AS BR IP 1 fxp2.3 192.168.36.34
area 0.0.0.0, origin 10.255.245.3 optional-capability 0x0,
10.255.245.1/32 Intra Network IP 40 fxp1.1 192.168.36.17
area 0.0.0.0, origin 10.255.245.1, priority high
10.255.245.2/32 Intra Network IP 0 lo0.0
area 0.0.0.0, origin 10.255.245.2, priority medium
10.255.245.3/32 Intra Network IP 1 fxp2.3 192.168.36.34
area 0.0.0.0, origin 10.255.245.3, priority low
Intra Transit IP 1
NH-interface fe-0/0/2.0
192::168:222:84/126 Intra Network IP 1
NH-interface fe-0/0/2.0
abcd::71:12/128 Intra Network IP 0
NH-interface lo0.0
abcd::71:13/128 Intra Network LSP 1
NH-interface fe-0/0/2.0, NH-addr lsp-cd
user@host> show ospf3 route detail
Prefix Path Route NH
Metric
type type type
10.255.14.174 Intra Area/AS BR IP 110
NH-interface so-1/2/2.0
Area 0.0.0.0, Origin 10.255.14.174, Optional-capability 0x3
10.255.14.178 Intra Router IP 200
NH-interface t3-3/1/3.0
Area 0.0.0.0, Origin 10.255.14.178, Optional-capability 0x0
10.255.14.185;0.0.0.2 Intra Transit IP 200
NH-interface t1-3/0/1.0
NH-interface so-1/2/2.0
Area 0.0.0.0, Origin 10.255.14.185
1000:1:1::1/128 Inter Network IP 110
NH-interface so-1/2/2.0
Area 0.0.0.0, Origin 10.255.14.174, Priority low
1001:2:1::/48 Ext1 Network IP 110
NH-interface so-1/2/2.0
Area 0.0.0.0, Origin 10.255.14.174, Fwd NZ, Priority medium
1002:1:7::/48 Ext2 Network IP 0
NH-interface so-1/2/2.0
Area 0.0.0.0, Origin 10.255.14.174, Fwd NZ, Priority low
1002:3:4::/48 Ext2 Network IP 0
NH-interface so-1/2/2.0
Area 0.0.0.0, Origin 10.255.14.174, Fwd NZ, Priority high
abcd::10:255:14:172/128 Intra Network IP 0
NH-interface lo0.0
Area 0.0.0.0, Origin 10.255.14.172, Priority low
user@host show ospf route topology voice
Topology voice Route Table:
Prefix Path Route NH Metric NextHop Nexthop
Type Type Type Interface addr/label
10.255.8.2 Intra Router IP 1 so-0/2/0.0
10.255.8.3 Intra Router IP 2 so-0/2/0.0
10.255.8.1/32 Intra Network IP 0 lo0.0
10.255.8.2/32 Intra Network IP 1 so-0/2/0.0
10.255.8.3/32 Intra Network IP 2 so-0/2/0.0
192.168.8.0/29 Intra Network IP 2 so-0/2/0.0
192.168.8.44/30 Intra Network IP 2 so-0/2/0.0
192.168.8.46/32 Intra Network IP 1 so-0/2/0.0
192.168.8.48/30 Intra Network IP 1 so-0/2/1.0
192.168.8.52/30 Intra Network IP 2 so-0/2/0.0
192.168.9.44/30 Intra Network IP 1 so-0/2/0.0
192.168.9.45/32 Intra Network IP 2 so-0/2/0.0