Hi Eliran,
The method suggested by Amir Tal is fine, and if you wish to explore
another option, the method I am offering in the Cable-Modem Mini-Howto is
equivalent.
I preferred not to delete the default gateway, but to make the default
gateway with a metric (priority) of 1 to the ethernet ( => the cable
modem) and add another default gateway ( to the internet ) with metric 0.
Here is how route -v looks on my system:
[amit@galadriel ~]$ route -v
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
212.199.26.28 * 255.255.255.255 UH 0 0 0 eth0
212.199.26.107 * 255.255.255.255 UH 0 0 0 ppp0
10.64.128.0 * 255.255.224.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 U 0 0 0 ppp0
default * 0.0.0.0 U 1 0 0 eth0
The upshot of this is to have two things happen:
You must use eth0 to access the pptp server. If you change your default
route without setting a static route to the pptp server, then after about
3 minutes, the pptp keepalive packets that never arrive will cause the
connection to drop.
The second thing you need is a default route to the peer of your ppp0
interface, and it must have the highest priority (= lowest metric) or be
the only default route.
Amit
--
Amit Margalit
=============
It is easy to find fault, if one has that disposition. There was once a man
who, not being able to find any other fault with his coal, complained that
there were too many prehistoric toads in it.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]