Configuring Load Balancing for Redirected Traffic
- Run the system-view command.
- Run the traffic classifier classifier-name [ operator { and | or } ] command to create a traffic classier.
- Configure match clauses for the traffic classifier. Currently, the match clauses that can be configured is shown in Table 10-6.
- Run the traffic behavior behavior-name command to create a traffic behavior.
Run the redirect ipv4-multinhp { nhp ip-address interface interface-type interface-number } &<2-16> loadbalance command to make the redirected packets be forwarded in load-balancing mode.
The outbound interfaces of the traffic cannot be QinQ sub-interfaces.
- Run the traffic policy policy-name to create a traffic policy.
- Run the classifier classifier-name behavior behavior-name [ precedence precedence ] command to specify the traffic behavior of the traffic classier.
- Apply the traffic policy.
- Apply to BAS interfaces:
- Run the system-view command.
- Run the traffic-policy policy-name inbound command to apply the traffic policy to bas interfaces.
- Apply to other types of interfaces:
- Run the interface interface-type interface-number command in the system view to enter an interface view.
Run the traffic-policy policy-name inbound [ link-layer | all-layer ] command to apply the traffic policy to the interfaces in inbound direct.
A traffic policy containing redirect actions can be applied to only the inbound direct of an interface.
- Apply to BAS interfaces:
- Run the commit.
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.