The ipv6 field command configures a load balancing mode of IPv6 packets in a load balancing profile.
The undo ipv6 field command deletes the load balancing mode of IPv6 packets or restores the default load balancing mode of IPv6 packets.
By default, load balancing of IPv6 packets is based on the source IP address (sip) and destination IP address (dip).
Only the S5720-EI, S5720-HI, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, S6720-SI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.
ipv6 field [ dip | l4-dport | l4-sport | protocol | sip | sport | vlan ] *
undo ipv6 field [ dip | l4-dport | l4-sport | protocol | sip | sport | vlan ] *
Only dip, l4-dport, l4-sport, sip, and sport are supported on the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI.
Parameter |
Description |
Value |
---|---|---|
dip |
Performs load balancing based on destination IP addresses in IPv6 packets. |
- |
l4-dport |
Performs load balancing based on transport-layer destination port numbers in IPv6 packets. |
- |
l4-sport |
Performs load balancing based on transport-layer source port numbers in IPv6 packets. |
- |
protocol |
Performs load balancing based on protocol types in IPv6 packets. |
- |
sip |
Performs load balancing based on source IP addresses in IPv6 packets. |
- |
sport |
Performs load balancing based on physical-layer source port numbers in IPv6 packets. |
- |
vlan |
Performs load balancing based on VLAN IDs in IPv6 packets. |
- |
Usage Scenario
The undo ipv6 field command with no parameter specified restores the default load balancing mode of IPv6 packets. The undo ipv6 field command with a parameter specified deletes a specified load balancing mode of IPv6 packets.
Precautions
If you run the ipv6 field command multiple times, only the latest configuration takes effect.
On the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S switches, if l4-dport or l4-sport is specified for L2TP packets, load balancing is performed based on session id and tunnel id in L2TP packets rather than l4-dport and l4-sport.
# In the load balancing profile a, set the load balancing mode of IPv6 packets to sip and protocol, that is, load balancing based on source IP addresses and protocol types of IPv6 packets.
<HUAWEI> system-view [HUAWEI] load-balance-profile a [HUAWEI-load-balance-profile-a] ipv6 field sip protocol