Hello,
@Asoltanian wrote:
I want to have two separate OSPF domain but I want to maintain the LSP unbroken.
For this to happen, You need to use "instance-type no-forwarding" .
I labbed up a simple topology for You:
R5[ge-0/0/9.0]-------------[ge-0/0/9.0]R3[ge-1/0/3.0]---------[ge-0/0/3.0]R6
lo0.0 198.51.100.5 lo0.0 198.51.100.3 lo0.0 198.51.100.6
R5 config:
set protocols ldp track-igp-metric
set protocols ldp interface ge-0/0/9.0
set protocols ospf area 0.0.0.0 interface ge-0/0/9.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set routing-options router-id 198.51.100.5
set interfaces ge-0/0/9 unit 0 family inet address 169.254.35.1/31
set interfaces ge-0/0/9 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 198.51.100.5/32
R3 config:
set policy-options policy-statement GRT->NFI term 1 from instance master
set policy-options policy-statement GRT->NFI term 1 from protocol ospf
set policy-options policy-statement GRT->NFI term 1 then accept
set policy-options policy-statement GRT->NFI then reject
set policy-options policy-statement NFI->GRT term 1 from instance OSPF-BLAH
set policy-options policy-statement NFI->GRT term 1 from protocol ospf
set policy-options policy-statement NFI->GRT term 1 then accept
set policy-options policy-statement PL-OSPF-EX term 1 from protocol static
set policy-options policy-statement PL-OSPF-EX term 1 from route-filter 198.51.100.3/32 exact
set policy-options policy-statement PL-OSPF-EX term 1 then accept
set policy-options policy-statement PL-OSPF-EX term 2 from protocol ospf
set policy-options policy-statement PL-OSPF-EX term 2 then accept
set routing-instances OSPF-BLAH routing-options static route 198.51.100.3/32 receive
set routing-instances OSPF-BLAH routing-options router-id 198.51.100.3
set routing-instances OSPF-BLAH routing-options instance-import GRT->NFI
set routing-instances OSPF-BLAH protocols ospf area 0.0.0.0 interface ge-1/0/3.0
set routing-instances OSPF-BLAH protocols ospf export PL-OSPF-EX
set routing-instances OSPF-BLAH instance-type no-forwarding
set routing-instances OSPF-BLAH interface ge-1/0/3.0
set routing-options instance-import NFI->GRT
set routing-options router-id 198.51.100.3
set protocols ldp track-igp-metric
set protocols ldp interface ge-0/0/9.0
set protocols ldp interface ge-1/0/3.0
set protocols ospf area 0.0.0.0 interface ge-0/0/9.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf export PL-OSPF-EX
set interfaces ge-0/0/9 unit 0 family inet address 169.254.35.0/31
set interfaces ge-0/0/9 unit 0 family mpls
set interfaces ge-1/0/3 unit 0 family inet address 169.254.0.32/24
set interfaces ge-1/0/3 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 198.51.100.3/32
R6 config:
set protocols ldp track-igp-metric
set protocols ldp explicit-null
set protocols ldp interface ge-0/0/3.0
set protocols ospf area 0.0.0.0 interface ge-0/0/3.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set routing-options router-id 198.51.100.6
set interfaces ge-0/0/3 unit 0 family inet address 169.254.0.23/24
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 198.51.100.6/32
Verification:
R5:
regress@R5> show ospf neighbor
Address Interface State ID Pri Dead
169.254.35.0 ge-0/0/9.0 Full 198.51.100.3 128 33
regress@R5> show ldp session
Address State Connection Hold time Adv. Mode
198.51.100.3 Operational Open 23 DU
regress@R5> show route table inet.3 protocol ldp
inet.3: 17 destinations, 17 routes (17 active, 0 holddown, 0 hidden)
Restart Complete
+ = Active Route, - = Last Active, * = Both
198.51.100.3/32 *[LDP/9] 00:31:48, metric 1
> to 169.254.35.0 via ge-0/0/9.0
198.51.100.6/32 *[LDP/9] 00:19:01, metric 1
> to 169.254.35.0 via ge-0/0/9.0, Push 44
R3:
regress@R3> show ospf neighbor instance all
Instance: master
Address Interface State ID Pri Dead
169.254.35.1 ge-0/0/9.0 Full 198.51.100.5 128 38
Instance: OSPF-BLAH
Address Interface State ID Pri Dead
169.254.0.23 ge-1/0/3.0 Full 198.51.100.6 128 31
regress@R3> show ldp session
Address State Connection Hold time Adv. Mode
198.51.100.5 Operational Open 28 DU
198.51.100.6 Operational Open 28 DU
regress@R3> show route table inet.3 protocol ldp
inet.3: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
198.51.100.5/32 *[LDP/9] 00:33:29, metric 1
> to 169.254.35.1 via ge-0/0/9.0
198.51.100.6/32 *[LDP/9] 00:24:18, metric 1
> to 169.254.0.23 via ge-1/0/3.0, Push 0
R6:
regress@R6> show ospf neighbor
Address Interface State ID Pri Dead
169.254.0.32 ge-0/0/3.0 Full 198.51.100.3 128 38
regress@R6> show ldp session
Address State Connection Hold time Adv. Mode
198.51.100.3 Operational Open 25 DU
regress@R6> show route table inet.3 protocol ldp
inet.3: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
198.51.100.3/32 *[LDP/9] 00:26:01, metric 0
> to 169.254.0.32 via ge-0/0/3.0
198.51.100.5/32 *[LDP/9] 00:24:44, metric 1
> to 169.254.0.32 via ge-0/0/3.0, Push 43
HTH
Thx
Alex