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

Re: routing table setup

On 5/24/07, William Xu <william.xwl@gmail.com> wrote:
Hi all,

I have got some problem setting up the routing table. Currently, the
table is,

,----[ netstat -nr ]
| UH        0 0          0 ppp1
|   U         0 0          0 eth1
|         UG        0 0          0 eth1

eth1 is in a local network, i have to first connect eth1, then i can
connect ppp1. And via ppp1(a vpn network), i can go out of the local

The problem is that within current table, the default gateway has fallen
into eth1, but i can't go outside through eth1. While, if i make ppp1 be
the default gateway, i can go nowhere, since ppp1 depends on eth1.

How i can solve this problem? (one workaround i'm using is by adding
host/network based routing enty one by one..e.g.,

| sudo route add -net netmask dev ppp1


Does the VPN server have a static IP?

If so, you can route the VPN on the eth1 and leave de 0/0 GW to ppp1
(I had something like these at home).

Atentamente, yo <Matías>
Y sin fumar desde (casi) el '1089515700'
Let one walk alone, commit no sin,
with few wishes, like an elephant in the forest

Reply to: