152
[Router-qospolicy-vpnBvoice] quit
# Nest the child QoS policies in the corresponding traffic behaviors of the parent QoS policy, and
configure EF in the traffic behaviors to guarantee 40 Mbps of bandwidth for VPN A and 35 Mbps of
bandwidth for VPNB.
[Router] traffic behavior publicvpnA
[Router-behavior-publicvpnA] gts cir 40000
[Router-behavior-publicvpnA] queue ef bandwidth 40000
[Router-behavior-publicvpnA] traffic-policy vpnAvoice
[Router-behavior-publicvpnA] quit
[Router] traffic behavior publicvpnB
[Router-behavior-publicvpnB] gts cir 35000
[Router-behavior-publicvpnB] queue ef bandwidth 35000
[Router-behavior-publicvpnB] traffic-policy vpnBvoice
[Router-behavior-publicvpnB] quit
# Associate the traffic classes with the corresponding traffic behaviors in the parent QoS policy.
[Router] qos policy publicvpn
[Router-qospolicy-publicvpn] classifier publicvpnA behavior publicvpnA
[Router-qospolicy-publicvpn] classifier publicvpnB behavior publicvpnB
[Router-qospolicy-publicvpn] quit
# Configure line rate on interface GigabitEthernet 2/1/3, set the maximum available bandwidth and
the maximum reserved bandwidth for interface GigabitEthernet 2/1/3, and apply the parent QoS
policy to the outgoing packets of interface GigabitEthernet 2/1/3.
[Router]interface GigabitEthernet 2/1/3
[Router-GigabitEthernet2/1/3] qos max-bandwidth 100000
[Router-GigabitEthernet2/1/3] qos reserved-bandwidth pct 100
[Router-GigabitEthernet2/1/3] qos lr outbound cir 100000
[Router-GigabitEthernet2/1/3] qos apply policy publicvpn outbound
Configuration example for reserving and sharing
bandwidth through interface-level hierarchical
CAR
Network requirements
A company has two agencies in site X and site Y. The agency in site X has two departments, A and B.
The agency in site Y has one department, C. Site X and site Y are connected through a service
provider WAN. Site X and site Y connect to the WAN through a 50-Mbps Ethernet link provided by
the service provider.
Department A is on network segment 192.168.0.0/24, and department B is on network segment
192.168.1.0/24. Each of department A and department B sends to department C three types of traffic,
voice, video, and data, whose IP precedence values are 7, 6, and 0, respectively. Each of the two
departments must reserve certain bandwidth for the voice, video, and data services, and share the
idle bandwidth when any service does not transmit traffic.
Configure interface-level hierarchical CAR to:
•
Reserve 3 Mbps of bandwidth for the voice traffic of department A and 4 Mbps of bandwidth for
the voice traffic of department B.