The l2 field command configures a load balancing mode of Layer 2 packets in a load balancing profile.
The undo l2 field command deletes the load balancing mode of Layer 2 packets or restores the default load balancing mode of Layer 2 packets.
By default, load balancing of Layer 2 packets is based on the source MAC address (smac) and destination MAC address (dmac).
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.
l2 field [ dmac | l2-protocol | smac | sport | vlan ] *
undo l2 field [ dmac | l2-protocol | smac | sport | vlan ] *
Only dmac, smac, and sport are supported on the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI.
Parameter |
Description |
Value |
---|---|---|
dmac |
Performs load balancing based on destination MAC addresses in Layer 2 packets. |
- |
l2-protocol |
Performs load balancing based on protocol types in Layer 2 packets. |
- |
smac |
Performs load balancing based on source MAC addresses in Layer 2 packets. |
- |
sport |
Performs load balancing based on physical-layer source port numbers in Layer 2 packets. |
- |
vlan |
Performs load balancing based on VLAN IDs in Layer 2 packets. |
- |
Usage Scenario
The undo l2 field command with no parameter specified restores the default load balancing mode of Layer 2 packets. The undo l2 field command with a parameter specified deletes a specified load balancing mode of Layer 2 packets.
Precautions
If you run the l2 field command multiple times, only the latest configuration takes effect.