< Home

ipv4 field

Function

The ipv4 field command configures a load balancing mode of IPv4 packets in a load balancing profile.

The undo ipv4 field command deletes a load balancing mode of IPv4 packets or restores the default load balancing mode of IPv4 packets.

By default, load balancing of IPv4 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.

Format

ipv4 field [ dip | l4-dport | l4-sport | protocol | sip | sport | vlan ] *

undo ipv4 field [ dip | l4-dport | l4-sport | protocol | sip | sport | vlan ] *

Only dip, sip, and sport are supported on the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI.

Parameters

Parameter

Description

Value

dip

Performs load balancing based on destination IP addresses in IPv4 packets.

-

l4-dport

Performs load balancing based on transport-layer destination port numbers in IPv4 packets.

-

l4-sport

Performs load balancing based on transport-layer source port numbers in IPv4 packets.

-

protocol

Performs load balancing based on protocol types in IPv4 packets.

-

sip

Performs load balancing based on source IP addresses in IPv4 packets.

-

sport

Performs load balancing based on physical-layer source port numbers in IPv4 packets.

-

vlan

Performs load balancing based on VLAN IDs in IPv4 packets.

-

Views

Load balancing profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The undo ipv4 field command with no parameter specified restores the default load balancing mode of IPv4 packets. The undo ipv4 field command with a parameter specified deletes a specified load balancing mode of IPv4 packets.

Precautions

If you run the ipv4 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.

Example

# In the load balancing profile a, set the load balancing mode of IPv4 packets to sip and protocol, that is, load balancing based on source IP addresses and protocol types of IPv4 packets.

<HUAWEI> system-view
[HUAWEI] load-balance-profile a
[HUAWEI-load-balance-profile-a] ipv4 field sip protocol
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >