[Xorp-users] Unreachable default route.

Pavlin Radoslavov pavlin at icir.org
Wed Aug 29 22:47:36 PDT 2007


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.
Off the top of my head, for Linux it will be like:

interfaces {
    ...

    interface discard0 {
        disable: false
        discard: true
        vif discard0 {
            disable: false
            address 192.0.2.1 {
                prefix-length: 32
                disable: false
            }
        }
    }
}

protocols {
    static {
        route 0.0.0.0/0 {
            next-hop: 192.0.2.1
        }
    }
}

Regards,
Pavlin

> 
> Thanks,
> Ben
> 
> -- 
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
> 
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list