Figure 2: Establishing a Multi-VRF CE Configuration Example On Switch A, enable routing and configure VRF. Device#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Device(config)#ip routing Device(config)#ip vrf v11 Device(config-vrf)#rd 800:1 Device(config-vrf)#route-target export 800:1 Device(config-vrf)#route-target import 800:1 Device(config-vrf)#exit Device(config)#ip vrf v12 Device(config-vrf)#rd 800:2 Device(config-vrf)#route-target export 800:2 Device(config-vrf)#route-target import 800:2 Device(config-vrf)#exit Configure the loopback and physical interfaces on Switch A. Gigabit Ethernet port 1 is a trunk connection to the PE.
Gigabit Ethernet ports 8 and 11 connect to VPNs: Device(config)#interface loopback1 Device(config-if)#ip vrf forwarding v11 Device(config-if)#ip address 8.8.1.8 255.255.255.0 Device(config-if)#exit Device(config)#interface loopback2 Device(config-if)#ip vrf forwarding v12 Device(config-if)#ip address 8.8.2.8 255.255.255.0 Device(config-if)#exit Device(config)#interface gigabitethernet1/0/5 Device(config-if)#switchport trunk encapsulation dot1q Configuring Multi-VRF CE Configuration Example: Multi-VRF CE Configuring Multi-VRF CE 21