Configuring a forwarding LB action

Configuring the forwarding mode

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter generic LB action view.

loadbalance action action-name

N/A

3. Configure the forwarding mode.

forward all

By default, the forwarding mode is to discard packets.

Specifying a primary server farm

When the primary server farm is available (contains available real servers), the primary server farm is used to guide packet forwarding. When the primary server farm is not available, the backup server farm is used to guide packet forwarding.

To specify a primary server farm:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter LB action view.

loadbalance action action-name

N/A

3. Specify a primary server farm.

server-farm server-farm-name [ backup backup-server-farm-name ] [ sticky sticky-name ]

By default, no primary server farm is specified.

Matching the next rule upon failure to find a real server

Perform this task to enable packets to match the next rule in an LB policy when no real servers are available for the current LB action.

To match the next rule upon failure to find a real server:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter LB action view.

loadbalance action action-name

N/A

3. Match the next rule upon failure to find a real server.

fallback-action continue

By default, the next rule is not matched when no real servers are available for the current LB action.