Applying an ACL in DLSw

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a MAC-based Layer 2 ACL.

  • acl number acl-number [ match-order { auto | config } ]

  • rule [ rule-id ] { deny | permit } [ fragment | logging | source { sour-addr sour-wildcard | any } | time-range time-name | vpn-instance vpn-instance-name ] *

No Layer 2 ACL is configured by default.

3. Return to system view.

quit

N/A

4. Apply a MAC-based ACL to inbound traffic, outbound traffic, or both.

  • dlsw ethernet-frame-filter acl-number inbound

  • dlsw ethernet-frame-filter acl-number outbound

By default, no ACL is applied.

ACLs for inbound and outbound traffic can be configured at the same time.

For more information about creating a Layer 2 ACL, see HPE FlexNetwork MSR Router Series Comware 5 ACL and QoS Configuration Guide.