Friday, July 4, 2014

IPv6 VRFs

Background Information

  1. This post assumes that you are familiar with administering IPv4 VRFs.
  2. The old VRF syntax supported only IPv4.
  3. To implement IPv6 VRFs, new CLI syntax have been created (IOS 12.2(33)).
  4. If you want to create IPv6 VRFs, you must use the new syntax.
  5. You can upgrade the old IPv4 CLI configuration to the new syntax.
  6. Once upgraded, you cannot revert back to the old syntax.
  7. The old VRF syntax ip vrf are deprecated and will be removed in future releases.

Summary

  1. vrf definition  to define new VRF.
  2. address-family ipv6 to enable this VRF for IPv6 and to define IPv6 VRF attributes.
  3. address-family ipv4 to enable this VRF for IPv4 and to define IPv4 VRF attributes.
  4. vrf forwarding  to add interface to VRF.
  5. vrf upgrade cli to upgrade all VRF configuration to the new syntax structures.
    1. 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.
    2. 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.
  6. show vrf to list VRFs, RD, protocols, and interfaces.
  7. show vrf detail to view VRF info along with route-targets.
  8. 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