Use this command to import or export filtering in BGP using route maps with the filtering criteria of extcommunity. This creates a filtering list that can be used in a route-map.
| Format | ip extcommunity-list <list-num> permit [rt|soo] <ASN:nn | IP-address:nn> |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| list-num | The extended community list number in the range of 1 to 99. |
| ASN:nn or IP-address:nn | VPN extended community for route target or site-of-origin. |
Example: The following shows an example of the command.
(Switching) #configure (Switching) (Config)# #ip extcommunity-list 1 permit rt 1.1.1.1:200 (Switching) (Config)# #ip extcommunity-list 2 permit soo 2.2.2.2:400 (Switching)#show running-config | include ext ip extcommunity-list 1 permit rt 1.1.1.1:200 ip extcommunity-list 2 permit soo 2.2.2.2:400