Background Information
- This post assumes that you are familiar with administering IPv4 VRFs.
- The old VRF syntax supported only IPv4.
- To implement IPv6 VRFs, new CLI syntax have been created (IOS 12.2(33)).
- If you want to create IPv6 VRFs, you must use the new syntax.
- You can upgrade the old IPv4 CLI configuration to the new syntax.
- Once upgraded, you cannot revert back to the old syntax.
- The old VRF syntax ip vrf
are deprecated and will be removed in future releases.
Summary
- vrf definition
to define new VRF. - address-family ipv6 to enable this VRF for IPv6 and to define IPv6 VRF attributes.
- address-family ipv4 to enable this VRF for IPv4 and to define IPv4 VRF attributes.
- vrf forwarding
to add interface to VRF. - vrf upgrade cli to upgrade all VRF configuration to the new syntax structures.
- If you use non-common-policies option, the existing route-target configuration will be copied to the IPv4 address-family and will only affect IPv4.
- If you use common-policies option, the existing route-target configuration will be applied to the VRF level, which will affect IPv6 and IPv4 address-families.
- show vrf to list VRFs, RD, protocols, and interfaces.
- show vrf detail to view VRF info along with route-targets.
- show run vrf to list configuration of VRF and associated interfaces.
vrf definition RED
address-family ipv6
address-family ipv4
rd 65000:1
route-target both 65000:1
interface fa 0/1
vrf forwarding RED