[Xorp-users] Unreachable default route.

Ben Greear greearb at candelatech.com
Wed Aug 29 22:51:55 PDT 2007


Pavlin Radoslavov wrote:
> Ben Greear <greearb at candelatech.com> wrote:
>
>   
>> Is there a way to get Xorp to put in an un-reachable default route
>> if no default gateway is known/configured for a particular routing table?
>> This keeps Linux from trying other routing tables (for instance, when you
>> have specified a particular routing table per some rule.)
>>
>>  From the command line, you'd do something like:
>>
>> # 100 is the routing table ID
>> ip route add unreachable 0/0 table 100
>>     
>
> It sounds like you need to configure a discard interface, and point
> the default route to that interface.
>   
I only want this to exist _IF_ there is no valid default route.  So, I 
think it would have to
be more dynamic than a config file, since I assume OSPF or similar might 
negotiate a
default route (and fail to find one at other times??)

Ben

-- 
Ben Greear <greearb at candelatech.com> 
Candela Technologies Inc  http://www.candelatech.com




More information about the Xorp-users mailing list