OSPF in Junos
lab@vSRX> show configuration interfaces ge-0/0/2
unit 0 {
family inet {
address 192.168.11.2/24;
}
}
lab@vSRX> show configuration protocols ospf
area 0.0.0.0 {
interface ge-0/0/2.0;
}
lab@vSRX>
lab@vSRX> show ospf interface
Interface State Area DR ID BDR ID Nbrs
ge-0/0/2.0 BDR 0.0.0.0 192.168.1.1 192.168.31.1 1
lab@vSRX>
lab@vSRX> show ospf neighbor
Address Interface State ID Pri Dead
192.168.11.1 ge-0/0/2.0 Full 192.168.1.1 128 39
lab@vSRX>
lab@vSRX> show route protocol ospf
inet.0: 24 destinations, 38 routes (24 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
192.168.1.1/32 *[OSPF/10] 01:58:32, metric 1
> to 192.168.11.1 via ge-0/0/2.0
224.0.0.5/32 *[OSPF/10] 01:58:42, metric 1
MultiRecv
inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
lab@vSRX>