Cisco Cisco IOS Software Release 12.2(33)SRE

Page de 30
MPLS VPN—VRF CLI for IPv4 and IPv6 VPNs
  Configuration Examples for MPLS VPN—VRF CLI for IPv4 and IPv6 VPNs
15
Cisco IOS Release 12.2(33)SRB
Configuring a VRF for IPv4 and IPv6 VPNs: Example
The following example shows how to configure a VRF for IPv4 and IPv6 VPNs:
configure terminal
!
vrf definition vrf1
rd 100:1
!
address-family ipv4
route-target both 100:2
exit-address-family
!
address-family ipv6
route-target import 100:3
route-target export 100:3
exit-address-family
end
In this example, noncommon policies are defined in the address-family configuration.
The following is an example of a VRF for IPv4 and IPv6 that has common policies defined in the global 
part of the VRF configuration:
configure terminal
!
vrf definition vrf2
rd 200:1
route-target import 200:2
route-target export 200:2
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
end
Associating a Multiprotocol VRF with an Interface: Example
The following example shows how to associate a multiprotocol VRF with an interface:
configure terminal
!
interface Ethernet 0/1
vrf forwarding vrf1
ip address 10.24.24.24 255.255.255.255
ipv6 address 2001:0DB8:0300:0201::/64 
end