[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Static routes for eth0 at startup



I have a server that uses the system default gateway for the vast
majority of its traffic, but needs a different gateway for a handful of
specific hosts. I want to establish specific routes for these hosts,
which I would normally do from the command line like so:

    route add -host A.B.C.D gw X.X.X.X
    route add -host E.F.G.H gw X.X.X.X
    . . . etc . . .

I could just tack these commands onto the end of rc.local (or some other
such hack), but I know there's got to be something more elegant.

What's the proper place to list these routes so that they will be
applied to eth0 at boot?

-- 
Ben Adams <badams wspackaging com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]