![background image](http://html1.mh-extra.com/html/xenya/xs26gs/xs26gs_user-manual_3274837170.webp)
XS26GS Managed Optical Ethernet Switch User Manual
165
System view
Parameters
acl-number
: Required, between 1 to 30
all
: All the ACL number.
Description
Use
acl number
acl-number
command to
create an ACL and enter the ACL view.
Use
no acl number {
acl-number
| all}
command to delete an ACL or all.
Note that the number from 1 to 10 is for basic ACL, the number from 11 to 20 is for
advanced ACL, and the number from 21 to 30 is for L2 ACL.
Examples
XS# acl number 3
XS(ACL-basic-3)#
rule
Syntax
rule
rule-id
{permit| deny}
rule-string
no rule {
rule-id
| all}
View
ACL view
Parameters
rule-id
: Required, between 1 to 10.
permit
,
deny
: specifies whether the rule is to permit or deny access.
rule-string
: ACL rule string. The string format varies with the type of ACL. For
example, for basic ACL , the valid rule string is “
source-ip
ip-address netmask”;
for
advanced ACL, the valid rule string is
“
source-ip
ip-address netmask
[source-port
port-number
]
destination
ip-address netmask
[destination-port
port-number
]
”; for L2 ACL, the valid rule string is “
source-mac
mac-address
mac-address-mask
destination
mac-address mac-address-mask
”.
all
: the command is applied to all the rule IDs.
Description
Use
rule
rule-id
{permit| deny}
rule-string
command to define an ACL rule.
Use
no rule {
rule-id
| all}
command to delete a specific rule or all rules of this ACL.
Examples
XS# acl number 2
XS(ACL-basic-2)# rule 1 permit source-ip 192.168.0.111 255.255.255.0
Configure successfully!
packet-filter acl-number
Syntax