CONTEXT
You can use an extended community filter when using the route target (RT) attribute to filter routes in a VPN.
PROCEDURE
1. Run:
system-view
The system view is displayed.
2. Run:
ip extcommunity-filter{ basic-extcomm-filter-num | basic basic-extcomm-filter-name } { deny | permit }
{ rt { as-number:nn | 4as-number:nn | ipv4-address:nn } } &<1-16>
or
ip extcommunity-filter { advanced-extcomm-filter-num | advanced advanced-extcomm-filter-name }
{ deny | permit } regular-expression
An extended community filter is configured.
CHECKING THE CONFIGURATION
Run the display ip extcommunity-filter [ basic-extcomm-filter-num | advanced-extcomm-filter-num | extcomm-filter-name ] command to check information about a configured extended community filter.
Reference:
support.huawei.com


