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

Common Operation Guide

CloudEngine 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).
Using a Traffic Policy to Redirect Packets

Using a Traffic Policy to Redirect Packets

Redirecting Packets to a Specified Interface

Configure the device to redirect packets on network segment 192.168.1.0 to 10GE1/0/2.

<HUAWEI> system-view 
[~HUAWEI] acl 2000
[*HUAWEI-acl4-basic-2000] rule permit source 192.168.1.0 0.0.0.255
[*HUAWEI-acl4-basic-2000] quit
[*HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] if-match acl 2000
[*HUAWEI-classifier-c1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect interface 10ge 1/0/2
[*HUAWEI-behavior-b1] quit
[*HUAWEI] traffic policy p1
[*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[*HUAWEI-trafficpolicy-p1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] traffic-policy p1 inbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit

Redirecting Packets to a Next Hop

Configure the device to redirect packets on network segment 192.168.1.10 to the next-hop address of 10.30.30.2.

<HUAWEI> system-view 
[~HUAWEI] acl 2000
[*HUAWEI-acl4-basic-2000] rule permit source 192.168.1.10 0.0.0.0
[*HUAWEI-acl4-basic-2000] quit
[*HUAWEI] traffic classifier c1
[*HUAWEI-classifier-c1] if-match acl 2000
[*HUAWEI-classifier-c1] quit
[*HUAWEI] traffic behavior b1
[*HUAWEI-behavior-b1] redirect nexthop 10.30.30.2
[*HUAWEI-behavior-b1] quit
[*HUAWEI] traffic policy p1
[*HUAWEI-trafficpolicy-p1] classifier c1 behavior b1
[*HUAWEI-trafficpolicy-p1] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] traffic-policy p1 inbound
[*HUAWEI-10GE1/0/1] quit
[*HUAWEI] commit
Translation
Download
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 192644

Downloads: 3212

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