< Home

mask(Aggregation view)

Function

The mask command sets the aggregation mask.

The undo mask command cancels the configured aggregation mask.

Format

mask { source | destination } minimum mask-length

undo mask { source | destination }

Parameters

Parameter Description Value
source Indicates the source address aggregation mask. -
destination Indicates the destination address aggregation mask. -
mask-length Specifies the length of the aggregation mask. The value is an integer ranging from 1 to 32.

Views

Aggregation view

Default Level

3: Management level

Usage Guidelines

source applies to prefix, prefix-ToS, source prefix, and source prefix-ToS modes.

destination applies to prefix, prefix-ToS, destination prefix, and destination prefix-ToS modes.

The system takes the larger mask between the mask in the FIB table and the configured mask. If the aggregation mask is not configured, you can aggregate streams based on the mask in the FIB table.

Example

# Configure the length of the source prefix aggregation mask to 24.

<sysname> system-view
[sysname] ip netstream aggregation source-prefix
[sysname-aggregation-srcpre] mask source minimum 24
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >