Global Export Of Ipv6 Vpn Routes Into The Global Bgp Ipv6 Rib; Assigning An Interface To A Vrf - Juniper BGP - CONFIGURATION GUIDE V 11.1.X Configuration Manual

Junose software for e series routing platforms
Table of Contents

Advertisement

JUNOSe 11.1.x BGP and MPLS Configuration Guide

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.
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
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.
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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Junose 11.1.x bgp and mplsBgpMpls

Table of Contents