Configuring VRF-lite for IPv6
Associate Interfaces to the Defined VRFs
To associate interface to the defined VRFs, perform this task:
Command
Switch(config)# vrf configuration
Step 1
Switch(config-vrf)# interface
Step 1
interface-id
Switch(config-if)# vrf forwarding
Step 2
vrf-name
Switch(config-if)# end
Step 3
Switch# show ipv6 vrf [brief |
Step 4
detail | interfaces] [vrf-name]
Switch# copy running-config
Step 5
startup-config
This example shows how to associate an interface to VRFs:
Switch(config-vrf)# interface ethernet0/1
Switch(config-if)# vrf forwarding red
Switch(config-if)# ipv6 address 5000::72B/64
Populate VRF with Routes via Routing Protocols
Static Route
Command
ipv6 route [vrf vrf-name]
Step 1
ipv6-prefix/prefix-length
{ipv6-address | interface-type
interface-number [ipv6-address]}
This example shows how to populate VRF with a static route:
Switch(config)# ipv6 route vrf v6a 7000::/64 TenGigabitEthernet3/2 4000::2
Software Configuration Guide—Release IOS XE 3.6.0E and IOS 15.2(2)E
41-24
Purpose
Enters vrf configuration mode.
Enters interface configuration mode and specifies the
Layer 3 interface to be associated with the VRF. The
interface can be a routed port or SVI.
Associates the VRF with the Layer 3 interface.
Returns to privileged EXEC mode.
Verifies the configuration. Displays information about the
configured VRFs.
(Optional) Saves your entries in the configuration file.
Purpose
To configure static routes specific to VRF.
Chapter 41
Configuring VRF-lite
OL_28731-01