ACL Commands
Page 41
deny (MAC)
The
deny
MAC-Access List Configuration mode command denies
traffic if the conditions defined in the deny
statement match.
Syntax
deny
[
disable-port
] {
any
| {
source source-wildcard
} {
any
| {
destination destination- wildcard
}}[
vlan
vlan-id
]
[
cos cos
cos-wildcard
] [
ethtype
eth-type
]
Parameters
•
disable-port
— Indicates that the port is disabled if the statement is deny.
•
source
— Specifies the MAC address of the host from which the packet was sent.
•
source-wildcard
— (Optional for the first type) Specifies wildcard bits by placing 1s in bit positions to be
ignored.
•
destination
— Specifies the MAC address of the host to which the packet is being sent.
•
destination-wildcard
— (Optional for the first type) Specifies wildcard bits by placing 1s in bit positions to be
ignored.
•
vlan-id
— Specifies the ID of the packet vlan.
•
cos
— Specifies the packets’s Class of Service (CoS).
•
cos-wildcard
— Specifies wildcard bits to be applied to the CoS.
•
eth-type
— Specifies the packet’s Ethernet type.
Default Configuration
This command has no default configuration.
Command Mode
MAC-Access List Configuration mode
User Guidelines
•
MAC BPDU packets cannot be denied.
•
This command defines an Access Control Element (ACE). An ACE can only be removed by deleting the ACL,
using the
no mac access-list
Global Configuration mode command. Alternatively, the Web-based interface
can be used to delete ACEs from an ACL.
•
Before an Access Control Element (ACE) is added to an ACL, all packets are permitted. After an ACE is
added, an implied
deny-any-any
condition exists at the end of the list and those packets that do not match
the conditions defined in the permit statement are denied.
•
If the VLAN ID is specified, the policy map cannot be connected to the VLAN interface.
Examples
The following example shows how to create a MAC ACL with deny rules.
Console(config)#
mac access-list
macl1
Console (config-mac-acl)#
deny
6:6:6:6:6:6:0:0:0:0:0:0
any
Summary of Contents for DXS-3227 - xStack Switch - Stackable
Page 12: ...Page 11 ...
Page 46: ...ACL Commands Page 45 ...
Page 68: ...Address Table Commands Page 67 ...
Page 124: ...Ethernet Configuration Commands Page 123 ...
Page 134: ...GVRP Commands Page 133 ...
Page 144: ...IGMP Snooping Commands Page 143 ...
Page 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Page 166: ...IP Addressing Commands Page 165 ...
Page 186: ...Line Commands Page 185 ...
Page 194: ...Management ACL Commands Page 193 ...
Page 200: ...PHY Diagnostics Commands Page 199 ...
Page 208: ...Port Monitor Commands Page 207 ...
Page 216: ...Power over Ethernet Commands Page 215 ...
Page 272: ...RMON Commands Page 271 ...
Page 334: ...Spanning Tree Commands Page 333 ...
Page 428: ...VLAN Commands Page 427 ...
Page 466: ...802 1x Commands Page 465 ...