This example shows how to create an ACL that permits IP traffic from any source to any destination that has
the DSCP value set to 32:
Switch(config)#
access-list 100 permit ip any any dscp 32
This example shows how to create an ACL that permits IP traffic from a source host at 10.1.1.1 to a destination
host at 10.1.1.2 with a precedence value of 5:
Switch(config)#
access-list 100 permit ip host 10.1.1.1 host 10.1.1.2 precedence 5
This example shows how to create an ACL that permits PIM traffic from any source to a destination group
address of 224.0.0.2 with a DSCP set to 32:
Switch(config)#
access-list 102 permit pim any 224.0.0.2 dscp 32
This example shows how to create an ACL that permits IPv6 traffic from any source to any destination that
has the DSCP value set to 32:
Switch(config)#
ipv6 access-list 100 permit ip any any dscp 32
This example shows how to create an ACL that permits IPv6 traffic from a source host at 10.1.1.1 to a
destination host at 10.1.1.2 with a precedence value of 5:
Switch(config)#
ipv6 access-list ipv6_Name_ACL permit ip host 10::1 host 10.1.1.2
precedence 5
This example shows how to create a Layer 2 MAC ACL with two permit statements. The first statement
allows traffic from the host with MAC address 0001.0000.0001 to the host with MAC address 0002.0000.0001.
The second statement allows only Ethertype XNS-IDP traffic from the host with MAC address 0001.0000.0002
to the host with MAC address 0002.0000.0002.
Switch(config)#
mac access-list extended maclist1
Switch(config-ext-macl)#
permit 0001.0000.0001 0.0.0 0002.0000.0001 0.0.0
Switch(config-ext-macl)#
permit 0001.0000.0002 0.0.0 0002.0000.0002 0.0.0 xns-idp
! (Note: all other access implicitly denied)
Related Topics
Creating an IP Standard ACL for IPv4 Traffic, on page 584
Creating an IP Extended ACL for IPv4 Traffic, on page 586
Creating an IPv6 ACL for IPv6 Traffic, on page 588
Creating a Layer 2 MAC ACL for Non-IP Traffic, on page 590
Examples: Classifying Traffic by Using Class Maps
This example shows how to configure the class map called
class1
. The
class1
has one match criterion, which
is access list 103. It permits traffic from any host to any destination that matches a DSCP value of 10.
Switch(config)#
access-list 103 permit ip any any dscp 10
Switch(config)#
class-map class1
Switch(config-cmap)#
match access-group 103
Switch(config-cmap)#
end
Switch#
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
632
Configuration Examples for QoS
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......