The apply extcommunity bandwidth command sets the bandwidth extended community attribute for routes.
The undo apply extcommunity bandwidth command deletes the bandwidth extended community attribute.
By default, no bandwidth extended community attribute values are set for routes.
Parameter | Description | Value |
---|---|---|
extCmntyString |
Specifies the bandwidth extended community attribute value. |
The value of the bandwidth extended community attribute consists of the AS number and bandwidth value. The format is AS number:bandwidth value, for example, 1:100, in which the AS number ranges from 1 to 65535, and the bandwidth value ranges from 1 to 4294967295. |
none |
Clears the bandwidth extended community attribute of routes. |
- |
aggregate |
Indicates the aggregated bandwidth extended community attribute. |
- |
limit |
Indicates the maximum value of the aggregated bandwidth extended community attribute. |
- |
bandwidth-value |
Specifies the aggregated bandwidth. |
The value is an integer ranging from 1 to 4294967295, in kbit/s. |
Usage Scenario
After the apply extcommunity bandwidth command is run, routes advertised by the device carry the bandwidth extended community attribute, which is used to identify sites. Pay attention to the following points when running this command:
Run the route-policy command to enter the route-policy view. A route-policy can consist of multiple nodes, and the relationship between nodes is OR. The system checks each node based on the node sequence number. The later node overwrites the previous node.<HUAWEI> system-view [~HUAWEI] route-policy aaa permit node 1 [~HUAWEI-route-policy] apply extcommunity bandwidth 1:1
<HUAWEI> system-view [~HUAWEI] route-policy aaa permit node 1 [~HUAWEI-route-policy] apply extcommunity bandwidth aggregate limit 100
<HUAWEI> system-view [~HUAWEI] route-policy aaa permit node 1 [~HUAWEI-route-policy] apply extcommunity bandwidth none