Switch 7700 Command reference Guide, v2.0

Table Of Contents
278 CHAPTER 7: USING QOS/ACL COMMANDS
the packet, and [ source-mac-addr ] specifies the source MAC address of the
data packets.
any represents all the packets received from all the ports.
egress { [ dest-vlan-id ] [ dest-mac-addr ] | any }: Specifies the destination
information of data packets.
dest-vlan-id specifies the destination VLAN of the
packet,
dest-mac-addr specifies the destination MAC address of the data
packets.
any represents all the packets forwarded by all the ports.
Description
Use the rule command to add a rule to an ACL.
Use the undo rule command to cancel a rule from an ACL.
You can add a lot of rules to an ACL. If you input the parameter when use the
undo rule command, the system will delete the corresponding content of the rule
according to the parameter input.
For related configurations, refer to command acl.
Example
Add a rule to an advanced ACL.
[SW7700-acl-adv-100]rule 1 permit tcp established source 1.1.1.1 0
destination 2.2.2.2 0
Add a rule to a basic ACL.
[SW7700-acl- basic-1]rule 1 permit source 1.1.1.1 0 fragment
Add a rule to an interface-based ACL.
[SW7700-acl-if-1000]rule 1 permit interface Vlan-interface 1
Add a rule to an L2 ACL.
[SW7700-acl-link-200]rule 1 permit ingress 1 egress any
time-range Syntax
time-range time-name [ start-time to end-time ] [ days-of-the-week ]
[ from start- date] [ to end-date ]
undo time-range time-name [ start-time to end-time ] [
days-of-the-week ] [ from start- date] [ to end-date ]
View
System view
Parameter
time-name: Name of a special time range to be referenced.
start-time: Start time of the special time range, format as hh:mm.
end-time: End time of the special time range, format as hh:mm.