Cisco Cisco IOS Software Release 12.2(33)SRE
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
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:
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