Owners manual

DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
48
4-12 mac access-group
This command is used to specify a MAC access list to be applied to an interface. Use the no command to
remove the access group control from the interface.
mac access-group {NAME | NUMBER} [in]
no mac access-group [NAME | NUMBER] [in]
Parameters
NAME
Specifies the name of the MAC access list to be applied.
NUMBER
Specifies the number of the MAC access list to be applied.
in
(Optional) Specifies that the MAC access list will be applied to check in
the ingress direction. If direction is not specified, in is used.
Default
None.
Command Mode
Interface Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
If MAC access group is already configured on the interface, the command applied later will overwrite the
previous setting. MAC access-groups will only check non-IP packets.
Only one access list of the same type can be applied to the same interface; but access lists of different
types can be applied to the same interface.
The association of an access group with an interface will consume the filtering entry resource in the
switch controller. If the resource is insufficient to commit the command, then an error message will be
displayed.
Example
This example shows how to apply the MAC access list daily-profile to Ethernet port 5/0/1.
Switch# configure terminal
Switch(config)# interface eth5/0/1
Switch(config-if-gi)# mac access-group daily-profile in
The remaining applicable MAC access entries are 204
Switch(config-if-gi)#
4-13 mac access-list
This command is used to create or modify an MAC access list and this command will enter the MAC
access list configuration mode. Use the no command to delete a MAC access list.
mac access-list extended NAME [NUMBER]
no mac acces-list extended {NAME | NUMBER}