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

Filter out static routes

tapp30316
Level 1
Level 1

I have a number of static routes that are being redistributed into BGP. Among them there are about 2 of the static routes that I would like to exclude from entering BGP table.

1 Reply 1

Edison Ortiz
Hall of Fame
Hall of Fame

You can use a route-map to control redistribution.

For instance:

ip route 192.168.1.0 255.255.255.0 null0

ip route 192.168.2.0 255.255.255.0 null0

ip access-list standard STATIC-TO-BGP

permit 192.168.1.0 0.0.0.255

permit 192.168.2.0 0.0.0.255

route-map STATIC-TO-BGP deny 10

match ip address STATIC-TO-BGP

route-map STATIC-TO-BGP permit 20

router bgp xx

redistribute static route-map STATIC-TO-BGP

HTH,

__

Edison.

Review Cisco Networking for a $25 gift card