- show (ospf | ospf3) neighbor
- <brief | detail | extensive>
- <area area-id>
- <instance (all | instance-name>
- <interface interface-name>
- <logical-system (all | logical-system-name)>
- <neighbor>
- <realm (ipv4-multicast | ipv4-unicast | ipv6-multicast)>
Command introduced before JUNOS Release 7.4.
instance all option introduced in JUNOS Release 9.1.
area option introduced in JUNOS Release 9.2.
interface option introduced in JUNOS Release 9.2.
realm option introduced in JUNOS Release 9.2.
Display information about Open Shortest Path First (OSPF) neighbors.
none — Display standard information about all OSPF neighbors for all routing instances on all logical systems.
brief | detail | extensive — (Optional) Display the specified level of output.
area area-id — (Optional) Display information about the OSPF neighbors for the specified area.
instance (all | instance-name — (Optional) Display all OSPF interfaces for all routing instances or under the named routing instance.
interface interface-name — (Optional) Display information about OSPF neighbors for the specified logical interface.
logical-system (all | logical-system-name) — (Optional) Perform this operation on all logical systems or on a particular logical system.
neighbor — (Optional) Display information about the specified OSPF neighbor.
realm (ipv4-multicast | ipv4-unicast | ipv6-multicast) — (ospf3 only) (Optional) Display information about the OSPF neighbors 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.
view
Table 80 lists the output fields for the show (ospf | ospf3) neighbor command. Output fields are listed in the approximate order in which they appear.
Table 80: show (ospf | ospf3) neighbor Output Fields
user@host> show ospf neighbor brief
Address Intf State ID Pri Dead 192.168.254.225 fxp3.0 2Way 10.250.240.32 128 36 192.168.254.230 fxp3.0 Full 10.250.240.8 128 38 192.168.254.229 fxp3.0 Full 10.250.240.35 128 33 10.1.1.129 fxp2.0 Full 10.250.240.12 128 37 10.1.1.131 fxp2.0 Full 10.250.240.11 128 38 10.1.2.1 fxp1.0 Full 10.250.240.9 128 32 10.1.2.81 fxp0.0 Full 10.250.240.10 128 33
user@host> show ospf neighbor detail
Address Interface State ID Pri Dead
10.5.1.2 ge-1/2/0.1 Full 10.5.1.2 128 37
area 0.0.0.1, opt 0x42, DR 10.5.1.2, BDR 10.5.1.1
Up 06:09:28, adjacent 05:17:36
Link state acknowledgment list: 3 entries
Link state retransmission list: 9 entries
10.5.10.2 ge-1/2/0.10 ExStart 10.5.1.38 128 34
area 0.0.0.1, opt 0x42, DR 10.5.10.2, BDR 10.5.10.1
Up 06:09:28
master, seq 0xac1530f8, rexmit DBD in 3 sec
rexmit LSREQ in 0 sec
10.5.11.2 ge-1/2/0.11 Full 10.5.1.42 128 38
area 0.0.0.1, opt 0x42, DR 10.5.11.2, BDR 10.5.11.1
Up 06:09:28, adjacent 05:26:46
Link state retransmission list: 1 entries
10.5.12.2 ge-1/2/0.12 ExStart 10.5.1.46 128 33
area 0.0.0.1, opt 0x42, DR 10.5.12.2, BDR 10.5.12.1
Up 06:09:28
master, seq 0xac188a68, rexmit DBD in 2 sec
rexmit LSREQ in 0 sec
user@host> show ospf neighbor extensive
Address Interface State ID Pri Dead
10.5.1.2 ge-1/2/0.1 Full 10.5.1.2 128 33
area 0.0.0.1, opt 0x42, DR 10.5.1.2, BDR 10.5.1.1
Up 06:09:42, adjacent 05:17:50
Link state retransmission list:
Type LSA ID Adv rtr Seq
Summary 10.8.56.0 172.25.27.82 0x8000004d
Router 10.5.1.94 10.5.1.94 0x8000005c
Network 10.5.24.2 10.5.1.94 0x80000036
Summary 10.8.57.0 172.25.27.82 0x80000024
Extern 1.10.90.0 10.8.1.2 0x80000041
Extern 1.4.109.0 10.6.1.2 0x80000041
Router 10.5.1.190 10.5.1.190 0x8000005f
Network 10.5.48.2 10.5.1.190 0x8000003d
Summary 10.8.58.0 172.25.27.82 0x8000004d
Extern 1.10.91.0 10.8.1.2 0x80000041
Extern 1.4.110.0 10.6.1.2 0x80000041
Router 10.5.1.18 10.5.1.18 0x8000005f
Network 10.5.5.2 10.5.1.18 0x80000033
Summary 10.8.59.0 172.25.27.82 0x8000003a
Summary 10.8.62.0 172.25.27.82 0x80000025
10.5.10.2 ge-1/2/0.10 ExStart 10.5.1.38 128 38
area 0.0.0.1, opt 0x42, DR 10.5.10.2, BDR 10.5.10.1
Up 06:09:42
master, seq 0xac1530f8, rexmit DBD in 2 sec
rexmit LSREQ in 0 sec
10.5.11.2 ge-1/2/0.11 Full 10.5.1.42 128 33
area 0.0.0.1, opt 0x42, DR 10.5.11.2, BDR 10.5.11.1
Up 06:09:42, adjacent 05:27:00
Link state retransmission list:
Type LSA ID Adv rtr Seq
Summary 10.8.58.0 172.25.27.82 0x8000004d
Extern 1.10.91.0 10.8.1.2 0x80000041
Extern 1.1.247.0 10.5.1.2 0x8000003f
Extern 1.4.110.0 10.6.1.2 0x80000041
Router 10.5.1.18 10.5.1.18 0x8000005f
Network 10.5.5.2 10.5.1.18 0x80000033
Summary 10.8.59.0 172.25.27.82 0x8000003a
user@host> show ospf3 neighbor detail
ID Interface State Pri Dead 10.255.71.13 fe-0/0/2.0 Full 128 30 Neighbor-address fe80::290:69ff:fe9b:e002 area 0.0.0.0, opt 0x13, OSPF3-Intf-Index 2 DR-ID 10.255.71.13, BDR-ID 10.255.71.12 Up 02:51:43, adjacent 02:51:43
user@host >show ospf neighbor area 1.1.1.1
Address Interface State ID Pri Dead 192.168.37.47 so-0/0/0.0 Full 10.255.245.4 128 33 Area 1.1.1.1 192.168.37.55 so-1/0/0.0 Full 10.255.245.5 128 37 Area 1.1.1.1
user@host >show ospf neighbor interface so-0/0/0.0
Address Interface State ID Pri Dead 192.168.37.47 so-0/0/0.0 Full 10.255.245.4 128 37 Area 0.0.0.0 192.168.37.47 so-0/0/0.0 Full 10.255.245.4 128 33 Area 1.1.1.1 192.168.37.47 so-0/0/0.0 Full 10.255.245.4 128 32 Area 2.2.2.2
user @host > show ospf3 neighbor instance all
Instance: ina Realm: ipv6-unicast ID Interface State Pri Dead 100.1.1.1 fe-0/0/2.0 Full 128 37 Neighbor-address fe80::217:cb00:c87c:8c03 Instance: inb Realm: ipv4-unicast ID Interface State Pri Dead 100.1.2.1 fe-0/0/2.1 Full 128 33 Neighbor-address fe80::217:cb00:c97c:8c03