Protection from unauthorized access
Basic - L3P
Release
3.1
06/07
6.6
Access Control Lists (ACL)
97
6.6.5 Configuring priorities with IP ACLs
Example: Extended ACL with prioritizing using IP precedence (Layer 3),
see
“IP ToS / DiffServ” on page 139.
enable
configure
Switch to the privileged EXEC mode.
Switch to the configuration mode.
access-list 102 permit ip
any any precedence 0 assign-
queue 2
access-list 102 permit ip
any any precedence 1 assign-
queue 0
access-list 102 permit ip
any any precedence 2 assign-
queue 1
access-list 102 permit ip
any any precedence 3 assign-
queue 3
access-list 102 permit ip
any any precedence 4 assign-
queue 4
.
.
access-list 102 permit ip
any any precedence 7 assign-
queue 7
Create the extended ACL 102 with the first rule.
This rule assigns the priority 2 to Precedence 0.
Add to ACL 102 a further rule. This rule assigns
the priority 0 to Precedence 1.
Add to ACL 102 a further rule. This rule assigns
the priority 1 to Precedence 2.
Add to ACL 102 a further rule. This rule assigns
the priority 3 to Precedence 3.
Add to ACL 102 a further rule. This rule assigns
the priority 4 to Precedence 4.
.
.
.
Add to ACL 102 a further rule. This rule assigns
the priority 7 to Precedence 7.
exit
show ip access-lists 102
Switch to the privileged EXEC mode.
Display the rules of ACL 102.