605
Configuring QoS
Configuring QoS
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
Creating Layer 2 MAC ACLs
Beginning in privileged EXEC mode, follow these steps to create a Layer 2 MAC ACL for non-IP traffic:
To delete an access list, use the
no mac access-list extended
access-list-name
global configuration command.
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
Switch(config-ext-macl)#
exit
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
mac access-list extended
name
Create a Layer 2 MAC ACL by specifying the name of the list and enter
extended MAC ACL configuration mode.
3.
permit
{
host
src-MAC-addr mask
|
any
|
host
dst-MAC-addr
|
dst-MAC-addr
mask
} [
type mask
]
Always use the
permit
keyword for ACLs used as match criteria in QoS
policies.
For
src-MAC-addr
, enter the MAC address of the host from which
the packet is being sent. You can specify in hexadecimal format
(H.H.H), use the
any
keyword for
source
0.0.0,
source-wildcard
ffff.ffff.ffff, or use the
host
keyword for
source
0.0.0.
For
mask,
enter the wildcard bits by placing ones in the bit positions
that you want to ignore.
For
dst-MAC-addr
, enter the MAC address of the host to which the
packet is being sent. You can specify in hexadecimal format (H.H.H),
use the
any
keyword for
source
0.0.0,
source-wildcard
ffff.ffff.ffff, or
use the
host
keyword for
source
0.0.0.
(Optional) For
type mask
, specify the Ethertype number of a packet
with Ethernet II or SNAP encapsulation to identify the protocol of the
packet. For
type
, the range is from 0 to 65535, typically specified in
hexadecimal. For
mask
, enter the
don’t care
bits applied to the
Ethertype before testing for a match.
4.
end
Return to privileged EXEC mode.
5.
show access-lists
[
access-list-number
|
access-list-name
]
Verify your entries.
6.
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...