Configuring a MAC address-based ACL on the USG2000&5000&6000

1. Run the system-view command to access the system view.
2. Run the acl [ number ] acl-number command to create a MAC address-based ACL and access the ACL view.
An ACL whose number ranges from 4000 to 4999 is a MAC address-based ACL.
3. (Optional) Run the description text command to configure a description for the ACL.
Appropriate descriptions of ACLs help you to further manage the ACLs.
4. (Optional) Run the step step-value command to configure an ACL step.
The default value is 5.
After you set a step for the ACL, the system can automatically assign rule IDs if you do not specify the rule IDs. The automatically assigned rule IDs are multiple of the step in ascending order. The step allows you to insert rules between two rules.
You can set a step for an ACL only when no rule is configured for the ACL. After you configure an ACL rule, you are not allowed to change the step.
5. Run the rule [ rule-id ] { permit | deny } [ cos cos | dest-mac destination-address destination-mac-wildcard | source-mac source-address source-mac-wildcard | type { type-code | type-name } ] * [ description description ] command to create a rule for the MAC address-based ACL.
- If rule-id is not specified during the configuration, a new rule is added. In this case, the system automatically assigns a minimum number that is larger than the maximum number of the existing rule and integer times of the step to the new rule according to the step. For example, if the maximum number of the existing rule is 21 and the step is 5, the system assigns number 25 to the new rule.
- If rule-id is specified and the related rule with the same ID exists, the existing rule is edited. If no related rule with the same ID exists, a new rule is added and inserted to the corresponding position according to its rule-id.
- A new or modified rule should be different from any existing one; otherwise, the creation or modification fails and the system prompts you that the rule already exists.

Scroll to top