Exporting IPv6 VPN Routes Globally into the Global BGP IPv6 RIB

To export only IPv6 VPN routes from the IPv6 VRF into the global IPv6 RIB:

  1. 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
  2. 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
  3. 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.

Related Documentation