The VRF-Aware Software Infrastructure (VASI) feature allows you to apply services such as access control lists (ACLs), Network Address Translation (NAT), policing, and zone-based firewalls to traffic that flows across two different virtual routing and forwarding (VRF) instances. VASI interfaces support the redundancy of Route Processors (RPs) and Forwarding Processors (FPs). VASI interfaces support IPv4 and IPv6 unicast traffic.
This module describes how to configure VASI interfaces.
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see
Bug Search Tool and 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 module.
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.
Restrictions for Configuring the VRF-Aware Software Infrastructure
Multiprotocol Label Switching (MPLS) traffic over VASI interfaces is not supported.
IPv4 and IPv6 multicast traffic is not supported.
VASI interfaces do not support the attachment of queue-based features. The following commands are not supported on modular QoS CLI (MQC) policies that are attached to VASI interfaces:
bandwidth(policy-mapclass)
fair-queue
priority
queue-limit
random-detect
shape
The External Border Gateway Protocol (eBGP) is not supported.
Information About Configuring the VRF-Aware Software Infrastructure
VRF-Aware Software Infrastructure (VASI) provides the ability to apply services like a firewall, IPsec, and Network Address Translation (NAT) to traffic that flows across different virtual routing and forwarding (VRF) instances. VASI is implemented by using virtual interface pairs, where each of the interfaces in the pair is associated with a different VRF instance. The VASI virtual interface is the next hop interface for any packet that needs to be switched between these two VRF instances. VASI interfaces provide the framework to configure a firewall or NAT between VRF instances.
Each interface pair is associated with two different VRF instances. The association of the pairing is done automatically based on the two interface indexes such that vasileft x is automatically paired to vasiright x. For example, vasileft1 and vasiright1 are automatically paired, and a packet entering vasileft1 is internally handed over to vasiright1.
You can configure on VASI interfaces either static routing or dynamic routing with Internal Border Gateway Protocol (iBGP), Enhanced Interior Gateway Routing Protocol (EIGRP), or Open Shortest Path First (OSPF). iBGP dynamic routing protocol restrictions and configurations are valid for iBGP routing configurations between VASI interfaces.
The following figure shows an inter-VRF VASI configuration on the same device.
Figure 1. Inter-VRF VASI Configuration
When an inter-VRF VASI is configured on the same device, the packet flow happens in the following order:
A packet enters the physical interface that belongs to VRF1 (Gigabit Ethernet 0/2/0.3).
Before forwarding the packet, a forwarding lookup is done in the VRF1 routing table. Vasileft1 is chosen as the next-hop, and the time-to-live (TTL) value is decremented from the packet. Usually, the forwarding address is selected on the basis of the default route in the VRF. However, the forwarding address can also be a static route or a learned route. The packet is sent to the egress path of vasileft1 and then automatically sent to the vasiright1 ingress path.
When the packet enters vasiright1, a forwarding lookup is done in the VRF2 routing table, and the TTL is decremented again (second time for this packet).
VRF2 forwards the packet to the physical interface, Gigabit Ethernet 0/3/0.5.
The following figure shows how VASI works in a Multiprotocol Label Switching (MPLS) VPN configuration.
Note
In the following figure, MPLS is enabled on the Gigabit Ethernet interface, but MPLS traffic is not supported across VASI pairs.
Figure 2. VASI with an MPLS VPN Configuration
When VASI is configured with a Multiprotocol Label Switching (MPLS) VPN, the packet flow happens in the following order:
A packet arrives on the MPLS interface with a VPN label.
The VPN label is stripped from the packet, a forwarding lookup is done within VRF2, and the packet is forwarded to vasiright1. The TTL value is decremented from the packet.
The packet enters vasileft1 on the ingress path, and another forwarding lookup is done in VRF1. The packet is sent to the egress physical interface in VRF1 (Gigabit Ethernet 0/2/0.3). The TTL is again decremented from the packet.
How to Configure the VRF-Aware Software Infrastructure
Configuring a VASI Interface Pair
To configure a VASI interface pair, you must configure the
interface vasileft command on one interface and the interface vasiright command on the second interface. You can configure a VRF instance on any VASI interface. Perform this task to configure a VASI interface pair.
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.
Feature Information for Configuring the VRF-Aware Software Infrastructure
The 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.
Table 1 Feature Information for Configuring the VRF-Aware Software Infrastructure
Feature Name
Releases
Feature Information
VRF-Aware Software Infrastructure
Cisco IOS XE Release 2.6
The VRF-Aware Software Infrastructure feature allows you to apply services such as ACLs, NAT, policing, and zone-based firewalls to traffic that flows across two different VRF instances. The VASI interfaces support redundancy of the RP and FP. This feature supports IPv4 and IPv6 unicast traffic on VASI interfaces.
VASI (VRF-Aware Software Infrastructure) Enhancements Phase I
Cisco IOS XE Release 3.1S
The VASI Enhancements Phase II feature provides the following enhancements to VASI:
Support for 500 VASI interfaces.
Support for iBGP dynamic routing between VASI interfaces.
VASI (VRF-Aware Software Infrastructure) Enhancements Phase II
Cisco IOS XE Release 3.2S
The VASI Enhancements Phase II feature provides the following enhancements to VASI:
Support for IPv6 unicast traffic over VASI interfaces.
Support for OSPF and EIGRP dynamic routing between VASI interfaces.
VASI (VRF-Aware Software Infrastructure) Scale
Cisco IOS XE Release 3.3S
The VASI Scale feature provides support for 1000 VASI interfaces.
The following command was introduced or modified:
interface(VASI).