140
| Command Line Reference | SmartNA-X 1G/10G Modular
SmartNA-X
™
1G/10G User Guide 1.4
©
2015 Network Critical Solutions Limited
Changes are only activated following a
commit
command.
Syntax
set lbheaders
LoadBalancerGroup
{
LB1
|
LB2
|
LB3
|
LB4
} {
vlan
|
mac_src
|
mac_dest
|
ipv4_src
|
ipv4_dest
|
ipv6_src
|
ipv6_dest
|
port_src
|
port_dest
}
Parameters
•
LoadBalancerGroup
Specify the Load Balancer Group for the load balance policy configuration, for example
LB1
.
•
field-list
Specify none, one, two or three packet header fields to use for load balancing. Prefer to select two or three
fields (separated by spaces) as this will give a more even load balancing output across the egress ports. The following
key words are permitted:
•
vlan
VLAN field
•
mac_src
MAC source address field
•
mac_dest
MAC destination address field
•
ipv4_src
IPv4 source address field
•
ipv4_dest
IPv4 destination address field
•
ipv6_src
IPv6 source address field
•
ipv6_dest
IPv6 destination address field
•
port_src
UDP port source field
•
port_dest
UDP port destination field
The following combinations are disallowed when specifying Load Balancer Group headers:
• IPv4 source and/or destination at the same time as IPv6 source and/or destination
• MAC source and/or destination at the same time as IPv6 destination (only; IPv6 source with MAC is allowed)
Example
Set up a load balancing policy configuration for Load Balancer Group LB1 using IPv4 source and IPv4 destination fields:
CONTROLLER>
set lbheaders LB1 ipv4_src ipv4_dest
CONTROLLER>
show lbheaders
Use commit command to configure the switch with these.
load balance policy headers
LB1
ipv4_src
ipv4_dest
CONTROLLER>
commit
Committing load balance policy headers
delete filter
Use the
delete filter
command to delete a filter and remove it from any maps that are using it.
Syntax
delete filter
filtername
Parameters
•
filtername
Specify the filter name to delete. Filter names are case-sensitive. Use quotes ("") if the filter name contains
spaces.
Example
• Delete the filter named "HTTP and HTTPS packets" and commit changes to the system:
CONTROLLER>
delete filter "HTTP and HTTPS packets"
CONTROLLER>
commit