checking static routes against interface

Sri Rao sri at cloudflare.com
Wed Jul 17 12:51:23 CEST 2013


Hi,

I am trying to see if it is possible to have static route prefixes
checked against an interface.  If that prefix or a larger prefix is
configured on the interface than allow it to be exported.

Situation is:

I have something like 10.0.1.1/24 on the loopback(lo) interface.

I have static routes like:

route 10.0.1.3/32 dev lo;
route 10.0.1.6/32 dev lo;
route 10.0.1.9/32 dev lo;
route 10.0.2.3/32 dev lo;

I would like to have the 10.0.1.{3,6,9} routes exported but not 10.0.2.3/32.

is that possible?

check link on; seems to only check if the interface is up or not which
isn't exactly what I want.

Thanks for any info you can provide.

Sri



More information about the Bird-users mailing list