Implementing MPLS Layer 3 VPNs
ipv4 address 192.3.2.1 255.255.255.0
dot1q vlan 3
!
vrf red
address-family ipv4 unicast
import route-target
500:1
!
export route-target
500:1
!
!
address-family ipv6 unicast
import route-target
500:1
!
export route-target
500:1
!
!
!
vrf blue
address-family ipv4 unicast
import route-target
600:1
!
export route-target
600:1
!
!
router bgp 3
address-family ipv4 unicast
network 3.3.3.3/32
!
address-family vpnv4 unicast
!
address-family ipv6 unicast
network 2001:db82:cafe:1::/64
allocate-label all
!
address-family vpnv6 unicast
!
neighbor 192.168.253.4
remote-as 3
update-source Loopback0
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
address-family ipv6 labeled-unicast
!
address-family vpnv6 unicast
!
!
neighbor 192.168.254.3
remote-as 3
update-source Loopback0
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
address-family ipv6 labeled-unicast
!
address-family vpnv6 unicast
Cisco IOS XR Virtual Private Network Configuration Guide for the Cisco CRS Router, Release 6.1.x
Configuration Examples for 6VPE
275