host1:vr1(config-vrf)#
import map Another-route-map
host1:vr1(config-vrf)#
export map A-route-map
host1:vr1(config-vrf)#
exit
5.
Assign interfaces for PE-to-CE links to the VRF from outside or inside the VRF context:
host1:vr1(config)#
interface gigabitEthernet 1/0
host1:vr1(config-if)#
ip vrf forwarding vrfA
host1:vr1:vrfA(config-if)#
ip address 10.16.2.77 255.255.255.0
host1:vr1:vrfA(config-if)#
exit
or
host1:vr1(config)#
virtual-router :vrfA
host1:vr1:vrfA(config)#
interface gigabitEthernet 1/0
NOTE:
You can also use the
ip vrf forwarding
command to specify secondary route
lookup at the parent (global) level, in the event the original lookup does not yield any
results.
6.
Use either of the following methods to establish how the VRF learns routes to
customer sites:
•
Create static routes to the customer site in the VRF by one of the following
methods:
host1(config)#
virtual-router vr1
host1:vr1(config)#
ip vrf vpnA
host1:vr1(config-vrf)#
ip route vrf vrfA 10.3.0.0 255.255.0.0 10.1.1.1
host1:vr1(config-vrf)#
ip route vrf vrfA 10.12.0.0 255.255.0.0 10.1.1.1
or
host1(config)#
virtual-router vr1:vrfA
host1:vr1:vrfA(config)#
ip route 10.3.0.0 255.255.0.0 10.1.1.1
host1:vr1:vrfA(config)#
ip route 10.12.0.0 255.255.0.0 10.1.1.1
•
Configure an IGP on the VRF to learn routes from the CE router.
See “Configuring IGPs on the VRF” on page 437 for examples.
•
Configure a PE-to-CE EBGP session.
See “Configuring PE-to-CE BGP Sessions” on page 445 for information about
configuring EBGP.
7.
(Optional) Configure the router to generate a label for each different FEC pointed
to by a BGP route in the VPN.
host1:vr1(config-vrf)#
ip mpls forwarding-mode label-switched
8.
(Optional) For carrier-of-carriers VPNs, configure carrier-of-carriers mode in the
provider carrier’s PE router that connects to the customer carrier’s network.
host1:vr1:VrfA(config)#
mpls topology-driven-lsp
See “Carrier-of-Carriers IPv4 VPNs” on page 469 for information about configuring
carrier-of-carriers VPNs.
Copyright © 2010, Juniper Networks, Inc.
422
JunosE 11.2.x BGP and MPLS Configuration Guide
Содержание JUNOSE 11.2.X BGP AND MPLS
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 8: ...Copyright 2010 Juniper Networks Inc viii JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 38: ...Copyright 2010 Juniper Networks Inc 2 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 192: ...Copyright 2010 Juniper Networks Inc 156 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 242: ...Copyright 2010 Juniper Networks Inc 206 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 244: ...Copyright 2010 Juniper Networks Inc 208 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 310: ...Copyright 2010 Juniper Networks Inc 274 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 356: ...Copyright 2010 Juniper Networks Inc 320 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 418: ...Copyright 2010 Juniper Networks Inc 382 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 524: ...Copyright 2010 Juniper Networks Inc 488 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 544: ...Copyright 2010 Juniper Networks Inc 508 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 608: ...Copyright 2010 Juniper Networks Inc 572 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 672: ...Copyright 2010 Juniper Networks Inc 636 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 674: ...Copyright 2010 Juniper Networks Inc 638 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 716: ...Copyright 2010 Juniper Networks Inc 680 JunosE 11 2 x BGP and MPLS Configuration Guide...
Страница 717: ...PART 6 Index Index on page 683 681 Copyright 2010 Juniper Networks Inc...
Страница 718: ...Copyright 2010 Juniper Networks Inc 682 JunosE 11 2 x BGP and MPLS Configuration Guide...