1. Define loopback interface lo0 and configure an IP address for that interface. This
address will serve as the PE device’s router ID for BGP and LDP:
EX9208> configure
EX9208# set interfaces lo0 unit 0 family inet address 192.18.40.1/32
2. Define IP addresses for interfaces xe-5/0/5 (connected to the Juniper MX80 acting as a
P device) and xe-5/3/1 (connected to the Cisco Catalyst 3850 CE device):
EX9208# set interfaces xe-5/0/5 description "to Juniper MX80 P device xe-
0/0/1"
EX9208# set interfaces xe-5/0/5 unit 0 family inet address 192.18.38.1/24
EX9208# set interfaces xe-5/3/1 description "to c3850 CE device int t1/1/3"
EX9208# set interfaces xe-5/3/1 unit 0 family inet address 192.18.1.1/24
4. Configure LDP as the MPLS backbone label distribution protocol:
EX9208# set protocols ldp interface xe-5/0/5.0
5. Enable MPLS on interfaces lo0 and xe-5/0/5:
EX9208# set protocols mpls interface xe-5/0/5.0
EX9208# set protocols mpls interface lo0.0
EX9208# set interfaces xe-5/0/5 unit 0 family mpls
6. Enable OSPF on the service provider network (IS-IS also would work as an IGP):
EX9208# set protocols ospf traffic-engineering
EX9208# set protocols ospf area 0.0.0.0 interface xe-5/0/5.0
EX9208# set protocols ospf area 0.0.0.0 interface lo0.0
7. Configure MP-BGP to exchange routes with other PE devices. This example defines a
“Juniper-to-Cisco” BGP group in which the service provider network uses
autonomous system 100 (AS 100):
EX9208# set protocols /jointfilesconvert/492162/bgp group Juniper-to-Cisco type internal
EX9208# set protocols /jointfilesconvert/492162/bgp group Juniper-to-Cisco local-address 192.18.40.1
EX9208# set protocols /jointfilesconvert/492162/bgp group Juniper-to-Cisco local-as 100
EX9208# set protocols /jointfilesconvert/492162/bgp group Juniper-to-Cisco neighbor 192.18.69.1
family inet-vpn unicast
EX9208# set protocols /jointfilesconvert/492162/bgp group Juniper-to-Cisco neighbor 192.18.69.1 peer-
as 100
8. Configure a VRF instance. In this example, the VRF’s name is “VPN1”. The “route-
distinguisher” command uniquely identifies this VRF’s network. RDs prevent
traffic misrouting when multiple customers use the same network space (for example,
when two customers both use net-10 addresses):
EX9208# set routing-instances VPN1 instance-type vrf
EX9208# set routing-instances VPN1 route-distinguisher 100:2
EX9208# set routing-instances VPN1 vrf-target target:100:2
EX9208# set routing-instances VPN1 vrf-table-label
Komentáře k této Příručce