Hi guys,
I want to redistribute direct (connected) routes to bgp basically.
But I also want to specify community for particular prefixes as well.
For example, a Router-A has vlan A (10.1.1.0/24) and vlan B (10.2.2.0/24), vlan C (10.3.3.0/24) locally.
And Router-A wants to redistribute direct route to BGP but also want to specify 10.1.1.0/24 prefix with community 7777:100.
So I tried to configure above as below:
enable bgp export direct address-family ipv4-unicast export-policy CONN_TO_BGP
Policy: CONN_TO_BGPentry 10 {
if match any {
nlri 10.1.1.0/24 ;
}
then {
community set "7777:100" ;
permit ;
}
}
However, when I checked the routes from Router-B, it only receives 10.1.1.0/24 with community 7777:100 but no other direct routes.
Please help me.