Published 6月 15, 2018 by with 0 comment

JNCIP-SP Lab: Configuring OSPF Sham Links for MPLS VPN



This lab will show sham link configuration for MPLS VPN
IGP is IS-IS. R1 and R3 are PE. R2 is a BGP RR and P.
RSVP as the signaling protocol.
Two LSPs (R1_TO_R3 and R3_TO_R1) are between R1 and R3 via R2.
R1-R4, R3-R5 and R4-R5 are runing OSPF area 0.
By default, R4 lo0 will go to R5 lo0 via local link(R4 > R5).
Use sham link, R4 lo0 go to R5 lo0 via MPLS core (R4 > R1 > R2 > R3 > R5)

For VMware setting:


1. Setting interface IP address:
set logical-systems R1 interfaces ge-0/0/1 unit 12 description TO_R2
set logical-systems R1 interfaces ge-0/0/1 unit 12 vlan-id 12
set logical-systems R1 interfaces ge-0/0/1 unit 12 family inet address 10.200.12.1/24
set logical-systems R1 interfaces ge-0/0/2 unit 14 description TO_R4
set logical-systems R1 interfaces ge-0/0/2 unit 14 vlan-id 14
set logical-systems R1 interfaces ge-0/0/2 unit 14 family inet address 172.16.14.1/24
set logical-systems R1 interfaces lo0 unit 1 family inet address 10.200.1.1/32

set logical-systems R2 interfaces ge-0/0/1 unit 23 description TO_R3
set logical-systems R2 interfaces ge-0/0/1 unit 23 vlan-id 23
set logical-systems R2 interfaces ge-0/0/1 unit 23 family inet address 10.200.23.2/24
set logical-systems R2 interfaces ge-0/0/2 unit 12 description TO_R1
set logical-systems R2 interfaces ge-0/0/2 unit 12 vlan-id 12
set logical-systems R2 interfaces ge-0/0/2 unit 12 family inet address 10.200.12.2/24
set logical-systems R2 interfaces lo0 unit 2 family inet address 10.200.1.2/32

set logical-systems R3 interfaces ge-0/0/1 unit 35 description TO_R5
set logical-systems R3 interfaces ge-0/0/1 unit 35 vlan-id 35
set logical-systems R3 interfaces ge-0/0/1 unit 35 family inet address 172.16.35.3/24
set logical-systems R3 interfaces ge-0/0/2 unit 23 description TO_R2
set logical-systems R3 interfaces ge-0/0/2 unit 23 vlan-id 23
set logical-systems R3 interfaces ge-0/0/2 unit 23 family inet address 10.200.23.3/24
set logical-systems R3 interfaces lo0 unit 3 family inet address 10.200.1.3/32

set logical-systems R4 interfaces ge-0/0/1 unit 14 description TO_R1
set logical-systems R4 interfaces ge-0/0/1 unit 14 vlan-id 14
set logical-systems R4 interfaces ge-0/0/1 unit 14 family inet address 172.16.14.4/24
set logical-systems R4 interfaces ge-0/0/2 unit 45 description TO_R5
set logical-systems R4 interfaces ge-0/0/2 unit 45 vlan-id 45
set logical-systems R4 interfaces ge-0/0/2 unit 45 family inet address 172.16.45.4/24
set logical-systems R4 interfaces lo0 unit 4 family inet address 172.16.4.4/32

set logical-systems R5 interfaces ge-0/0/1 unit 45 description TO_R4
set logical-systems R5 interfaces ge-0/0/1 unit 45 vlan-id 45
set logical-systems R5 interfaces ge-0/0/1 unit 45 family inet address 172.16.45.5/24
set logical-systems R5 interfaces ge-0/0/2 unit 35 description TO_R3
set logical-systems R5 interfaces ge-0/0/2 unit 35 vlan-id 35
set logical-systems R5 interfaces ge-0/0/2 unit 35 family inet address 172.16.35.5/24
set logical-systems R5 interfaces lo0 unit 5 family inet address 172.16.5.5/32

set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/2 vlan-tagging


2. IS-IS setting:
set logical-systems R1 interfaces ge-0/0/1 unit 12 family iso
set logical-systems R1 interfaces lo0 unit 1 family iso address 49.0001.0000.0000.0001.00
set logical-systems R1 protocols isis level 1 disable
set logical-systems R1 protocols isis interface ge-0/0/1.12
set logical-systems R1 protocols isis interface lo0.1

set logical-systems R2 interfaces ge-0/0/1 unit 23 family iso
set logical-systems R2 interfaces ge-0/0/2 unit 12 family iso
set logical-systems R2 interfaces lo0 unit 2 family iso address 49.0002.0000.0000.0002.00
set logical-systems R2 protocols isis level 1 disable
set logical-systems R2 protocols isis interface ge-0/0/1.23
set logical-systems R2 protocols isis interface ge-0/0/2.12
set logical-systems R2 protocols isis interface lo0.2

set logical-systems R3 interfaces ge-0/0/2 unit 23 family iso
set logical-systems R3 interfaces lo0 unit 3 family iso address 49.0003.0000.0000.0003.00
set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface ge-0/0/2.23
set logical-systems R3 protocols isis interface lo0.3

set logical-systems R4 protocols ospf area 0.0.0.0 interface all
set logical-systems R4 protocols ospf area 0.0.0.0 interface lo0.4 passive
set logical-systems R4 protocols ospf area 0.0.0.0 interface ge-0/0/2.45 metric 100

set logical-systems R5 protocols ospf area 0.0.0.0 interface all
set logical-systems R5 protocols ospf area 0.0.0.0 interface lo0.5 passive
set logical-systems R5 protocols ospf area 0.0.0.0 interface ge-0/0/1.45 metric 100


Check:
[edit]
root@vMX-1# run show ospf neighbor logical-system R4
Address          Interface              State     ID               Pri  Dead
172.16.45.5      ge-0/0/2.45            Full      172.16.5.5       128    34

[edit]
root@vMX-1#


3. BGP Setting:
R1,R2 and R3 are iBGP peering (AS 65001).
R2 is a RR.
set logical-systems R1 protocols bgp group TO_RR type internal
set logical-systems R1 protocols bgp group TO_RR local-address 10.200.1.1
set logical-systems R1 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R1 routing-options autonomous-system 65001

set logical-systems R2 protocols bgp group RR type internal
set logical-systems R2 protocols bgp group RR local-address 10.200.1.2
set logical-systems R2 protocols bgp group RR cluster 10.200.1.2
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.1
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.3
set logical-systems R2 routing-options autonomous-system 65001

set logical-systems R3 protocols bgp group TO_RR type internal
set logical-systems R3 protocols bgp group TO_RR local-address 10.200.1.3
set logical-systems R3 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R3 routing-options autonomous-system 65001


Check:
[edit]
root@vMX-1# run show bgp summary logical-system R2   
Groups: 1 Peers: 2 Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
inet.0              
                       0          0          0          0          0          0
Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
10.200.1.1            65001          3          4       0       0          44 0/0/0/0              0/0/0/0
10.200.1.3            65001          4          3       0       0          44 0/0/0/0              0/0/0/0

[edit]
root@vMX-1#


4. MPLS and LSP setting
set logical-systems R1 interfaces ge-0/0/1 unit 12 family mpls
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 to 10.200.1.3
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 primary VIA_R2
set logical-systems R1 protocols mpls path VIA_R2 10.200.12.2 strict
set logical-systems R1 protocols mpls path VIA_R2 10.200.1.3 loose
set logical-systems R1 protocols mpls interface ge-0/0/1.12
set logical-systems R1 protocols rsvp interface ge-0/0/1.12

set logical-systems R2 protocols rsvp interface ge-0/0/1.23
set logical-systems R2 protocols rsvp interface ge-0/0/2.12
set logical-systems R2 protocols mpls interface ge-0/0/1.23
set logical-systems R2 protocols mpls interface ge-0/0/2.12

set logical-systems R3 interfaces ge-0/0/2 unit 23 family mpls
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 to 10.200.1.1
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 primary VIA_R2
set logical-systems R3 protocols mpls path VIA_R2 10.200.23.2 strict
set logical-systems R3 protocols mpls path VIA_R2 10.200.1.1 loose
set logical-systems R3 protocols mpls interface ge-0/0/2.23
set logical-systems R3 protocols rsvp interface ge-0/0/2.23


Check:
[edit]
root@vMX-1# run show mpls lsp logical-system R1
Ingress LSP: 1 sessions
To              From            State Rt P     ActivePath       LSPname
10.200.1.3      10.200.1.1      Up     0 *     VIA_R2           R1_TO_R3
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname
10.200.1.1      10.200.1.3      Up       0  1 FF       3        - R3_TO_R1
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show mpls lsp logical-system R3   
Ingress LSP: 1 sessions
To              From            State Rt P     ActivePath       LSPname
10.200.1.1      10.200.1.3      Up     0 *     VIA_R2           R3_TO_R1
Total 1 displayed, Up 1, Down 0

Egress LSP: 1 sessions
To              From            State   Rt Style Labelin Labelout LSPname
10.200.1.3      10.200.1.1      Up       0  1 FF       3        - R1_TO_R3
Total 1 displayed, Up 1, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

[edit]
root@vMX-1#


4. Configuring MPLS VPN on the core routers
set logical-systems R1 routing-instances VPN_A_R4 instance-type vrf
set logical-systems R1 routing-instances VPN_A_R4 interface ge-0/0/2.14
set logical-systems R1 routing-instances VPN_A_R4 route-distinguisher 10.200.1.1:100
set logical-systems R1 routing-instances VPN_A_R4 vrf-target target:65001L:100
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf area 0.0.0.0 interface ge-0/0/2.14

set logical-systems R3 routing-instances VPN_A_R5 instance-type vrf
set logical-systems R3 routing-instances VPN_A_R5 interface ge-0/0/1.35
set logical-systems R3 routing-instances VPN_A_R5 route-distinguisher 10.200.1.3:100
set logical-systems R3 routing-instances VPN_A_R5 vrf-target target:65001L:100
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf area 0.0.0.0 interface ge-0/0/1.35

set logical-systems R1 protocols bgp group TO_RR family inet-vpn unicast
set logical-systems R2 protocols bgp group RR family inet-vpn unicast
set logical-systems R3 protocols bgp group TO_RR family inet-vpn unicast

set logical-systems R2 routing-options resolution rib bgp.l3vpn.0 resolution-ribs inet.0

set logical-systems R1 policy-options policy-statement BGP>OSPF_R4 term 1 from protocol bgp
set logical-systems R1 policy-options policy-statement BGP>OSPF_R4 term 1 then accept
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf export BGP>OSPF_R4

set logical-systems R3 policy-options policy-statement BGP>OSPF_R5 term 1 from protocol bgp
set logical-systems R3 policy-options policy-statement BGP>OSPF_R5 term 1 then accept
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf export BGP>OSPF_R5


Check:
[edit]
root@vMX-1# run show route logical-system R1

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.1/32      *[Direct/0] 01:33:24
                    > via lo0.1
10.200.1.2/32      *[IS-IS/18] 01:22:02, metric 10
                    > to 10.200.12.2 via ge-0/0/1.12
10.200.1.3/32      *[IS-IS/18] 01:22:18, metric 20
                    > to 10.200.12.2 via ge-0/0/1.12
10.200.12.0/24     *[Direct/0] 01:33:25
                    > via ge-0/0/1.12
10.200.12.1/32     *[Local/0] 01:33:25
                      Local via ge-0/0/1.12
10.200.23.0/24     *[IS-IS/18] 01:22:27, metric 20
                    > to 10.200.12.2 via ge-0/0/1.12

inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.3/32      *[RSVP/7/1] 01:08:09, metric 20
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
                                       
VPN_A_R4.inet.0: 7 destinations, 12 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.4.4/32      *[OSPF/10] 00:03:16, metric 1
                    > to 172.16.14.4 via ge-0/0/2.14
                    [BGP/170] 00:01:37, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
172.16.5.5/32      *[OSPF/10] 00:01:37, metric 101
                    > to 172.16.14.4 via ge-0/0/2.14
                    [BGP/170] 00:03:16, MED 1, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
172.16.14.0/24     *[Direct/0] 00:50:16
                    > via ge-0/0/2.14
                    [BGP/170] 00:01:37, MED 102, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
172.16.14.1/32     *[Local/0] 00:50:16
                      Local via ge-0/0/2.14
172.16.35.0/24     *[OSPF/10] 00:01:37, metric 102
                    > to 172.16.14.4 via ge-0/0/2.14
                    [BGP/170] 00:03:16, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
172.16.45.0/24     *[OSPF/10] 00:01:37, metric 101
                    > to 172.16.14.4 via ge-0/0/2.14
                    [BGP/170] 00:01:37, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
224.0.0.5/32       *[OSPF/10] 00:50:16, metric 1
                      MultiRecv

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

49.0001.0000.0000.0001/72               
                   *[Direct/0] 01:23:14
                    > via lo0.1
                                       
mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 01:08:39, metric 1
                      Receive
1                  *[MPLS/0] 01:08:39, metric 1
                      Receive
2                  *[MPLS/0] 01:08:39, metric 1
                      Receive
13                 *[MPLS/0] 01:08:39, metric 1
                      Receive
299872             *[VPN/170] 00:03:16
                    > to 172.16.14.4 via ge-0/0/2.14, Pop     

bgp.l3vpn.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.3:100:172.16.4.4/32               
                   *[BGP/170] 00:01:37, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
10.200.1.3:100:172.16.5.5/32               
                   *[BGP/170] 00:03:16, MED 1, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
10.200.1.3:100:172.16.14.0/24               
                   *[BGP/170] 00:01:37, MED 102, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
10.200.1.3:100:172.16.35.0/24               
                   *[BGP/170] 00:03:16, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3
10.200.1.3:100:172.16.45.0/24               
                   *[BGP/170] 00:01:37, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.12.2 via ge-0/0/1.12, label-switched-path R1_TO_R3

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R2   

inet.0: 7 destinations, 7 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.1/32      *[IS-IS/18] 01:22:31, metric 10
                    > to 10.200.12.1 via ge-0/0/2.12
10.200.1.2/32      *[Direct/0] 01:33:28
                    > via lo0.2
10.200.1.3/32      *[IS-IS/18] 01:22:38, metric 10
                    > to 10.200.23.3 via ge-0/0/1.23
10.200.12.0/24     *[Direct/0] 01:33:29
                    > via ge-0/0/2.12
10.200.12.2/32     *[Local/0] 01:33:29
                      Local via ge-0/0/2.12
10.200.23.0/24     *[Direct/0] 01:33:29
                    > via ge-0/0/1.23
10.200.23.2/32     *[Local/0] 01:33:29
                      Local via ge-0/0/1.23

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

49.0002.0000.0000.0002/72               
                   *[Direct/0] 01:23:18
                    > via lo0.2

mpls.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 01:08:42, metric 1
                      Receive
1                  *[MPLS/0] 01:08:42, metric 1
                      Receive
2                  *[MPLS/0] 01:08:42, metric 1
                      Receive
13                 *[MPLS/0] 01:08:42, metric 1
                      Receive
299808             *[RSVP/7/1] 01:08:13, metric 1
                    > to 10.200.12.1 via ge-0/0/2.12, label-switched-path R3_TO_R1
299808(S=0)        *[RSVP/7/1] 01:08:13, metric 1
                    > to 10.200.12.1 via ge-0/0/2.12, label-switched-path R3_TO_R1
299824             *[RSVP/7/1] 01:08:13, metric 1
                    > to 10.200.23.3 via ge-0/0/1.23, label-switched-path R1_TO_R3
299824(S=0)        *[RSVP/7/1] 01:08:13, metric 1
                    > to 10.200.23.3 via ge-0/0/1.23, label-switched-path R1_TO_R3

bgp.l3vpn.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.1:100:172.16.4.4/32               
                   *[BGP/170] 00:03:20, MED 1, localpref 100, from 10.200.1.1
                      AS path: I, validation-state: unverified
                    > to 10.200.12.1 via ge-0/0/2.12, Push 299872
10.200.1.1:100:172.16.5.5/32               
                   *[BGP/170] 00:01:41, MED 101, localpref 100, from 10.200.1.1
                      AS path: I, validation-state: unverified
                    > to 10.200.12.1 via ge-0/0/2.12, Push 299872
10.200.1.1:100:172.16.14.0/24               
                   *[BGP/170] 00:03:20, localpref 100, from 10.200.1.1
                      AS path: I, validation-state: unverified
                    > to 10.200.12.1 via ge-0/0/2.12, Push 299872
10.200.1.1:100:172.16.35.0/24               
                   *[BGP/170] 00:01:41, MED 102, localpref 100, from 10.200.1.1
                      AS path: I, validation-state: unverified
                    > to 10.200.12.1 via ge-0/0/2.12, Push 299872
10.200.1.1:100:172.16.45.0/24               
                   *[BGP/170] 00:01:41, MED 101, localpref 100, from 10.200.1.1
                      AS path: I, validation-state: unverified
                    > to 10.200.12.1 via ge-0/0/2.12, Push 299872
10.200.1.3:100:172.16.4.4/32               
                   *[BGP/170] 00:01:41, MED 101, localpref 100, from 10.200.1.3
                      AS path: I, validation-state: unverified
                    > to 10.200.23.3 via ge-0/0/1.23, Push 299856
10.200.1.3:100:172.16.5.5/32               
                   *[BGP/170] 00:03:20, MED 1, localpref 100, from 10.200.1.3
                      AS path: I, validation-state: unverified
                    > to 10.200.23.3 via ge-0/0/1.23, Push 299856
10.200.1.3:100:172.16.14.0/24               
                   *[BGP/170] 00:01:41, MED 102, localpref 100, from 10.200.1.3
                      AS path: I, validation-state: unverified
                    > to 10.200.23.3 via ge-0/0/1.23, Push 299856
10.200.1.3:100:172.16.35.0/24               
                   *[BGP/170] 00:03:20, localpref 100, from 10.200.1.3
                      AS path: I, validation-state: unverified
                    > to 10.200.23.3 via ge-0/0/1.23, Push 299856
10.200.1.3:100:172.16.45.0/24               
                   *[BGP/170] 00:01:41, MED 101, localpref 100, from 10.200.1.3
                      AS path: I, validation-state: unverified
                    > to 10.200.23.3 via ge-0/0/1.23, Push 299856

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R3   

inet.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.1/32      *[IS-IS/18] 01:22:35, metric 20
                    > to 10.200.23.2 via ge-0/0/2.23
10.200.1.2/32      *[IS-IS/18] 01:22:10, metric 10
                    > to 10.200.23.2 via ge-0/0/2.23
10.200.1.3/32      *[Direct/0] 01:33:32
                    > via lo0.3
10.200.12.0/24     *[IS-IS/18] 01:23:06, metric 20
                    > to 10.200.23.2 via ge-0/0/2.23
10.200.23.0/24     *[Direct/0] 01:33:33
                    > via ge-0/0/2.23
10.200.23.3/32     *[Local/0] 01:33:33
                      Local via ge-0/0/2.23

inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.1/32      *[RSVP/7/1] 01:08:17, metric 20
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
                                       
VPN_A_R5.inet.0: 7 destinations, 12 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.4.4/32      *[OSPF/10] 00:01:45, metric 101
                    > to 172.16.35.5 via ge-0/0/1.35
                    [BGP/170] 00:03:24, MED 1, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
172.16.5.5/32      *[OSPF/10] 00:03:24, metric 1
                    > to 172.16.35.5 via ge-0/0/1.35
                    [BGP/170] 00:01:45, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
172.16.14.0/24     *[OSPF/10] 00:01:45, metric 102
                    > to 172.16.35.5 via ge-0/0/1.35
                    [BGP/170] 00:03:24, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
172.16.35.0/24     *[Direct/0] 00:50:24
                    > via ge-0/0/1.35  
                    [BGP/170] 00:01:45, MED 102, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
172.16.35.3/32     *[Local/0] 00:50:24
                      Local via ge-0/0/1.35
172.16.45.0/24     *[OSPF/10] 00:01:45, metric 101
                    > to 172.16.35.5 via ge-0/0/1.35
                    [BGP/170] 00:01:45, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
224.0.0.5/32       *[OSPF/10] 00:50:24, metric 1
                      MultiRecv

iso.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

49.0003.0000.0000.0003/72               
                   *[Direct/0] 01:23:22
                    > via lo0.3
                                       
mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0                  *[MPLS/0] 01:08:46, metric 1
                      Receive
1                  *[MPLS/0] 01:08:46, metric 1
                      Receive
2                  *[MPLS/0] 01:08:46, metric 1
                      Receive
13                 *[MPLS/0] 01:08:46, metric 1
                      Receive
299856             *[VPN/170] 00:03:24
                    > to 172.16.35.5 via ge-0/0/1.35, Pop     

bgp.l3vpn.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.200.1.1:100:172.16.4.4/32               
                   *[BGP/170] 00:03:24, MED 1, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
10.200.1.1:100:172.16.5.5/32               
                   *[BGP/170] 00:01:45, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
10.200.1.1:100:172.16.14.0/24               
                   *[BGP/170] 00:03:24, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
10.200.1.1:100:172.16.35.0/24               
                   *[BGP/170] 00:01:45, MED 102, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1
10.200.1.1:100:172.16.45.0/24               
                   *[BGP/170] 00:01:45, MED 101, localpref 100, from 10.200.1.2
                      AS path: I, validation-state: unverified
                    > to 10.200.23.2 via ge-0/0/2.23, label-switched-path R3_TO_R1

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R4   

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.4.4/32      *[Direct/0] 01:29:16
                    > via lo0.4
172.16.5.5/32      *[OSPF/10] 00:01:48, metric 100
                    > to 172.16.45.5 via ge-0/0/2.45
172.16.14.0/24     *[Direct/0] 01:30:13
                    > via ge-0/0/1.14
172.16.14.4/32     *[Local/0] 01:30:13
                      Local via ge-0/0/1.14
172.16.35.0/24     *[OSPF/10] 00:01:48, metric 101
                    > to 172.16.45.5 via ge-0/0/2.45
172.16.45.0/24     *[Direct/0] 00:17:10
                    > via ge-0/0/2.45
172.16.45.4/32     *[Local/0] 00:17:10
                      Local via ge-0/0/2.45
224.0.0.5/32       *[OSPF/10] 01:19:55, metric 1
                      MultiRecv

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R5   

inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

172.16.4.4/32      *[OSPF/10] 00:01:53, metric 100
                    > to 172.16.45.4 via ge-0/0/1.45
172.16.5.5/32      *[Direct/0] 01:29:21
                    > via lo0.5
172.16.14.0/24     *[OSPF/10] 00:01:53, metric 101
                    > to 172.16.45.4 via ge-0/0/1.45
172.16.35.0/24     *[Direct/0] 01:30:19
                    > via ge-0/0/2.35
172.16.35.5/32     *[Local/0] 01:30:19
                      Local via ge-0/0/2.35
172.16.45.0/24     *[Direct/0] 01:30:19
                    > via ge-0/0/1.45
172.16.45.5/32     *[Local/0] 01:30:19
                      Local via ge-0/0/1.45
224.0.0.5/32       *[OSPF/10] 01:20:00, metric 1
                      MultiRecv

[edit]
root@vMX-1#

[edit]
root@vMX-1# run traceroute 172.16.5.5 source 172.16.4.4 logical-system R4
traceroute to 172.16.5.5 (172.16.5.5) from 172.16.4.4, 30 hops max, 40 byte packets
 1  172.16.5.5 (172.16.5.5)  1.691 ms  2.013 ms  1.318 ms

[edit]
root@vMX-1#


6. OSPF sham link setting
A. Configure an extra loopback interface on the PE (R1 & R3) routers
B. Configure the VRF routing instance that supports Layer 3 VPNs on the PE routers, and associate the sham link with an existing OSPF area.
C. In step 5, you see R4 lo0 to R5 lo0 via local link (R4 > R5), After shaml link, R4 lo0 to R5 lo0 will via core routers (R4 > R1 > R2 > R3 > R5).

set logical-systems R1 interfaces lo0 unit 13 family inet address 1.1.1.1/32
set logical-systems R1 routing-instances VPN_A_R4 interface lo0.13
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf sham-link local 1.1.1.1
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf area 0.0.0.0 sham-link-remote 3.3.3.3 metric 10
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf area 0.0.0.0 interface lo0.13

set logical-systems R3 interfaces lo0 unit 31 family inet address 3.3.3.3/32
set logical-systems R3 routing-instances VPN_A_R5 interface lo0.31
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf sham-link local 3.3.3.3
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf area 0.0.0.0 sham-link-remote 1.1.1.1 metric 10
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf area 0.0.0.0 interface lo0.31


Check:
[edit]
root@vMX-1# run show ospf interface instance VPN_A_R4 logical-system R1   
Interface           State   Area            DR ID           BDR ID          Nbrs
ge-0/0/2.14         BDR     0.0.0.0         172.16.4.4      1.1.1.1            1
lo0.13              DR      0.0.0.0         1.1.1.1         0.0.0.0            0
shamlink.0          PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf interface instance VPN_A_R5 logical-system R3   
Interface           State   Area            DR ID           BDR ID          Nbrs
ge-0/0/1.35         BDR     0.0.0.0         172.16.5.5      3.3.3.3            1
lo0.31              DR      0.0.0.0         3.3.3.3         0.0.0.0            0
shamlink.0          PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf interface shamlink.0 detail instance VPN_A_R4 logical-system R1  
Interface           State   Area            DR ID           BDR ID          Nbrs
shamlink.0          PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 0, Cost: 10
  Local: 1.1.1.1, Remote: 3.3.3.3
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None, No eligible backup
  Topology default (ID 0) -> Cost: 10

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf interface shamlink.0 detail instance VPN_A_R5 logical-system R3  
Interface           State   Area            DR ID           BDR ID          Nbrs
shamlink.0          PtToPt  0.0.0.0         0.0.0.0         0.0.0.0            1
  Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 0, Cost: 10
  Local: 3.3.3.3, Remote: 1.1.1.1
  Adj count: 1
  Hello: 10, Dead: 40, ReXmit: 5, Not Stub
  Auth type: None
  Protection type: None, No eligible backup
  Topology default (ID 0) -> Cost: 10

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf neighbor instance VPN_A_R4 logical-system R1   
Address          Interface              State     ID               Pri  Dead
172.16.14.4      ge-0/0/2.14            Full      172.16.4.4       128    33
3.3.3.3          shamlink.0             Full      3.3.3.3            0    32

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf neighbor instance VPN_A_R5 logical-system R3   
Address          Interface              State     ID               Pri  Dead
172.16.35.5      ge-0/0/1.35            Full      172.16.5.5       128    31
1.1.1.1          shamlink.0             Full      1.1.1.1            0    39

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf database instance VPN_A_R4 logical-system R1

    OSPF database, Area 0.0.0.0
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router  *1.1.1.1          1.1.1.1          0x80000008   813  0x22 0x6c74  48
Router   3.3.3.3          3.3.3.3          0x80000008   814  0x22 0x2586  48
Router   172.16.4.4       172.16.4.4       0x80000015   854  0x22 0xcd05  60
Router   172.16.5.5       172.16.5.5       0x80000015   855  0x22 0x5748  60
Router   172.16.14.1      172.16.14.1      0x80000006  1144  0x22 0x7883  36
Router   172.16.35.3      172.16.35.3      0x80000006  1145  0x22 0xdcc2  36
Network  172.16.14.4      172.16.4.4       0x80000001   854  0x22 0x4895  32
Network  172.16.35.5      172.16.5.5       0x80000001   855  0x22 0xc0fa  32
Network  172.16.45.5      172.16.5.5       0x80000007   556  0x22 0x48aa  32
    OSPF AS SCOPE link state database
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Extern   1.1.1.1          3.3.3.3          0x80000001  1608  0xa2 0x7deb  36
Extern  *3.3.3.3          1.1.1.1          0x80000001   853  0xa2 0x5d0c  36

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show ospf database instance VPN_A_R5 logical-system R3   

    OSPF database, Area 0.0.0.0
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Router   1.1.1.1          1.1.1.1          0x80000008   847  0x22 0x6c74  48
Router  *3.3.3.3          3.3.3.3          0x80000008   846  0x22 0x2586  48
Router   172.16.4.4       172.16.4.4       0x80000015   888  0x22 0xcd05  60
Router   172.16.5.5       172.16.5.5       0x80000015   887  0x22 0x5748  60
Router   172.16.14.1      172.16.14.1      0x80000006  1178  0x22 0x7883  36
Router   172.16.35.3      172.16.35.3      0x80000006  1177  0x22 0xdcc2  36
Network  172.16.14.4      172.16.4.4       0x80000001   888  0x22 0x4895  32
Network  172.16.35.5      172.16.5.5       0x80000001   887  0x22 0xc0fa  32
Network  172.16.45.5      172.16.5.5       0x80000007   588  0x22 0x48aa  32
    OSPF AS SCOPE link state database
 Type       ID               Adv Rtr           Seq      Age  Opt  Cksum  Len
Extern  *1.1.1.1          3.3.3.3          0x80000001   886  0xa2 0x7deb  36
Extern   3.3.3.3          1.1.1.1          0x80000001  1641  0xa2 0x5d0c  36

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R4

inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[OSPF/150] 00:12:43, metric 0, tag 3489725929
                    > to 172.16.14.1 via ge-0/0/1.14
3.3.3.3/32         *[OSPF/150] 00:12:48, metric 0, tag 3489725929
                    > to 172.16.14.1 via ge-0/0/1.14
172.16.4.4/32      *[Direct/0] 01:43:25
                    > via lo0.4
172.16.5.5/32      *[OSPF/10] 00:12:43, metric 12
                    > to 172.16.14.1 via ge-0/0/1.14
172.16.14.0/24     *[Direct/0] 01:44:22
                    > via ge-0/0/1.14
172.16.14.4/32     *[Local/0] 01:44:22
                      Local via ge-0/0/1.14
172.16.35.0/24     *[OSPF/10] 00:12:43, metric 12
                    > to 172.16.14.1 via ge-0/0/1.14
172.16.45.0/24     *[Direct/0] 00:31:19
                    > via ge-0/0/2.45
172.16.45.4/32     *[Local/0] 00:31:19
                      Local via ge-0/0/2.45
224.0.0.5/32       *[OSPF/10] 01:34:04, metric 1
                      MultiRecv        

[edit]
root@vMX-1#

[edit]
root@vMX-1# run show route logical-system R5   

inet.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

1.1.1.1/32         *[OSPF/150] 00:12:50, metric 0, tag 3489725929
                    > to 172.16.35.3 via ge-0/0/2.35
3.3.3.3/32         *[OSPF/150] 00:12:45, metric 0, tag 3489725929
                    > to 172.16.35.3 via ge-0/0/2.35
172.16.4.4/32      *[OSPF/10] 00:12:45, metric 12
                    > to 172.16.35.3 via ge-0/0/2.35
172.16.5.5/32      *[Direct/0] 01:43:27
                    > via lo0.5
172.16.14.0/24     *[OSPF/10] 00:12:45, metric 12
                    > to 172.16.35.3 via ge-0/0/2.35
172.16.35.0/24     *[Direct/0] 01:44:25
                    > via ge-0/0/2.35
172.16.35.5/32     *[Local/0] 01:44:25
                      Local via ge-0/0/2.35
172.16.45.0/24     *[Direct/0] 01:44:25
                    > via ge-0/0/1.45
172.16.45.5/32     *[Local/0] 01:44:25
                      Local via ge-0/0/1.45
224.0.0.5/32       *[OSPF/10] 01:34:06, metric 1
                      MultiRecv        

[edit]
root@vMX-1#

[edit]
root@vMX-1# run traceroute 172.16.5.5 source 172.16.4.4 logical-system R4
traceroute to 172.16.5.5 (172.16.5.5) from 172.16.4.4, 30 hops max, 40 byte packets
 1  172.16.14.1 (172.16.14.1)  174.120 ms  1.404 ms  1.203 ms
 2  * * *
 3  10.200.23.3 (10.200.23.3)  3.033 ms  2.682 ms  4.704 ms
     MPLS Label=299888 CoS=0 TTL=1 S=1
 4  172.16.5.5 (172.16.5.5)  3.632 ms  4.485 ms  3.110 ms

[edit]
root@vMX-1#


Final configuration:

set logical-systems R1 interfaces ge-0/0/1 unit 12 description TO_R2
set logical-systems R1 interfaces ge-0/0/1 unit 12 vlan-id 12
set logical-systems R1 interfaces ge-0/0/1 unit 12 family inet address 10.200.12.1/24
set logical-systems R1 interfaces ge-0/0/1 unit 12 family iso
set logical-systems R1 interfaces ge-0/0/1 unit 12 family mpls
set logical-systems R1 interfaces ge-0/0/2 unit 14 description TO_R4
set logical-systems R1 interfaces ge-0/0/2 unit 14 vlan-id 14
set logical-systems R1 interfaces ge-0/0/2 unit 14 family inet address 172.16.14.1/24
set logical-systems R1 interfaces lo0 unit 1 family inet address 10.200.1.1/32
set logical-systems R1 interfaces lo0 unit 1 family iso address 49.0001.0000.0000.0001.00
set logical-systems R1 interfaces lo0 unit 13 family inet address 1.1.1.1/32
set logical-systems R1 protocols rsvp interface ge-0/0/1.12
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 to 10.200.1.3
set logical-systems R1 protocols mpls label-switched-path R1_TO_R3 primary VIA_R2
set logical-systems R1 protocols mpls path VIA_R2 10.200.12.2 strict
set logical-systems R1 protocols mpls path VIA_R2 10.200.1.3 loose
set logical-systems R1 protocols mpls interface ge-0/0/1.12
set logical-systems R1 protocols bgp group TO_RR type internal
set logical-systems R1 protocols bgp group TO_RR local-address 10.200.1.1
set logical-systems R1 protocols bgp group TO_RR family inet-vpn unicast
set logical-systems R1 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R1 protocols isis level 1 disable
set logical-systems R1 protocols isis interface ge-0/0/1.12
set logical-systems R1 protocols isis interface lo0.1
set logical-systems R1 policy-options policy-statement BGP>OSPF_R4 term 1 from protocol bgp
set logical-systems R1 policy-options policy-statement BGP>OSPF_R4 term 1 then accept
set logical-systems R1 routing-instances VPN_A_R4 instance-type vrf
set logical-systems R1 routing-instances VPN_A_R4 interface ge-0/0/2.14
set logical-systems R1 routing-instances VPN_A_R4 interface lo0.13
set logical-systems R1 routing-instances VPN_A_R4 route-distinguisher 10.200.1.1:100
set logical-systems R1 routing-instances VPN_A_R4 vrf-target target:65001L:100
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf export BGP>OSPF_R4
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf sham-link local 1.1.1.1
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf area 0.0.0.0 sham-link-remote 3.3.3.3 metric 10
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf area 0.0.0.0 interface ge-0/0/2.14
set logical-systems R1 routing-instances VPN_A_R4 protocols ospf area 0.0.0.0 interface lo0.13
set logical-systems R1 routing-options autonomous-system 65001
set logical-systems R2 interfaces ge-0/0/1 unit 23 description TO_R3
set logical-systems R2 interfaces ge-0/0/1 unit 23 vlan-id 23
set logical-systems R2 interfaces ge-0/0/1 unit 23 family inet address 10.200.23.2/24
set logical-systems R2 interfaces ge-0/0/1 unit 23 family iso
set logical-systems R2 interfaces ge-0/0/1 unit 23 family mpls
set logical-systems R2 interfaces ge-0/0/2 unit 12 description TO_R1
set logical-systems R2 interfaces ge-0/0/2 unit 12 vlan-id 12
set logical-systems R2 interfaces ge-0/0/2 unit 12 family inet address 10.200.12.2/24
set logical-systems R2 interfaces ge-0/0/2 unit 12 family iso
set logical-systems R2 interfaces ge-0/0/2 unit 12 family mpls
set logical-systems R2 interfaces lo0 unit 2 family inet address 10.200.1.2/32
set logical-systems R2 interfaces lo0 unit 2 family iso address 49.0002.0000.0000.0002.00
set logical-systems R2 protocols rsvp interface ge-0/0/1.23
set logical-systems R2 protocols rsvp interface ge-0/0/2.12
set logical-systems R2 protocols mpls interface ge-0/0/1.23
set logical-systems R2 protocols mpls interface ge-0/0/2.12
set logical-systems R2 protocols bgp group RR type internal
set logical-systems R2 protocols bgp group RR local-address 10.200.1.2
set logical-systems R2 protocols bgp group RR family inet-vpn unicast
set logical-systems R2 protocols bgp group RR cluster 10.200.1.2
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.1
set logical-systems R2 protocols bgp group RR neighbor 10.200.1.3
set logical-systems R2 protocols isis level 1 disable
set logical-systems R2 protocols isis interface ge-0/0/1.23
set logical-systems R2 protocols isis interface ge-0/0/2.12
set logical-systems R2 protocols isis interface lo0.2
set logical-systems R2 routing-options autonomous-system 65001
set logical-systems R2 routing-options resolution rib bgp.l3vpn.0 resolution-ribs inet.0
set logical-systems R3 interfaces ge-0/0/1 unit 35 description TO_R5
set logical-systems R3 interfaces ge-0/0/1 unit 35 vlan-id 35
set logical-systems R3 interfaces ge-0/0/1 unit 35 family inet address 172.16.35.3/24
set logical-systems R3 interfaces ge-0/0/2 unit 23 description TO_R2
set logical-systems R3 interfaces ge-0/0/2 unit 23 vlan-id 23
set logical-systems R3 interfaces ge-0/0/2 unit 23 family inet address 10.200.23.3/24
set logical-systems R3 interfaces ge-0/0/2 unit 23 family iso
set logical-systems R3 interfaces ge-0/0/2 unit 23 family mpls
set logical-systems R3 interfaces lo0 unit 3 family inet address 10.200.1.3/32
set logical-systems R3 interfaces lo0 unit 3 family iso address 49.0003.0000.0000.0003.00
set logical-systems R3 interfaces lo0 unit 31 family inet address 3.3.3.3/32
set logical-systems R3 protocols rsvp interface ge-0/0/2.23
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 to 10.200.1.1
set logical-systems R3 protocols mpls label-switched-path R3_TO_R1 primary VIA_R2
set logical-systems R3 protocols mpls path VIA_R2 10.200.23.2 strict
set logical-systems R3 protocols mpls path VIA_R2 10.200.1.1 loose
set logical-systems R3 protocols mpls interface ge-0/0/2.23
set logical-systems R3 protocols bgp group TO_RR type internal
set logical-systems R3 protocols bgp group TO_RR local-address 10.200.1.3
set logical-systems R3 protocols bgp group TO_RR family inet-vpn unicast
set logical-systems R3 protocols bgp group TO_RR neighbor 10.200.1.2
set logical-systems R3 protocols isis level 1 disable
set logical-systems R3 protocols isis interface ge-0/0/2.23
set logical-systems R3 protocols isis interface lo0.3
set logical-systems R3 policy-options policy-statement BGP>OSPF_R5 term 1 from protocol bgp
set logical-systems R3 policy-options policy-statement BGP>OSPF_R5 term 1 then accept
set logical-systems R3 routing-instances VPN_A_R5 instance-type vrf
set logical-systems R3 routing-instances VPN_A_R5 interface ge-0/0/1.35
set logical-systems R3 routing-instances VPN_A_R5 interface lo0.31
set logical-systems R3 routing-instances VPN_A_R5 route-distinguisher 10.200.1.3:100
set logical-systems R3 routing-instances VPN_A_R5 vrf-target target:65001L:100
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf export BGP>OSPF_R5
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf sham-link local 3.3.3.3
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf area 0.0.0.0 sham-link-remote 1.1.1.1 metric 10
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf area 0.0.0.0 interface ge-0/0/1.35
set logical-systems R3 routing-instances VPN_A_R5 protocols ospf area 0.0.0.0 interface lo0.31
set logical-systems R3 routing-options autonomous-system 65001
set logical-systems R4 interfaces ge-0/0/1 unit 14 description TO_R1
set logical-systems R4 interfaces ge-0/0/1 unit 14 vlan-id 14
set logical-systems R4 interfaces ge-0/0/1 unit 14 family inet address 172.16.14.4/24
set logical-systems R4 interfaces ge-0/0/2 unit 45 description TO_R5
set logical-systems R4 interfaces ge-0/0/2 unit 45 vlan-id 45
set logical-systems R4 interfaces ge-0/0/2 unit 45 family inet address 172.16.45.4/24
set logical-systems R4 interfaces lo0 unit 4 family inet address 172.16.4.4/32
set logical-systems R4 protocols ospf area 0.0.0.0 interface all
set logical-systems R4 protocols ospf area 0.0.0.0 interface lo0.4 passive
set logical-systems R4 protocols ospf area 0.0.0.0 interface ge-0/0/2.45 metric 100
set logical-systems R5 interfaces ge-0/0/1 unit 45 description TO_R4
set logical-systems R5 interfaces ge-0/0/1 unit 45 vlan-id 45
set logical-systems R5 interfaces ge-0/0/1 unit 45 family inet address 172.16.45.5/24
set logical-systems R5 interfaces ge-0/0/2 unit 35 description TO_R3
set logical-systems R5 interfaces ge-0/0/2 unit 35 vlan-id 35
set logical-systems R5 interfaces ge-0/0/2 unit 35 family inet address 172.16.35.5/24
set logical-systems R5 interfaces lo0 unit 5 family inet address 172.16.5.5/32
set logical-systems R5 protocols ospf area 0.0.0.0 interface all
set logical-systems R5 protocols ospf area 0.0.0.0 interface lo0.5 passive
set logical-systems R5 protocols ospf area 0.0.0.0 interface ge-0/0/1.45 metric 100
set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/2 vlan-tagging


Reference:
Junos Layer 3 VPNs Configuration Guide


最初發表 / 最後更新: 2015.09.20 / 2018.06.15

0 comments:

張貼留言