17 Jul
2013
17 Jul
'13
10:51 a.m.
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