< Home

bandwidth reference-mode

Function

The bandwidth reference-mode command sets the working mode of a traffic profile referenced by a traffic policy.

The undo bandwidth reference-mode command restores the default mode.

Format

bandwidth reference-mode { per-rule | rule-shared }

undo bandwidth reference-mode

Parameters

Parameter Description Value
per-rule Indicates the exclusive mode. -
rule-shared Indicates the shared mode. -

Views

Traffic profile view

Default Level

2: Configuration level

Usage Guidelines

A traffic profile is referenced by a single policy by default.

After a traffic policy references a traffic profile, the maximum bandwidth defined in the traffic profile takes effect on the traffic that matches the policy. A traffic profile works in either of the following modes:

  • Exclusive mode

    A traffic profile is used by only one policy. Traffic that matches the policy has exclusive use of the maximum bandwidth defined in the traffic profile.

  • Shared mode

    A traffic profile is shared by multiple traffic policies. Traffic that matches these traffic policies shares the maximum bandwidth defined in the traffic profile.

Example

# Set the reference mode to rule-shared for traffic profile traffic_profile.

<sysname> system-view
[sysname] traffic-policy
[sysname-policy-traffic] profile traffic_profile
[sysname-policy-traffic-profile-traffic_profile] bandwidth reference-mode rule-shared
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >