host1:boston(config-vrf)#
global import map routemap22 max-routes 512
■
Use the
no
version to disable the importing of routes from the global BGP
non-VPN RIB to the BGP RIB of the VRF.
■
See global import map.
Global Export of IPv6 VPN Routes into the Global BGP IPv6 RIB
VPNv6 routes can be exported from the BGP RIB of an IPv6 VRF to the global IPv6
BGP RIB based on policy by means of a route map and the
global export map
command.
For example, if you have a mixed IPv4 and IPv6 VPN configuration, but want only
the IPv6 VPN routes to be exported from the IPv6 VRF into the global IPv6 RIB, you
can use a route map that matches on IPv6 access-lists (IPv6 prefix-lists). You can
have the route map disallow IPv4 VPN routes by matching on IPv4 access lists that
filter out IPv4 prefixes.
The following commands illustrate this behavior.
■
Configure an IPv6 access list to export IPv6 VPN prefixes to the global IPv6 RIB.
host1(config)#
ipv6 access-list everything-v6 permit any any
■
Configure an IPv4 access list to disallow the export of IPv4 prefixes to the global
IPv4 RIB.
host1(config)#
access-list nothing-v4 deny ip any any
■
Configure a route map to permit global export of IPv6 VPN routes to the global
IPv6 RIB.
host1(config)#
route-map export-only-v6
host1(config-route-map)#
match ip address nothing-v4
host1(config-route-map)#
match ipv6 address everything-v6
host1(config-route-map)#
set local-preference 444
host1(config-route-map)#
exit
host1(config)#
ip vrf foo
host1(config-route-vrf)#
global export map export-only-v6
If you need to export both IPv4 and IPv6 VPN routes from the IPv4/IPv6 VRF to the
global IPv4 BGP RIB and to the global IPv6 BGP RIB, then configure a route map that
permits both IPv4 and IPv6 prefixes.
Assigning an Interface to a VRF
You must assign an interface or subinterface to a VRF so that when the router receives
a packet at this interface, it routes the packet using the VRF’s forwarding table rather
the global forwarding table. You can assign the interface from outside the context
of the VRF or inside the context of the VRF.
To assign an interface to a VRF from outside the VRF context:
432
■
Configuring BGP VPN Services
JUNOSe 11.1.x BGP and MPLS Configuration Guide
Summary of Contents for BGP
Page 6: ...vi ...
Page 8: ...viii JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1 ...
Page 38: ...2 Border Gateway Protocol JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 234: ...198 Monitoring BGP JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 236: ...200 Multiprotocol Layer Switching JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 542: ...506 Monitoring BGP MPLS VPNs JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 544: ...508 Layer 2 Services Over MPLS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 610: ...574 Virtual Private LAN Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 624: ...588 VPLS References JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 680: ...644 Virtual Private Wire Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 724: ...688 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 725: ...Part 6 Index Index on page 691 Index 689 ...
Page 726: ...690 Index JUNOSe 11 1 x BGP and MPLS Configuration Guide ...