vrf red
ipv4 address 2.2.2.2 255.255.255.255
!
interface POS0/2/0/0
ipv4 address 12.1.0.2 255.255.255.0
ipv6 address 12:1::2/120
!
interface POS0/2/0/1
vrf red
ipv4 address 193.168.1.2 255.255.255.0
!
route-policy pass-all
pass
end-policy
!
router static
address-family ipv6 unicast
1:1:1::1/128 POS0/2/0/0
1:1:1::2/128 POS0/2/0/0
!
vrf red
address-family ipv4 unicast
193.168.1.21/32 POS0/2/0/1
!
!
!
router ospf 100
log adjacency changes
router-id 2.2.2.2
area 0
interface Loopback0
!
interface POS0/2/0/0
!
!
!
router bgp 100
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
neighbor 1.1.1.1
remote-as 100
update-source Loopback0
address-family vpnv4 unicast
!
!
vrf red
rd 1:1
address-family ipv4 unicast
allocate-label all
!
neighbor 193.168.1.21
remote-as 2
address-family ipv4 labeled-unicast
route-policy pass-all in
route-policy pass-all out
!
!
!
!
mpls ldp
log
adjacency
neighbor
!
router-id 2.2.2.2
address-family ipv4
label
local
advertise
explicit-null
!
Cisco IOS XR MPLS Configuration Guide for the Cisco CRS Router, Release 5.1.x
94
Implementing MPLS Label Distribution Protocol
MPLS LDP CSC for Multiple VRFs Configuration: Examples