[CentOS] default gateway outside of the LAN

Thu Aug 16 22:13:43 UTC 2012
Boris Epstein <borepstein at gmail.com>

Hello all,

We have a somewhat unique setup whereby our default router is outside of
the local network.

Let us say our network is

So we have a route-eth0 file that looks something like this: via dev eth0
default dev eth0

The last definition would simply not take - but it has to for the setup to
work. And no, does not operate as a full-fledge router due to
our setup.

When we attempt to add it manually we get the following error:

RTNETLINK answers: No such process

When we use ifup we get the following:

Error: either "to" is a duplicate, or "" is a garbage.

A little discussion of this can be found here:


and here:


It does not help us, however. Any tips much appreciated.