3Com 10014298 manual Displaying and Debugging an ACL, Activate ACL

Models: 10014298

1 294
Download 294 pages 41.59 Kb
Page 154
Image 154

154 CHAPTER 7: QOS/ OPERATION

Table 166 Define Layer-2 ACL

Operation

Command

 

 

Add a sub-item to the ACL (from Layer-2 ACL

rule [ rule-id] { permit deny } [

view)

protocol-type ] [ format-type ] ingress { {

 

source-vlan-id source-mac-addr } any }

 

egress { [ dest-mac-addrany }] [ time-range

 

name ]

Delete a sub-item from the ACL (from Layer-2

undo rule rule-id

ACL view)

 

Delete one ACL or all the ACL (from system view)

undo acl { number acl-number name acl-name all }

A Layer-2 ACL can be identified with numbers ranging from 4000 to 4999.

If you assign an ACL to an interface and then make changes to the ACL, you must reassign the ACL to the interface before the changes to the ACL will apply on the interface.

Activating an ACL A defined ACL can be active after being enabled globally on the switch. This function is used to activate ACL filtering or to classify the data transmitted by the hardware of the switch.

Perform the following configuration in Qos view.

Table 167 Activate ACL

Operation

Command

 

 

Activate an ACL

packet-filter inbound { ip-group {

 

acl-number acl-name } [ rule rule ]

 

link-group{ acl-number acl-name } [ rule

 

rule ] } [ not-care-for-interface ]

Deactivate an ACL

undo packet-filter inbound { ip-group {

 

acl-number acl-name } [ rule rule ]

 

link-group{ acl-number acl-name } [ rule

 

rule ] } [ not-care-for-interface ]

 

 

ARP packets are always permitted to pass through the switch. You can't use the packet-filtercommand to filter ARP packets.

See the Switch 7750 Command Reference Guide for additional details.

Displaying and Debugging an ACL

After you configure an ACL, execute the display command in all views to display the ACL configuration, and to verify the effect of the configuration. Execute the reset command in user view to clear the statistics of the ACL module.

Table 168 Display and Debug ACL

Operation

Command

 

 

Display the status of the time range

display time-range [ all name ]

Display the detail information about the ACL

display acl config { all acl-number

 

acl-name }

Display the ACL mode chosen by the switch

display acl mode

Page 154
Image 154
3Com 10014298 manual Displaying and Debugging an ACL, Activate ACL