cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2007
Views
0
Helpful
2
Replies

Remove BGP no-export community

msizi.mthembu
Level 1
Level 1

Hello,

I have a prefix that I learn from another AS1, which I set a "no-export" community inbound to AS2. AS2 has eBGP sessions to AS3 and AS4. I need to remove/override the "no-export" outbound to AS4 only. I tried the below policy but the prefix is still not being advertised out to AS4. Kindly advise

 

route-policy POLICY-OUT-1
if destination in ADVERTISE-OUT then
delete community in (no-export)
pass
else
drop
endif
end-policy

 

Thanks,

Msizi

 

2 Replies 2

pman
Spotlight
Spotlight

Harold Ritter
Level 12
Level 12

Hi @msizi.mthembu ,

 

Applying the route-policy outbound on the neighbor to AS3 and AS4 will not work. The updates will not be sent to these neighbors because they are tagged with no-export and would therefore never make it through the route-policy. If you have two routers in AS2 (connected via iBGP), you could apply the route-policy inbound on the second router. This would definitely work.

 

Regards, 

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Review Cisco Networking for a $25 gift card