ESR service routers. ESR-Series. Functionality description. Version 1.12.0
116
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
esr(config-
class
-policy-map)# exit
esr(config-policy-map)#
class
fl2
esr(config-
class
-policy-map)# shape average
60000
esr(config-
class
-policy-map)# exit