Configuring a forwarding LB action

Configuring the forwarding mode

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter 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 link group

When the primary link group is available (contains available links), the primary link group is used to guide packet forwarding. When the primary link group is not available, the backup link group is used to guide packet forwarding.

To specify a primary link group:

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 link group.

link-group link-group-name [ backup backup-link-group-name ] [ sticky sticky-name ]

By default, no primary link group is specified.

Matching the next rule upon failure to find a link

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

To match the next rule upon failure to find a link:

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 link.

fallback-action continue

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