User Manual

Table Of Contents
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Adds a comment (remark) to the already-generated MAC access list.
If this is executed with the "no" syntax, the comment is deleted from the MAC access list.
[Note]
You can use this command to add a comment even after the access list has been applied to LAN/SFP+ port and logical
interface. (The last-written comment overwrites the previous one.)
[Example]
Create MAC access list #2000 which denies frames from MAC address 00-A0-DE-12-34-56, and add the comment "Test."
SWP2(config)#access-list 2001 deny mac 00A0.DE12.3456 0000.0000.0000 any
SWP2(config)#access-list 2001 description Test
9.1.9 Apply MAC access list
[Syntax]
access-group mac-acl-id direction
no access-group mac-acl-id direction
[Parameter]
mac-acl-id : <2001-3000>
ID of MAC access list to apply
direction : Specifies the direction of applicable frames
Setting value Description
in Apply to received frames
[Initial value]
none
[Input mode]
interface mode
[Description]
Applies a MAC access list to both LAN/SFP+ port and logical interface.
If the received frame matches the conditions in the access list, the action in the access list will be the action (permit, deny) for
the corresponding frame.
If this is executed with the "no" syntax, the applied access list is deleted from both LAN/SFP+ port and logical interface.
[Note]
It is not possible to register multiple access lists for a single interface.
The following restrictions apply.
An LAN/SFP+ port for which an incoming frames access list is specified cannot be associated to an logical interface.
An incoming frames access list cannot be applied to an LAN/SFP+ port that is associated with an logical interface. However, if
an access list setting for incoming frames is specified for an LAN/SFP+ port that is associated with an logical interface in the
startup config, then the setting for the lowest-numbered port is applied to the logical interface.
[Example]
Apply access list #2001 to received frames of LAN port #1.
SWP2(config)#interface port1.1
SWP2(config-if)#access-group 2001 in
Command Reference | Traffic control | 233