Configuring an Extended Community Filter
Context
To filter routes based on extended community attributes, you can use an extended community filter.
Procedure
- Run system-view
The system view is displayed.
- Configure an extended community filter.
- Run ip extcommunity-filter { basic-extcomm-filter-num | basic basic-extcomm-filter-name } [ index index-number ] { deny | permit } { rt { as-number:nn | 4as-number:nn | ipv4-address:nn } } &<1-16>
Or run ip extcommunity-filter { advanced-extcomm-filter-num | advanced advanced-extcomm-filter-name } [ index index-number ] { deny | permit } regular-expression
An RT extended community filter is configured.
- Run ip extcommunity-list soo basic basic-extcomm-filter-name [ index index-number ] { permit | deny } { site-of-origin } &<1-16>
Or run ip extcommunity-list soo advance advanced-extcomm-filter-name [ index index-number ] { permit | deny } regular-expression
An SoO extended community filter is configured.
- Run ip extcommunity-filter { basic-extcomm-filter-num | basic basic-extcomm-filter-name } [ index index-number ] { deny | permit } { rt { as-number:nn | 4as-number:nn | ipv4-address:nn } } &<1-16>
- Run commit
The configuration is committed.
Verifying the Configuration
Run the display ip extcommunity-filter [ basic-extcomm-filter-num | advanced-extcomm-filter-num | extcomm-filter-name ] command to check information about the configured extended community filter.
Run the display ip extcommunity-list soo [ extcomm-filter-name ] command to check information about the configured SoO extended community attribute.