Hi Gentlemen,
I want to suppress route that is redistributed into BGP through "redistribute static" command and thus want to minimize prefixes advertised from my router to remote ISP
Can I do it through a prefix-list ?
Please find my solution here :
redistribute static command under bgp :
router bgp <ASN>
redistribute static
ip route 12.1.10.0 255.255.255.0 10.0.0.2 # static ip route present in bgp table
ip route 13.1.10.0 255.255.255.0 10.0.0.2 # static ip route present in bgp table
ip route 14.1.10.0 255.255.255.0 10.0.0.2 # static ip route present in bgp table
route-map map1, permit, sequence 10
Match clauses:
ip address prefix-lists: map1_plist
Set clauses:
Policy routing matches: 0 packets, 0 bytes
Under route map I am putting a prefix list :
ip prefix-list map1_plist: entries 3
seq 10 deny 12.1.10.0./24
seq 20 permit 13.1.10.0./24
seq 30 permit 14.1.10.0/24
Please suggest if this is a correct solution . Please also suggest if there is a better solution in place through which we can achieve this