Configuration Guide
522
Configuring ACL
ACL Configurations
2.2 Using the CLI
2.2.1 Configuring ACL
Follow the steps to create different types of ACL and configure the ACL rules.
You can define the rules based on source or destination IP addresses, source or
destination MAC addresses, protocol type and so on.
Configuring the MAC ACL
Step 1
configure
Enter global configuration mode
Step 2
mac access-list
access-list-num
Input an MAC ACL ID to enter MAC Access-list mode. If it is a new ID , the ACL will be created
and the switch will enter MAC Access-list mode.
access-list-num:
Enter an ACL ID between 0 and 499.
Step 3
rule
rule-id
{deny | permit} [ [
smac
source-mac
]
smask
source-mac-mask
] [ [
dmac
destination-
mac
]
dmask
destination-mac-mask
]
Add an MAC ACL rule.
rule-id
: Specify the rule ID, which ranges from 0 to 999. It should not be the same as any
existing MAC ACL rule IDs
deny | permit
: Specify the operation to be performed with the packets that match the rule. By
default, it is set to permit. The packets will be discarded if “deny” is selected and forwarded if
“permit” is selected.
source-mac
: Enter the source MAC address. The format is FF:FF:FF:FF:FF:FF.
source-mac-mask
: Enter the mask of the source MAC address. This is required if a source MAC
address is entered. The format is FF:FF:FF:FF:FF:FF.
destination-mac
: Enter the destination MAC address. The format is FF:FF:FF:FF:FF:FF.
destination-mac-mask
: Enter the mask of the destination MAC address. This is required if a
destination MAC address is entered. The format is FF:FF:FF:FF:FF:FF.
Step 4
show access-list
[
access-list-num
]
(Optional) View the current ACL configuration.
access-list-num
: The ID number of the ACL.
Step 5
end
Return to privileged EXEC mode.
Step 6
copy running-config startup-config
Save the settings in the configuration file.
Содержание TL-SG2424
Страница 26: ...Part 1 Accessing the Switch CHAPTERS 1 Overview 2 Web Interface Access 3 Command Line Interface Access...
Страница 130: ...Part 4 Configuring LAG CHAPTERS 1 LAG 2 LAG Configuration 3 Configuration Example 4 Appendix Default Parameters...
Страница 147: ...Part 5 Monitoring Traffic CHAPTERS 1 Traffic Monitor 2 Appendix Default Parameters...
Страница 449: ...Part 15 Configuring ARP CHAPTERS 1 Overview 2 ARP Configurations...
Страница 508: ...Configuring Voice VLAN Configuration Guide 485...
Страница 768: ...Configuring SNMP RMON Appendix Default Parameters Configuration Guide 745 Parameter Default Setting Status Disable...