Brief Introduction to ACL
135
Table 138
Defining the User-defined ACL
rule-string
is a character string defined by a user. It is made up of a
hexadecimal character string with even digits of characters.
rule-mask offset
is
used to extract the packet information. Here,
rule-mask
is rule mask, used for
logical AND operation with bytes from the data packets and corresponding bytes
from the rule-mask and offset determines the start location of the rule-mask in the
packet.
rule-mask offset
extracts a character string from the packet and
compares it with the user-defined rule-string to identify and process the matched
packets.
Activating ACL
The defined ACL can be active after being activated globally on the Switch. This
function is used to activate the ACL filtering or classify the data transmitted by the
hardware of the Switch.
You can use the following command to activate the defined ACL.
Perform the following configuration in Ethernet Port View.
Table 139
Activate ACL
Displaying and
Debugging ACL
After the above configuration, execute
display
command in all views to display
the running of the ACL configuration, and to verify the effect of the configuration.
Execute
reset
command in User View to clear the statistics of the ACL module.
Table 140
Display and Debug ACL
Operation
Command
Enter user-defined ACL view (from System
View)
acl number
acl_number
[
match-order { config | auto } ]
Add a sub-item to the ACL (from
User-defined ACL View)
rule [
rule_id
] { permit | deny
} {
rule_string rule_mask offset
}&<1-8> ]
Delete a sub-item from the ACL (from
User-defined ACL View)
undo rule
rule_id
Delete one ACL or all the ACL (from System
View)
undo acl { number
acl_number
|
all }
Operation
Command
Activate an ACL
packet-filter { inbound | outbound } { user-group
acl_number
[ rule
rule
] | ip-group
acl_number
[ rule
rule
[ link-group
acl_number
rule
rule
] ] |
link-group
acl_number
[ rule
rule
] }
Deactivate an ACL
undo packet-filter { inbound | outbound } {
user-group
acl_number
[ rule
rule
] | ip-group
acl_number
[ rule
rule
[ link-group
acl_number
rule
rule
] ] | link-group
acl_number
[ rule
rule
] }
Operation
Command
Display the detail information about the
ACL
display acl { all |
acl_number
}
Display the information about the ACL
running state
display packet-filter { interface {
interface_name
|
interface_type
interface_num
} | unitid
unit_id
}
Clear ACL counters
reset acl counter { all |
acl_number
}
Содержание 400 Family
Страница 12: ......
Страница 16: ...14 ABOUT THIS GUIDE ...
Страница 58: ...56 CHAPTER 2 PORT OPERATION ...
Страница 68: ...66 CHAPTER 3 VLAN OPERATION ...
Страница 98: ...96 CHAPTER 5 NETWORK PROTOCOL OPERATION ...
Страница 124: ...122 CHAPTER 6 IP ROUTING PROTOCOL OPERATION ...
Страница 156: ...154 CHAPTER 8 ACL CONFIGURATION ...
Страница 218: ...216 CHAPTER 11 802 1X CONFIGURATION ...
Страница 298: ...296 CHAPTER 13 PASSWORD CONTROL CONFIGURATION OPERATIONS ...
Страница 336: ...334 APPENDIX B RADIUS SERVER AND RADIUS CLIENT SETUP ...