Default Route blocking for advertisements to downstream peers in BGP #Huawei

By | November 8, 2022

I want to allow all other routes but not the default routes to my downstream BGP peers.

Step-1= Create the Prefix list.

ip ip-prefix NO-DEFAULT-ROUTE index 10 deny 0.0.0.0 0
ip ip-prefix NO-DEFAULT-ROUTE index 20 permit 0.0.0.0 0 less-equal 32

Step-2=Route-Policy Creation

route-policy NO-DEFAULT-ROUTE permit node 10
if-match ip-prefix NO-DEFAULT-ROUTE

Step-3= Apply on Peers.

bgp <ASN>
peer <ip> as-number <ASN>
peer <ip> route-policy NO-DEFAULT-ROUTE export

Leave a Reply

Your email address will not be published.