Configuring Load Balancing for Redirected Traffic

  1. Run system-view

    The system view is displayed.

  2. Run traffic classifier classifier-name [ operator { and | or } ]

    A traffic classier is created.

  3. Configure match clauses for the traffic classifier. Currently, the match clauses that can be configured is shown in Table 1.
  4. Run traffic behavior behavior-name

    A traffic behavior is created.

  5. Run redirect ipv4-multinhp { nhp ip-address interface interface-type interface-number } &<2-42> loadbalance

    The device is configured to forward redirected packets in load-balancing mode.

    The outbound interfaces of the traffic cannot be QinQ sub-interfaces.

  6. Run traffic policy policy-name

    A traffic policy is created.

  7. Run classifier classifier-name behavior behavior-name [ precedence precedence ]

    The traffic behavior of the traffic classier is specified.

  8. Apply the traffic policy.
    1. Run interface interface-type interface-number

      The interface view is displayed.

    2. Run traffic-policy policy-name inbound [ link-layer | all-layer ]

      The traffic policy is applied to the inbound direction of the interface.

      • A traffic policy containing the redirection action can be applied only to the inbound direction of an interface.
      • To apply a traffic policy to BAS interfaces, run the traffic-policy policy-name inbound command in the system view.
  9. Run commit

    The configuration is committed.

Table 1 If-match Clauses that Can Be Configured to Classifier

Command Syntax

Function

if-match [ ipv6 ] acl { acl-number | name acl-name }

Matching against ACL rules

if-match [ ipv6 ] dscp dscp-value

Matching against DSCP

if-match tcp syn-flag tcpflag-value

Matching against IPv4 TCP Flags

if-match ipv6 tcp syn-flag tcpflag-value

Matching against IPv6 TCP Flags

if-match ip-precedence ip-precedence

Matching against IP Precedence

if-match mpls-exp exp-value

Matching against MPLS EXP

if-match 8021p 8021p-value

Matching against 802.1p in VLAN

if-match destination-mac mac-address

Matching against destination MAC in VLAN

if-match source-mac mac-address

Matching against Source MAC in VLAN

if-match [ ipv6 ] any

Matching all IP packets

if-match ipv6 next-header header-number first-next-header

Matching against IPv6 next header

if-match ipv6 source-address ipv6-address prefix-length

Matching against IPv6 source address

if-match ipv6 destination-address ipv6-address prefix-length

Matching against IPv6 destination address

Follow-up Procedure

Run the save command to save the current configuration to the configuration file when a set of configuration is finished and the expected functions have been achieved.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >