Re: routing table setup
On 5/24/07, William Xu <firstname.lastname@example.org> wrote:
I have got some problem setting up the routing table. Currently, the
,----[ netstat -nr ]
| 10.1.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1
| 220.127.116.11 0.0.0.0 255.255.254.0 U 0 0 0 eth1
| 0.0.0.0 18.104.22.168 0.0.0.0 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 22.214.171.124 netmask 255.255.255.0 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