DGS-1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide
39
Usage Guideline
The command with parameter
access-group
will enable the ACL hardware counter for all ports that
have applied the specified access-list name or number. The number of packets, that match each rule,
are counted.
The command with parameter
vlan-filter
will enable the ACL hardware counter for all VLAN(s) that
have applied the specified VLAN access-map. The number of packets that permitted by each access
map are counted.
Example
This example shows how to enable the ACL hardware counter.
Switch# configure terminal
Switch(config)# acl-hardware-counter access-group abc
Switch(config)#
4-3
action
This command is used to configure the forward, drop, or redirect action of the sub-map in the VLAN
access-map sub-map configuration mode. Use the
no
form of this command to revert to the default
setting.
action {forward | drop | redirect INTERFACE-ID}
no action
Parameters
forward
Specifies to forward the packet when matched.
drop
Specifies to drop the packet when matched.
redirect INTERFACE-ID
Specifies the interface ID for the redirection action. Only physical
ports are allowed to be specified.
Default
By default, the action is
forward
.
Command Mode
VLAN Access-map Sub-map Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
One sub-map has only one action. The action configured later overwrites the previous action. A VLAN
access map can contain multiple sub-maps. The packet that matches a sub-map (a packet permitted
by the associated access-list) will take the action specified for the sub-map. No further checking
against the next sub-maps is done. If the packet does not match a sub-map, then the next sub-map
will be checked.
Example
This example shows how to configure the action in the sub-map.
Содержание DGS-510
Страница 1: ...1 ...
Страница 287: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 284 ...
Страница 321: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 318 ...
Страница 493: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 490 ...
Страница 733: ...DGS 1510 Series Gigabit Ethernet SmartPro Switch CLI Reference Guide 730 ...