Configuring Multi-VRF CE Configuring VRFs Command or Action Purpose Step 6 route-target {export | import | both} route-target-ext-community Example: Device(config-vrf)#route-target both 100:2 Creates a list of import, export, or import and export route target communities for the specified VRF. Enter either an AS system number and an arbitrary number (xxx:y) or an IP address and an arbitrary number (A.B.C.D:y). The route-target-ext-community should be the same as the route-distinguisher entered in Step 4. Step 7 import map route-map Example: Device(config-vrf)#import map importmap1 (Optional) Associates a route map with the VRF. Step 8 interface interface-id Example:
Device(config-vrf)#interface gigabitethernet 1/0/1 Specifies the Layer 3 interface to be associated with the VRF, and enter interface configuration mode. The interface can be a routed port or SVI. Step 9 ip vrf forwarding vrf-name Example: Device(config-if)#ip vrf forwarding vpn1 Associates the VRF with the Layer 3 interface. Note When ip vrf forwarding is enabled in the Management Interface, the access point does not join. Step 10 end Example: Device(config)#end Returns to privileged EXEC mode. Step 11 show ip vrf [brief | detail | interfaces] [vrf-name] Example: Device#show ip vrf interfaces vpn1 Verifies the configuration. Displays information about the configured VRFs.
Step 12 copy running-config startup-config Example: Device#copy running-config startup-config (Optional) Saves your entries in the configuration file. Configuring Multi-VRF CE 6