On Thu, 24 Jan 2002, Eli Marmor wrote: > 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.
I'm not sure this is possible, but, Is it possible to set the priorityof the original default route to something lowwer, and have it only used whjen the ppp interface is down? > > 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. distros nowadays have a ppp-up/down script or directory-of-scripts just for such tasks -- Tzafrir Cohen /"\ mailto:[EMAIL PROTECTED] \ / ASCII Ribbon Campaign Taub 229, 972-4-829-3942, X Against HTML Mail http://www.technion.ac.il/~tzafrir / \ ================================================================= 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]
