R3303-HP HSR6800 Routers ACL and QoS Configuration Guide

161
[Router-acl-adv-3000-video] quit
[Router] acl number 3001 name notvideo
[Router-acl-adv-3001-video] rule 0 deny udp destination-port eq 3000
[Router-acl-adv-3001-video] rule 1 permit ip
[Router-acl-adv-3001-video] quit
# Configure hierarchical CAR in the inbound direction of interface GigabitEthernet 2/1/0 to limit the
rate of video traffic to 30 Mbps, reserve 10 Mbps of bandwidth for non-video traffic, reserve 40 Mbps
of bandwidth for all traffic, and mark the traffic within the specification of 40 Mbps with IP precedence
7, prioritizing the green packets that have been processed by an upper-level CAR.
[Router] interface GigabitEthernet 2/1/0
[Router-GigabitEthernet2/1/0] qos car inbound acl 3000 cir 30000 green continue red discard
[Router-GigabitEthernet2/1/0] qos car inbound acl 3001 cir 10000 green continue red
continue
[Router-GigabitEthernet2/1/0] qos car inbound any cir 40000 green remark-prec-pass 7 red
pass
[Router-GigabitEthernet2/1/0] quit
# Configure ACL 3002 to match traffic with IP precedence 7.
[Router] acl number 3002
[Router-acl-adv-3002] rule 0 permit ip precedence 7
[Router-acl-adv-3002] quit
# Configure a routing policy to transmit the packets with IP precedence 7 over the secondary link, and
apply the policy to interface GigabitEthernet 2/1/0.
[Router] policy-based-route backup node 1
% New sequence of this list.
[Router-pbr-backup-1] if-match acl 3002
[Router-pbr-backup-1] apply ip-address next-hop 11.0.0.2
[Router-pbr-backup-1] quit
[Router] interface GigabitEthernet 2/1/0
[Router-GigabitEthernet2/1/0] ip policy-based-route backup
# Limit the rate to 100 Mbps on interface GigabitEthernet 2/1/1.
[Router] interface GigabitEthernet 2/1/1
[Router-GigabitEthernet2/1/1] qos car outbound any cir 100000 green pass red discard