basic p2p ospf on area 0
Global settings for ospf
Router-ID
set routing-options router-id [Link]
SPF Reference-Bandwidth
set protocols ospf reference-bandwidth 1000g
OSPF Interface set
set protocols ospf area [Link] interface lo0.0 passive
set protocols ospf area [Link] interface ge-0/0/0.11 interface-type p2p
set protocols ospf area [Link] interface ge-0/0/0.11 metric 10
tarikul@vMX_1_AS6566# show | compare
[edit routing-options]
+ router-id [Link];
[edit]
+ protocols {
+ ospf {
+ area [Link] {
+ interface lo0.0 {
+ passive;
+ }
+ interface ge-0/0/0.11 {
+ interface-type p2p;
+ metric 10;
+ }
+ }
+ }
+ }
[edit]
Note: router-id [Link] এইখানে global id | BGP তেও same router-id use হবে
[edit]
tarikul@vMX_1_AS6566# run show ospf interface
Interface State Area DR ID BDR ID
Nbrs
ge-0/0/0.11 PtToPt [Link] [Link] [Link]
1
lo0.0 DRother [Link] [Link] [Link]
0
[edit]
tarikul@vMX_1_AS6566# run show ospf neighbor
Address Interface State ID Pri Dead
[Link] ge-0/0/0.11 Full [Link] 1 35
[edit]
With OSPF password
set protocols ospf area [Link] interface lo0.0 passive
set protocols ospf area [Link] interface ge-0/0/0.11 interface-type p2p
set protocols ospf area [Link] interface ge-0/0/0.11 metric 10
set protocols ospf area [Link] interface ge-0/0/0.11 authentication md5 1 key
"$9$kq5Fn6A01h9AKMLX-dqmP"
## set protocols ospf area [Link] interface ge-0/0/0.11 authentication md5 1
key pass123
Others side config like below
OSPF in logical-System
set logical-systems LS-RT1 interfaces ge-0/0/0 unit 12 description LS-RT_p2p
set logical-systems LS-RT1 interfaces ge-0/0/0 unit 12 vlan-id 12
set logical-systems LS-RT1 interfaces ge-0/0/0 unit 12 family inet address
[Link]/30
set logical-systems LS-RT1 protocols ospf area [Link] interface ge-0/0/0.12
interface-type p2p
set logical-systems LS-RT1 protocols ospf area [Link] interface ge-0/0/0.12
metric 10
Output
tarikul@vMX_1_AS6566> show ospf interface logical-system LS-RT1
Interface State Area DR ID BDR ID
Nbrs
ge-0/0/0.12 PtToPt [Link] [Link] [Link]
1
tarikul@vMX_1_AS6566> show ospf neighbor logical-system LS-RT1
Address Interface State ID Pri Dead
[Link] ge-0/0/0.12 Full [Link] 1 36