I am trying to classify traffic on ingress port/vlan and remark DSCP values in them. Not sure if I use only "if" statement or "if match any/all" statement? What is the difference between any and all?
I also got an error while trying to use the ACL via a policy file.
"Error: Policy Test has syntax errors
Line 4 : Attribute source-address already exists as a match statement in Acl entry. "
CLI given below:-
SWT-01 # vi qos-1.pol
entry replace_DSCP_40 {
if match all {
source-address
10.53.5.16/29 ;
source-address
10.53.5.24/29 ;
source-address
10.53.5.32/30 ;
source-address
10.53.5.36/30 ;
source-address
10.53.5.40/30 ;
source-address
10.53.5.44/30 ;
source-address
10.53.5.48/28 ;
source-address
10.53.5.64/28 ;
source-address
10.53.5.80/30 ;
source-address
10.53.5.84/30 ;
source-address
10.53.5.88/30 ;
source-address
10.53.5.92/30 ;
}
then {
qosprofile qp8 ;
replace-dscp ;
}
}
configure diffserv replacement qp8 code-point 40
configure access-list qos-1 VLAN/PORT [ingress|egress]
save