You must define a BGP4 extended community filter before you can apply the filter.
device# configure terminal
device(config)# ip extcommunity-list 1 permit soo 123:2
This example specifies the extended community list and permits site of origin (SOO) from network 2 in autonomous system 123.
Note
The ip-extcommunity-list command supports a range of extended instances from 100 through 500, beyond the standard range of 1 through 99.device(config)# route-map extComRmap permit 10
device(config-route-map-extComRmap/permit/10)# match extcommunity 1
device(config-route-map-extComRmap/permit/10)# exit
device(config)# route-map sendExtComRmap permit 10
device(config-route-map-sendExtComRmap/permit/10)# set extcommunity rt 3:3
device(config-route-map-sendExtComRmap/permit/10)# set extcommunity soo 2:2
The following example summarizes the commands in the procedure.
device# configure terminal device(config)# ip extcommunity-list 1 permit soo 123:2 device(config)# route-map extComRmap permit 10 device(config-route-map-extComRmap/permit/10)# match extcommunity 1 device(config-route-map-extComRmap/permit/1u)# exit device(config)# route-map sendExtComRmap permit 10 device(config-route-map-sendExtComRmap/permit/10)# set extcommunity rt 3:3 device(config-route-map-sendExtComRmap/permit/10)# set extcommunity soo 2:2