The ip extcommunity-list soo basic command configures a basic Source of Origin (SoO) extended community filter.
The undo ip extcommunity-list soo basic command deletes a specified basic SoO extended community filter.
By default, no basic SoO extended community filter is configured.
Parameter | Description | Value |
---|---|---|
index index-number |
Specifies the sequence number of an SoO extended community filter. |
The value is an integer ranging from 1 to 4294967295. |
matchMode |
Sets the matching mode of the SoO extended community filter. |
The value is an enumerated type:
|
site-of-origin |
Specifies the SoO extended community. |
The SoO attribute is a BGP extended community attribute and can be expressed in any of the following formats:
|
basic basic-extcomm-filter-name |
Specifies the name of the basic SoO extended community filter. |
The name is a string of 1 to 51 case-sensitive characters, spaces not supported. The string cannot be all digits. The character string can contain spaces if it is enclosed with double quotation marks ("). |
Usage Scenario
SoO records the BGP route originator. To configure an SoO extended community filter so that BGP routes carrying SoO can be filtered, run the ip extcommunity-list soo command.
An SoO extended community filter can be used as a matching condition of a route-policy using a command, such as the if-match extcommunity-list soo aaa command. An SoO extended community filter in different formats may lead to different matching results. For example: Format 1: ip extcommunity-list soo basic aaa permit 100:1 200:1 300:1 Format 2: ip extcommunity-list soo basic aaa permit 100:1 ip extcommunity-list soo basic aaa permit 200:1 300:1 In format 2, the extended community defined in each rule must be a sub-set of route extended communities so that the rule can be matched. The undo ip extcommunity-list soo command deletes a specified SoO extended community filter. The display ip extcommunity-list soo command displays detailed configurations of the SoO extended community filter.Precautions
The extended community attributes of a route include VPN-target and SoO. The ip extcommunity-list soo command adds an SoO extended community filter.
By default, Source of Origin (SoO) extended community filters work in deny mode. If all matching rules in a filter are configured to work in deny mode, all routes are denied by the filter; to prevent this problem, configure one matching rule in permit mode after one or multiple matching rules in deny mode so that the routes except for those denied by preceding matching rules are permitted by the filter.