[c-nsp] Increase distance of static route created through Freeradius

Oliver Boehmer (oboehmer) oboehmer at cisco.com
Fri Jun 24 05:34:19 EDT 2011


 
> This all works perfectly, however I'd like to increase the distance of
> the static route created. I need it to be higher than OSPF so maybe
125.
> 
> As an example, this is a radius account:
> test.account      Password = "testing"
>         Framed-IP-Address += 10.1.3.65,
>         Framed-IP-Netmask += 255.255.255.252,
>         Cisco-Avpair += "lcp:interface-config=ip vrf forwarding
Test\nip
> unnumbered lo1500",
>         Cisco-Avpair += "ip:route=10.1.3.64 255.255.255.252",
>         Cisco-Avpair += "ip:route=10.1.75.0 255.255.255.0"
 ...
> 
> Can the Cisco Avpair be changed to give a higher distance instead of
the
> Cisco using the default of 1?

just add the distance to the route, i.e.

  Cisco-Avpair += "ip:route=10.1.3.64 255.255.255.252 200",

to use AD of 200.. 

	oli

P.S: AAA actually just appends the string in the AVP to "ip route ..."
and passes it to the parser, so you can also add other legal IOS "ip
route" arguments to it, just as an addtl. hint.. 



More information about the cisco-nsp mailing list