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

routing table setup



Hi all, 

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

,----[ netstat -nr ]
| 10.1.1.1        0.0.0.0         255.255.255.255 UH        0 0          0 ppp1
| 166.111.210.0   0.0.0.0         255.255.254.0   U         0 0          0 eth1
| 0.0.0.0         166.111.210.1   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
network.

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 209.85.139.0 netmask 255.255.255.0 dev ppp1
`----
)

        William



Reply to: