86
ESR Series Routers Operation Manual
7.25.2
Extended QoS
Objective
: Classify incoming traffic by a subnet (10.0.11.0/24, 10.0.12.0/24), label it by DSCP (38
and 42) and segregate by a subnet (40Mbps and 60Mbps), limit general bandwidth to 250Mbps, process
the rest of traffic using SFQ mechanism.
Fig. 7.27
—
Network structure
Solution:
Configure access control lists for filtering by a subnet, proceed to global configuration mode:
esr(config)#
ip access-list extended fl1
esr(config-acl)#
rule 1
esr(config-acl-rule)#
action permit
esr(config-acl-rule)#
match protocol any
esr(config-acl-rule)#
match source-address 10.0.11.0 255.255.255.0
esr(config-acl-rule)#
match destination-address any
esr(config-acl-rule)#
enable
esr(config-acl-rule)#
exit
esr(config-acl)#
exit
esr(config)#
ip access-list extended fl2
esr(config-acl)#
rule 1
esr(config-acl-rule)#
action permit
esr(config-acl-rule)#
match protocol any
esr(config-acl-rule)#
match source-address 10.0.12.0 255.255.255.0
esr(config-acl-rule)#
match destination-address any
esr(config-acl-rule)#
enable
esr(config-acl-rule)#
exit
esr(config-acl)#
exit
Create classes fl1 and fl2, specify the respective access control lists, configure labelling:
esr(config)#
class-map fl1
esr(config-class-map)#
set dscp 38
esr(config-class-map)#
match access-group fl1
esr(config-class-map)#
exit
esr(config)#
class-map fl2
esr(config-class-map)#
set dscp 42
esr(config-class-map)#
match access-group fl2
esr(config-class-map)#
exit
Create policy and define general bandwidth limits:
esr(config)#
policy-map fl
esr(config-policy-map)#
shape average 250000
Map class to policy, configure bandwidth limit and exit:
esr(config-policy-map)#
class fl1
esr(config-class-policy-map)#
shape average 40000