Filter out static routes

Unanswered Question
Jun 8th, 2009

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Edison Ortiz Mon, 06/08/2009 - 07:48

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.

Actions

This Discussion