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>


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


Redirect traffic to specific nexthop IP

Publication Date:  2017-08-22 Views:  196 Downloads:  0
Issue Description

Customer needed to redirect traffic to specific output interface after matching specific rules of TCP/UDP ports and specific source/destination IPs.

He tried to use Policy Based Routing for this, but he could apply the PBR only on P2P Tunnel interface.



--> Configure ACL that need to match de traffic to be redirected (for example acl 3000)

<Huawei> system-view

[Huawei] acl 3000

[Huawei-acl-adv-3000]rule 5 permit icmp source 0 destination 0

--> Configure a traffic policy, with the next behavior and classifier:

  • classifier:

[Huawei] traffic classifier c1

[Huawei-classifier-c1] if-match acl 3000

  • behavior:

[Huawei] traffic behavior b1

[Huawei-behavior-b1] redirect ip-nexthop interface gigabitEthernet 0/6/4

--> Apply the traffic policy on the desired interface in the desired direction

[Huawei] traffic policy p1

[Huawei-trafficpolicy-p1] classifier c1 behavior b1

[Huawei-trafficpolicy-p1] quit

[Huawei] interface interface gigabitEthernet 0/6/4

[Huawei-gigabitEthernet 0/6/4] traffic-policy p1 inbound


Note: traffic policy can be also applied on subinterface/vpn-instance