MPLS VPN VRF CLI for IPv4 and IPv6 VPNs
|
||||||||||||||||
Contents
MPLS VPN--VRF CLI for IPv4 and IPv6 VPNsLast Updated: June 6, 2012
This document describes how to configure a Virtual Private Network (VPN) routing and forwarding (VRF) instance for IPv4 and IPv6 VPNs and describes how to upgrade your existing single-protocol IPv4-only VRF to a multiprotocol VRF configuration. The MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs feature introduces Cisco IOS command-line interface (CLI) commands that allow you to enable an IPv4 and IPv6 VPN in the same VRF instance and to simplify the migration from a single-protocol VRF configuration to a multiprotocol VRF configuration.
Finding Feature InformationYour software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Prerequisites for MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs
Restrictions for MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs
Information About MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs
VRF Concepts Similar for IPv4 and IPv6 MPLS VPNsVPNs for IPv6 use the same VRF concepts that IPv4 MPLS VPNs use, such as address families, route distinguishers, route targets, and VRF identifiers. Customers that use both IPv4 and IPv6 VPNs might want to share VRF policies between address families. They might want a way to define applicable VRF policies for all address families, instead of defining VRF policies for an address family individually as they do for or a single-protocol IPv4-only VRF. Prior to Cisco IOS Release 12.2(33)SRB, a VRF applied only to an IPv4 address family. A one-to-one relationship existed between the VRF name and a routing and forwarding table identifier, between a VRF name and a route distinguisher (RD), and between a VRF name and a VPN ID. This configuration is called a single-protocol VRF. Cisco IOS Release 12.2(33)SRB introduces support for a multiple address-family (multi-AF) VRF structure. The multi-AF VRF allows you to define multiple address families under the same VRF. A given VRF, identified by its name and a set of policies, can apply to both an IPv4 VPN and an IPv6 VPN at the same time. This VRF can be activated on a given interface, even though the routing and forwarding tables are different for the IPv4 and IPv6 protocols. This configuration is called a multiprotocol VRF. Single-Protocol VRF to Multiprotocol VRF MigrationPrior to Cisco IOS Release 12.2(33)SRB, you could create a single-protocol IPv4-only VRF. You created a single-protocol VRF by entering the ip vrf command. To activate the single-protocol VRF on an interface, you entered the ip vrf forwarding (interface configuration) command. After the introduction of the MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs feature in Cisco IOS Release 12.2(33)SRB, you create a multiprotocol VRF by entering the vrf definition command. To activate the multiprotocol VRF on an interface, you enter the vrf forwarding command. The MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs feature introduces the vrf upgrade-cli multi-af-mode {common-policies | non-common-policies} [vrf vrf-name] command that forces VRF configuration migration from a single-protocol VRF model to a multiprotocol VRF model:
After you enter the vrf upgrade-cli command and save the configuration to NVRAM, the single-protocol VRF configuration is saved as a multiprotocol VRF configuration. In the upgrade process, theip vrf command is converted to the vrf definition command (global configuration commands) and the ip vrf forwarding command is converted to the vrf forwarding command (interface configuration command). The vrf upgrade-cli command has a one-time immediate effect. You might have both IPv4-only VRFs and multiprotocol VRFs on your router. Once you create a VRF, you can edit it using only the commands in the mode in which it was created. For example, you created a VRF named vrf2 with the following multiprotocol VRF commands: Router# configure terminal Enter configuration command, one per line. End with CNTL/Z Router(config)# vrf definition vrf2 Router(config-vrf)# rd 2:2 Router(config-vrf)# route-target import 2:2 Router(config-vrf)# route-target export 2:2 Router(config-vrf)# end If you try to edit VRF vrf2 with IPv4-only VRF commands, you receive the following message: Router# configure terminal Enter configuration command, one per line. End with CNTL/Z Router(config)# ip vrf vrf2 % Use 'vrf definition vrf2' command If you try to edit an IPv4-only VRF with the multiprotocol VRF commands, you would receive this message, where <vrf-name> is the name of the IPv4-only VRF: % Use 'ip vrf <vrf-name>' command Theip vrf name and ip vrf forwarding (interface configuration) name commands will be available for a period of time before they are removed. Use the vrf upgrade-cli command to migrate your older IPv4-only VRFs to the new multiprotocol VRF configuration. When you need to create a new VRF--whether the VRF is for an IPv4 VPN, or IPv6 VPN, or both--use the multiprotocol VRF vrf definition and vrf forwarding commands that support a multi-AF configuration. Multiprotocol VRF Configurations CharacteristicsIn a multiprotocol VRF, you can configure both IPv4 VRFs and IPv6 VRFs under the same address family or configure separate VRFs for each IPv4 or IPv6 address family. The multiprotocol VRF configuration has the following characteristics:
The following is also true when you associate a multiprotocol VRF with an interface:
Backward compatibility with the single-protocol VRF CLI is supported in Cisco IOS Release 12.2(33)SRB. This means that you might have single-protocol and multiprotocol CLI on the same router, but not in the same VRF configuration. The single-protocol CLI continues to allow you to define an IPv4 address within a VRF and an IPv6 address in the global routing table on the same interface. How to Configure MPLS VPN--VRF CLI for IPv4 and IPv6 VPNsThis feature provides Cisco IOS CLI commands that allow you to configure a multiprotocol VRF (IPv4 and IPv6 VPNs in the same VRF) and to migrate a single-protocol VRF configuration (IPv4-only VRF) to a multiprotocol VRF configuration. A multiprotocol VRF allows you to share route targets policies (import and export) between IPv4 and IPv6 or to configure separate route-target policies for IPv4 and IPv6 VPNs.
Configuring a VRF for IPv4 and IPv6 MPLS VPNsPerform the following task to configure a VRF for IPv4 and IPv6 MPLS VPNs. When you configure a VRF for both IPv4 and IPv6 VPNs (a multiprotocol VRF), you can choose to configure route-target policies that apply to all address families in the VRF or you can configure route-target policies that apply to individual address families in the VRF. The following task shows how to configure a VRF that has that has route-target policies defined for IPv4 and IPv6 VPNs in separate VRF address families. DETAILED STEPS Associating a Multiprotocol VRF with an InterfacePerform the following task to associate a multiprotocol VRF with an interface. Associating the VRF with an interface activates the VRF. DETAILED STEPS Verifying the MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs ConfigurationPerform the following task to verify the MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs feature configuration, that is, to show that the VRF configuration is upgraded to a multi-AF multiprotocol VRF. DETAILED STEPS Migrating from a Single-Protocol IPv4-Only VRF to a Multiprotocol VRF ConfigurationPerform the following task to force migration from a single-protocol IPv4-only VRF to a multiprotocol VRF configuration. The multiprotocol VRF configuration allows you to define multiple address families under the same VRF. A given VRF, identified by its name and a set of policies, can apply to both an IPv4 VPN and an IPv6 VPN at the same time. This VRF can be activated on a given interface, even though the routing and forwarding tables are different for the IPv4 and IPv6 protocols. DETAILED STEPS Configuration Examples for MPLS VPN--VRF CLI for IPv4 and IPv6 VPNs
Example Multiprotocol VRF Configuration Single Protocol with Noncommon PoliciesThe following is an example of a multiprotocol VRF configuration for a single protocol (IPv4) with route-target policies in the address family configuration: vrf definition vrf2 rd 2:2 ! address-family ipv4 route-target export 2:2 route-target import 2:2 exit-address-family The RD (2:2) applies to all address families defined for VRF vrf2. Example Multiprotocol VRF Configuration Multiprotocol with Noncommon PoliciesThe following is an example of a multiprotocol VRF configuration for IPv4 and IPv6 VPNs in which the route-target policies are defined in the separate address family configurations: vrf definition vrf2 rd 2:2 ! address-family ipv4 route-target export 2:2 route-target import 2:2 exit-address-family ! address-family ipv6 route-target export 3:3 route-target import 3:3 exit-address-family Example Multiprotocol VRF Configuration Multiprotocol with Common PoliciesThe following is an example of a multiprotocol VRF configuration for IPv4 and IPv6 VPNs with route-target policies defined in the global part of the VRF: vrf definition vrf2 rd 2:2 route-target export 2:2 route-target import 2:2 ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family The route-target policies are defined outside the address family configurations. Therefore, the policies apply to all address families defined in VRF vrf2. Example Multiprotocol VRF Configuration Multiprotocol with Common and Noncommon PoliciesThe following is an example of a multiprotocol VRF with route-target policies defined in both global and address family areas:
vrf definition vfr1 route-target export 100:1 route-target import 100:1 route-target import 100:2 ! address-family ipv4 exit-address-family ! address-family ipv6 route-target export 100:1 route-target import 100:1 route-target import 100:3 exit-address-family Example Configuring a VRF for IPv4 and IPv6 VPNsThe 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 both 100:3 exit-address-family 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 both 200:2 ! address-family ipv4 exit-address-family ! address-family ipv6 exit-address-family end Example Migrating from a Single-Protocol IPv4-Only VRF Configuration to a Multiprotocol VRF ConfigurationThis section contains examples that show how to migrate from a single-protocol IPv4-only VRF to a multiprotocol VRF configuration. This example shows a single-protocol IPv4-only VRF before the Cisco IOS VRF CLI for IPv4 and IPv6 is entered on the router: ip vrf vrf1 rd 1:1 route-target both 1:1 interface Loopback1 ip vrf forwarding V1 ip address 10.3.3.3 255.255.255.255 This example shows how to force the migration of the single-protocol VRF vrf1 to a multiprotocol VRF configuration: Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. ! Router(config)# vrf upgrade-cli multi-af-mode common-policies vrf vrf1 You are about to upgrade to the multi-AF VRF syntax commands. You will loose any IPv6 address configured on interfaces belonging to upgraded VRFs. Are you sure ? [yes]: yes Number of VRFs upgraded: 1 Router(config)# exit This example shows the multiprotocol VRF configuration after the forced migration: vrf definition vrf1 rd 1:1 route-target both 1:1 ! address-family ipv4 exit-address-family ! interface Loopback1 vrf forwarding V1 ip address 10.3.3.3 255.255.255.255 The following is another example of a multi-AF multiprotocol VRF configuration: vrf definition vrf2 rd 100:1 address family ipv6 route-target both 200:1 exit-address-family ! ip vrf vrf1 rd 200:1 route-target both 200:1 ! interface Ethernet0/0 vrf forwarding vrf2 ip address 10.50.1.2 255.255.255.0 ipv6 address 2001:0DB8:0:1::/64 ! interface Ethernet0/1 ip vrf forwarding vrf1 ip address 10.60.1.2 255.255.255.0 ipv6 address 2001:0DB8:1 :1::/64 In this example, all addresses (IPv4 and IPv6) defined for interface Ethernet0/0 are in VRF vrf2. For the interface Ethernet0/1, the IPv4 address is defined in VRF vrf1 but the IPv6 address is in the global IPv6 routing table. Additional ReferencesRelated DocumentsMIBsTechnical Assistance
Feature Information for MPLS VPN--VRF CLI for IPv4 and IPv6 VPNsThe following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Glossary6PE --IPv6 provider edge router or a Multiprotocol Label Switching (MPLS) label switch router (LSR) edge router using IPv6. 6VPE --IPv6 Virtual Private Network (VPN) provider edge router. AF --address family. Set of related communication protocols in which all members use a common addressing mechanism to identify endpoints. Also called protocol family. AFI --Address Family Identifier. Carries the identity of the network-layer protocol that is associated with the network address. BGP --Border Gateway Protocol. A routing protocol used between autonomous systems. It is the routing protocol that makes the internet work. BGP is a distance-vector routing protocol that carries connectivity information and an additional set of BGP attributes. These attributes allow for a set of policies for deciding the best route to use to reach a given destination. BGP is defined by RFC 1771. CE --customer edge router. A service provider router that connects to Virtual Private Network (VPN) customer sites. FIB --Forwarding Information Base. Database that stores information about switching of data packets. A FIB is based on information in the Routing Information Base (RIB). It is the optimal set of selected routes that are installed in the line cards for forwarding. HA --high availability. High availability is defined as the continuous operation of systems. For a system to be available, all components--including application and database servers, storage devices, and the end-to-end network--need to provide continuous service. IP --Internet Protocol. Network-layer protocol in the TCP/IP stack offering a connectionless internetwork service. IP provides features for addressing, type-of-service specification, fragmentation and reassembly, and security. IPv4 --IP Version 4. Network layer for the TCP/IP protocol suite. IPv4 is a connectionless, best-effort packet switching protocol. IPv6 --IP Version 6. Replacement for IPv4. IPv6 is a next-generation IP protocol. IPv6 is backward compatible with and designed to fix the shortcomings of IPv4, such as data security and maximum number of user addresses. IPv6 increases the address space from 32 to 128 bits, providing for an unlimited number of networks and systems. It also supports quality of service (QoS) parameters for real-time audio and video. MFI --MPLS Forwarding Infrastructure. In the Cisco MPLS subsystem, the data structure for storing information about incoming and outgoing labels and associated equivalent packets suitable for labeling. MPLS --Multiprotocol Label Switching. MPLS is a method for forwarding packets (frames) through a network. It enables routers at the edge of a network to apply labels to packets (frames). ATM switches or existing routers in the network core can switch packets according to the labels with minimal lookup overhead. PE --provider edge router. A router that is part of a service provider's network and that is connected to a customer edge (CE) router. The PE router function is a combination of an MLS edge label switch router (LSR) function with some additional functions to support Virtual Private Networks (VPNs). RD (IPv4)--route distinguisher. An 8-byte value that is concatenated with an IPv4 prefix to create a unique VPN IPv4 (VPNv4) prefix. RD (IPv6)--route distinguisher. A 64-bit value that is prepended to an IPv6 prefix to create a globally unique VPN-IPv6 address. RIB --Routing Information Base. The set of all available routes from which to choose the Forwarding Information Base (FIB). The RIB essentially contains all routes available for selection. It is the sum of all routes learned by dynamic routing protocols, all directly attached networks (that is-networks to which a given router has interfaces connected), and any additional configured routes, such as static routes. RT --route target. Extended community attribute used to identify the Virtual Private Network (VPN) routing and forwarding (VRF) routing table into which a prefix is to be imported. VPN --Virtual Private Network. Enables IP traffic to travel securely over a public TCP/IP network by encrypting all traffic from one network to another. A VPN uses "tunneling" to encrypt all information at the IP level. VRF --Virtual Private Network (VPN) routing and forwarding instance. A VRF consists of an IP routing table, a derived forwarding table, a set of interfaces that use the forwarding table, and a set of rules and routing protocols that determine what goes into the forwarding table. In general, a VRF includes the routing information that defines a customer VPN site that is attached to a PE router. VRF table --A routing and a forwarding table associated to a Virtual Private Network (VPN) routing and forwarding (VRF) instance. This is a customer-specific table, enabling the provider edge (PE) router to maintain independent routing states for each customer. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. © 2012 Cisco Systems, Inc. All rights reserved.
|
||||||||||||||||