Hi, One of the parameters of pptp (i.e. of pppd) is "defaultroute". However, when there is already an existing default gateway, it doesn't have any effect. Not only the original gateway remains the default, but moreover: the new one even isn't inserted into the routing table as an entry.
Besides, even when running "route add default gateway" manually, it doesn't OVERRIDE the original gateway, but only inserts a yet another entry. Of course, it is possible to "del" the original entry, "add" the new one, and then re-"add" the original (so when the new fails, the original will replace it automatically). But it's ugly, and has some problems. In addition, since pppd is invoked in the background, it is impossible to add a "route" command to the rc init script, but it must be done after pppd succeeded to establish a connection with the ADSL (which takes at least a few seconds). "route" also needs the exact IP number of the default router in the case of ADSL, which usually isn't permanent, and should be sed'ed/awk'ed/etc. from the output of ifconfig. So in any case, if the "defaultroute" parameter of "route add default gateway" could work correctly, it could help. Anybody? BTW: The Israeli start-up "Zend" sold a license for their PHP debugger to Borland in close to $1M. Just read about it in TheMarker. -- Eli Marmor [EMAIL PROTECTED] CTO, Founder Netmask (El-Mar) Internet Technologies Ltd. __________________________________________________________ Tel.: +972-9-766-1020 8 Yad-Harutzim St. Fax.: +972-9-766-1314 P.O.B. 7004 Mobile: +972-50-23-7338 Kfar-Saba 44641, Israel ================================================================= 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]
