Chapter 4
Attaching Service Policies
Attaching Virtual Access Interface QoS Service Policies
Example 4-19
shows how to use a virtual template interface to apply a QoS policy to PPPoE sessions.
The example configuration shows how to create a virtual template interface, apply the virtual template
to a BBA group, and apply the BBA group to an interface or subinterface. The QoS policy named policy1
is applied to the virtual template interface named Virtual-Template1; Virtual-Template1 is applied to the
BBA group named VPN_1; and VPN_1 is applied to the ATM interface 5/0, which is configured for
aalsnap encapsulation. The QoS policy named voice1 is applied to the virtual template interface named
Virtual-Template2; Virtual-Template2 is applied to the BBA group named VPN_2; and VPN_2 is applied
to the FastEthernet subinterface 3/0/0.33, which is configured as a VLAN subinterface.
Example 4-19 Applying a QoS Policy to PPPoE Sessions Using a Virtual Template on a VLAN
Subinterface
Router(config)# interface Virtual-Template1
Router(config-if)# ip unnumbered Loopback0
Router(config-if)# mtu 1492
Router(config-if)# peer default ip address pool pool1
Router(config-if)# ppp authentication chap
Router(config-if)# service-policy input policy1
Router(config)# interface Virtual-Template2
Router(config-if)# ip unnumbered Loopback1
Router(config-if)# no peer default ip address
Router(config-if)# ppp authentication chap
Router(config-if)# ppp authorization
Router(config-if)# service-policy input voice1
Router(config)# bba-group pppoe VPN_1
Router(config-bba)# virtual-template 1
Router(config-bba)# sessions per-vc limit 5
Router(config-bba)# sessions per-mac limit 10
Router(config-bba)# sessions per-vlan limit 5
!
!
Router(config)# bba-group pppoe VPN_2
Router(config-bba)# virtual-template 2
Router(config-bba)# sessions per-vc limit 5
Router(config-bba)# sessions per-mac limit 10
Router(config-bba)# sessions per-vlan limit 5
!
!
Router(config)# interface atm 5/0
Router(config-if)# protocol pppoe group VPN_1
Router(config-if)# encapsulation aalsnap
!
Router(config)# interface FastEthernet 3/0/0.33
Router(config-subif)# protocol pppoe group VPN_2
Router(config-subif)# encapsulation dot.1q 5
!
!
Cisco 10000 Series Router Quality of Service Configuration Guide
4-29
OL-7433-09