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

Troubleshooting Guide

CloudEngine 16800, 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

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 and Apply an IP-based Traffic Policy to Differentiate Internet Traffic?

How Do I Configure and Apply an IP-based Traffic Policy to Differentiate Internet Traffic?

When the CE needs to classify received Internet traffic, configure an IP-based traffic policy on the interface of the CE connected to the Internet in the inbound direction.

10GE1/0/1 on the CE is connected to the Internet. The CE needs to distribute received packets with the source IP address on 192.168.1.0/24 to 10GE1/0/2 and discard other packets.

<HUAWEI> system-view 
[~HUAWEI] acl 3000   //Create an ACL to match packets with the source IP address on 192.168.1.0/24.
[*HUAWEI-acl4-advance-3000] rule permit ip source 192.168.1.0 0.0.0.255
[*HUAWEI-acl4-advance-3000] quit
[*HUAWEI] traffic classifier redirect1
[*HUAWEI-classifier-redirect1] if-match acl 3000
[*HUAWEI-classifier-redirect1] quit
[*HUAWEI] traffic behavior redirect1
[*HUAWEI-behavior-redirect1] redirect interface 10ge 1/0/2
[*HUAWEI-behavior-redirect1] quit
[*HUAWEI] traffic classifier redirect2
[*HUAWEI-classifier-redirect2] if-match any  //Configure a matching rule to match all packets.
[*HUAWEI-classifier-redirect2] quit
[*HUAWEI] traffic behavior redirect2
[*HUAWEI-behavior-redirect2] deny
[*HUAWEI-behavior-redirect2] quit
[*HUAWEI] traffic policy redirect  //Create a traffic policy and bind traffic classifiers and traffic behaviors to the traffic policy.
[*HUAWEI-trafficpolicy-redirect] classifier redirect1 behavior redirect1 precedence 5  //The traffic classifier that references ACL 3000 has a higher priority, so this traffic classifier is first matched.
[*HUAWEI-trafficpolicy-redirect] classifier redirect2 behavior redirect2 precedence 10
[*HUAWEI-trafficpolicy-redirect] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] traffic-policy redirect inbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit
Translation
Download
Updated: 2020-01-07

Document ID: EDOC1000060766

Views: 604096

Downloads: 2938

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next