cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
559
Views
0
Helpful
1
Replies

Suppresion of Static routes redistributed through "redistribute static" command

diwakar_sharma01
Beginner
Beginner

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 

1 Reply 1

Santhosh S
Cisco Employee
Cisco Employee
Hello,

Your approach is correct, and the configs look fine.

There's no better approach here. You can try looking up BGP ORF capability, just as a reference point.

Best Regards,
Santhosh
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: