105
rule
Description
The
rule
command is used to configure MAC ACL rule. To delete the
corresponding rule, please use
no rule
command.
Syntax
rule
rule-id
{ deny | permit } [[
smac
source-mac
]
smask
source-mac-mask
]
[[
dmac
destination-mac
]
dmask
destination-mac-mask
]
no rule
rule-id
Parameter
rule-id
——
The rule ID.
deny
——
The operation to discard packets.
permit
——
The operation to forward packets. It is the default value.
source-mac
——
The source MAC address contained in the rule.
source-mac-mask
——
The source MAC address mask. It is required if you
typed the source MAC address.
destination-mac
——
The destination MAC address contained in the rule.
destination-mac-mask
——
The destination MAC address mask. It is required
if you typed the destination MAC address.
Command Mode
Mac Access-list Configuration Mode
Example
Create a MAC ACL whose ID is 20, and add Rule 10 for it. In the rule, the source
MAC address is 00:01:3F:48:16:23, the source MAC address mask is
11:11:11:11:11:00, and the packets match this rule will be forwarded by the
switch:
TL-SL2428(config)# mac access-list
20
TL-SL2428(config-mac-acl)# rule
10 permit
smac
00:01:3F:48:16:23
smask
11:11:11:11:11:00
access-list policy name
Description
The
access-list policy name
command is used to add Policy. To delete the
corresponding Policy, please use
no access-list policy name
command. A
Содержание TL-SL2210
Страница 1: ...TL SL2210 TL SL2218 TL SL2428 TL SL2452 Smart Switch REV1 1 0 1910010971...
Страница 43: ...33 Example Display the security configuration information of the users TL SL2428 config show user configuration...
Страница 54: ...44 Example Display the global configuration of SSH TL SL2428 config show ip ssh...
Страница 81: ...71 Example Show the cable diagnostics of port 3 TL SL2428 show cable diagnostics interface fastEthernet 1 0 3...