No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR Router Troubleshooting Guide

This Product Documentation provides guidance for maintaining AR Enterprise Router, covering common information collection and fault diagnostic commands, typical fault troubleshooting guide, and troubleshooting.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
How Do I Configure Access Control?

How Do I Configure Access Control?

Procedure

  • Run the traffic-filter command in the interface view.

    NOTE:

    The device supports ACL-based packet filtering on WAN interfaces and logical interfaces with Layer 3 features.

    <Huawei> system-view
    [Huawei] acl 3000
    [Huawei-acl-adv-3000] rule 5 permit ip source 192.168.0.2 0 // Allow packets with the source IP address 192.168.0.2/32 to pass through.
    [Huawei-acl-adv-3000] quit
    [Huawei] interface gigabitethernet 0/0/2
    [Huawei-GigabitEthernet0/0/2] traffic-filter inbound acl 3000 // Apply the ACL-based simplified traffic policy to an interface.
  • Run the traffic-policy command in the interface view.

    <Huawei> system-view
    [Huawei] acl 3000
    [Huawei-acl-adv-3000] rule 5 permit ip source 192.168.0.2 0 // Allow packets with the source IP address 192.168.0.2/32 to pass through.
    [Huawei-acl-adv-3000] quit
    [Huawei] traffic classifier c1 // Create a traffic classifier that matches the ACL.
    [Huawei-classifier-c1] if-match acl 3000
    [Huawei-classifier-c1] quit
    [Huawei] traffic behavior b1 // Create a traffic behavior and configure the permit or deny action for packets.
    [Huawei-behavior-b1] permit
    [Huawei-behavior-b1] quit
    [Huawei] traffic policy p1 // Create a traffic policy and bind the traffic classifier and traffic behavior to the traffic policy.
    [Huawei-trafficpolicy-p1] classifier c1 behavior b1
    [Huawei-trafficpolicy-p1] quit
    [Huawei] interface gigabitethernet 0/0/2
    [Huawei-GigabitEthernet0/0/2] traffic-policy p1 inbound // Apply the traffic policy to an interface.
Translation
Download
Updated: 2019-05-10

Document ID: EDOC1000079719

Views: 448708

Downloads: 4305

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next