Configuring Qos For Virtual Private Networks
Configuring Qos For Virtual Private Networks
Configuring Qos For Virtual Private Networks
This chapter describes the tasks for configuring the QoS for Virtual Private Networks (VPNs) feature.
For complete conceptual information, see the section “QoS for Virtual Private Networks” in the
“Classification Overview” chapter in this book.
For a complete description of the QoS for VPNs commands in this chapter, refer to the Cisco IOS Quality
of Service Solutions Command Reference. To locate documentation of other commands that appear in
this chapter, use the command reference master index or search online.
To identify the hardware platform or software image information associated with a feature, use the
Feature Navigator on Cisco.com to search for information about the feature or refer to the software
release notes for a specific release. For more information, see the “Identifying Supported Platforms”
section in the “Using Cisco IOS Software” chapter in this book.
For IPSec tunnels, the qos pre-classify command is applied on the crypto map, allowing configuration
on a per-tunnel basis. QoS features on the physical interface carrying the crypto map are able to classify
packets before encryption.
To configure the QoS for VPNs feature on a tunnel or virtual interface basis, use the following commands
beginning in global interface mode:
Command Purpose
Step 1 Router(config)# interface [tunnel-name | Enters interface configuration mode and specifies
virtual-template-name] the tunnel or virtual interface to configure.
Step 2 Router(config-if)# qos pre-classify Enables the QoS for VPNs feature.
To configure the QoS for VPNs feature on the crypto map configuration basis, use the following
commands beginning in global configuration mode:
Command Purpose
Step 1 Router(config)# crypto map [map-name] Enters crypto map configuration mode and
specifies the previously defined crypto map to
configure.
Step 2 Router(config-if)# qos pre-classify Enables the QoS for VPNs feature.
Note The show queue command output displays packet information, including whether the packet is
preclassified. In a congested environment, using the show queue command might assist in evaluating
the environment and reconfiguring your router.
Verifying QoS for VPNs with the show crypto map Command
To verify that the QoS for VPNs feature has been successfully enabled on a crypto map, use the
show crypto map command. The following line in the output (which is italicized for emphasis in the
example) verifies that the QoS for VPNs feature is successfully enabled.
QoS pre-classification
Command Purpose
Router# show interfaces [tunnel-name | virtual-template-name] Displays information regarding the tunnel or the
virtual template, including the queueing strategy.
Router# show crypto map [map-name] Displays information regarding the crypto map. If
the QoS for VPNs feature is enabled, a “QoS
preclassification” line will appear in the command
output.
Configuring QoS for VPNs for GRE and IPIP Tunnel Protocols Example
In the following example, tunnel0 is the tunnel name. The qos pre-classify command enables the QoS
for VPNs feature on tunnel0.
Router(config)# interface tunnel0
Router(config-if)# qos pre-classify
Configuring QoS for VPNs for L2F and L2TP Tunnel Protocols Example
In the following example, virtual-template1 is the virtual-template name. The qos pre-classify command
enables the QoS for VPNs feature on virtual-template1.
Router(config)# interface virtual-template1
Router(config-if)# qos pre-classify