Juniper InterAS OptionC
Juniper InterAS OptionC
Juniper InterAS OptionC
PNETLAB Store
PNETLab.com
INTER-AS OPTION C
Lab Topology:
Please use the following topology to complete this lab exercise:
Lab Objective:
The objective of this lab exercise is for you to learn and understand how can you configure L3VPN from
local site to remote site, between different AS.
Task Lists
Task 1: Configure the Hostname and IP address for the interfaces for Routers as Topo.
Task 2: Config OSPF Routing and enable MPLS at AS65301, AS65302.
Task 3: Config iBGP VPNv4 inside AS65301 and AS65302.
Task 4: Config VRF at PE router (R3-PE1, R7-PE2).
Task 5: Config eBGP LU between 2 ASBR Router (R4-ASBR1 & R6-ASBR2).
Task 6: Config eBGP VPNv4 between 2 RR Router (RR1 & RR2).
Task 7: Config Static Route for CE Routers (R1,R2,R9,R10) and check the connection between
CE Routers.
SOLUTION
Task 1
On R1
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
On R2
set interfaces ge-0/0/0 unit 0 family inet address 172.16.2.1/30
On R3
set interfaces ge-0/0/0 description TO-VPN11
set interfaces ge-0/0/0 unit 0 family inet address 172.16.1.2/30
set interfaces ge-0/0/1 description TO-VPN22
set interfaces ge-0/0/1 unit 0 family inet address 172.16.2.2/30
set interfaces ge-0/0/2 description TO-R4
set interfaces ge-0/0/2 unit 0 family inet address 192.168.1.5/30
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces ge-0/0/3 description TO-RR
set interfaces ge-0/0/3 unit 0 family inet address 192.168.1.1/30
set interfaces ge-0/0/3 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 3.3.3.3/32
On R4
set interfaces ge-0/0/0 description TO-R3
set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.6/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 description TO-R6
set interfaces ge-0/0/1 unit 0 family inet address 172.16.3.1/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/2 description TO-RR1
set interfaces ge-0/0/2 unit 0 family inet address 192.168.1.9/30
set interfaces ge-0/0/2 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 4.4.4.4/32
On RR1
set interfaces ge-0/0/0 description TO-R3
set interfaces ge-0/0/0 unit 0 family inet address 192.168.1.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 description TO-R4
set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.10/30
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 10.10.10.10/32
On R6
set interfaces ge-0/0/0 description TO-R4
set interfaces ge-0/0/0 unit 0 family inet address 172.16.3.2/30
set interfaces ge-0/0/0 unit 0 family mpls
set interfaces ge-0/0/1 description TO-R7
set interfaces ge-0/0/1 unit 0 family inet address 192.168.2.5/30
set interfaces ge-0/0/1 unit 0 family mpls
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task 2
On R3
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface ge-0/0/3.0 interface-type p2p
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ldp interface ge-0/0/2.0
set protocols ldp interface ge-0/0/3.0
set protocols ldp interface lo0.0
On R4
set protocols ospf area 0.0.0.0 interface ge-0/0/2.0 interface-type p2p
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task 3
On R3
set routing-options autonomous-system 65301
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com
On R7
set routing-instances VPN11 instance-type vrf
set routing-instances VPN11 interface ge-0/0/1.0
set routing-instances VPN11 route-distinguisher 65302:11
set routing-instances VPN11 vrf-import VPN11-IMPORT
set routing-instances VPN11 vrf-export VPN11-EXPORT
set routing-instances VPN11 vrf-target import target:65302:11
set routing-instances VPN11 vrf-target export target:65302:11
set routing-instances VPN11 vrf-table-label
Task 5
On R4
set protocols bgp group TO-AS65302 type external
set protocols bgp group TO-AS65302 family inet labeled-unicast rib inet.3
set protocols bgp group TO-AS65302 export RR1_LOOPBACK_IN_LABELED_UNICAST
//export RR1 loopback address into AS65302
set protocols bgp group TO-AS65302 peer-as 65302
set protocols bgp group TO-AS65302 neighbor 172.16.3.2
8
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Check connection
On R1
root@R1> ping 172.16.1.6
PING 172.16.1.6 (172.16.1.6): 56 data bytes
64 bytes from 172.16.1.6: icmp_seq=0 ttl=60 time=8.903 ms
9
Download PNETLab Platform
PNETLAB Store
PNETLab.com
root@R1>
On R2
root@R2> ping 172.16.2.6
PING 172.16.2.6 (172.16.2.6): 56 data bytes
64 bytes from 172.16.2.6: icmp_seq=0 ttl=60 time=4.472 ms
64 bytes from 172.16.2.6: icmp_seq=1 ttl=60 time=4.829 ms
64 bytes from 172.16.2.6: icmp_seq=2 ttl=60 time=4.801 ms
root@R2>
On R9
root@R9> ping 172.16.1.1
PING 172.16.1.1 (172.16.1.1): 56 data bytes
64 bytes from 172.16.1.1: icmp_seq=0 ttl=60 time=5.000 ms
64 bytes from 172.16.1.1: icmp_seq=1 ttl=60 time=80.490 ms
64 bytes from 172.16.1.1: icmp_seq=2 ttl=60 time=5.132 ms
root@R9>
On R10
root@R10> ping 172.16.2.1
PING 172.16.2.1 (172.16.2.1): 56 data bytes
64 bytes from 172.16.2.1: icmp_seq=0 ttl=60 time=4.473 ms
64 bytes from 172.16.2.1: icmp_seq=1 ttl=60 time=4.553 ms
64 bytes from 172.16.2.1: icmp_seq=2 ttl=60 time=6.938 ms
10
Download PNETLab Platform
PNETLAB Store
PNETLab.com
root@R10>
root@R4>
On R6
root@R6> show bgp summary
Groups: 2 Peers: 2 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l3vpn.0
0 0 0 0 0 0
inet.3
1 1 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn
State|#Active/Received/Accepted/Damped...
20.20.20.20 65302 78 75 0 2 32:25 Establ
bgp.l3vpn.0: 0/0/0/0
inet.3: 0/0/0/0
172.16.3.1 65301 322 321 0 0 2:22:59 Establ
inet.3: 1/1/1/0
root@R6>
On RR1
11
Download PNETLab Platform
PNETLAB Store
PNETLab.com
root@RR1>
On RR2
root@RR2> show bgp summary
Groups: 2 Peers: 3 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
0 0 0 0 0 0
bgp.l3vpn.0
4 4 0 0 0 0
inet.3
1 1 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn
State|#Active/Received/Accepted/Damped...
6.6.6.6 65302 76 79 0 0 33:00 Establ
bgp.l3vpn.0: 0/0/0/0
inet.3: 1/1/1/0
7.7.7.7 65302 78 77 0 0 32:56 Establ
bgp.l3vpn.0: 2/2/2/0
inet.3: 0/0/0/0
10.10.10.10 65301 245 248 0 0 1:48:30 Establ
bgp.l3vpn.0: 2/2/2/0
root@RR2>
12