[EMAIL PROTECTED] wrote:
> On Sat, 13 Feb 1999, Mike Jagdis wrote:
>
> > If you have no defaultroute and such options you have nothing
> > but a point to point route through the interface to the remote
> > host. Why do you think you should be able to ping anything else?
>
> I have the defaultroute in the diald script, and not in the ppp options
> script, as saud in the documentation... but in the diald.options script
> there _is_ defaultroute, the defaultroute is set to the sl0 interface, and
> I can't ping anything else :-)
>
> Eugenia
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [EMAIL PROTECTED]
Does your system have the 'ip' command? Mine doesn't (kernel 2.0.29,
Slackware 3.2) and the commands being created to run 'ifconfig' and 'route'
for my version of Linux are incorrect. One of the problem I had was that a
default route would be created, then deleted by the existing setup. Attached
to this message is a patch that I applied to the file route.c in the source
before compiling that has fixed all the problems. To apply it use:
patch route.c < route.patch
in the diald-0.98.2 directory. Give it a try if you wish and see if it
corrects your problem. Make sure you save a copy of the original route.c in
case it doesn't work!
--
> A message from Duane Penzien, [EMAIL PROTECTED] <
> Engineer, Writer, Gardener, Linux enthusiast <
6a7,8
> * Hacks to fix 'ifconfig' and 'route' calls for Linux 2.0.29 (Slackware 3.2)
> * done 14 February 1999 Duane Penzien.
41,42c43,44
< sprintf(buf,"%s del %s metric 0 dev %s%d",
< path_route, rip, itype, iface);
---
> sprintf(buf,"%s del %s",
> path_route, rip);
70,71c72,73
< sprintf(buf,"%s del %s dev %s%d",
< path_route, rip, itype, iface);
---
> sprintf(buf,"%s del %s",
> path_route, rip);
113,114c115,121
< sprintf(buf,"%s add default metric %d %s netmask 0.0.0.0 dev %s%d",
< path_route, metric, win, itype, iface);
---
> /* Kill any existing default path first! */
> sprintf(buf, "%s del default",
> path_route);
> system(buf);
>
> sprintf(buf,"%s add default %s%d",
> path_route, itype, iface);
155,157c162
< } else {
< sprintf(buf, "%s del default metric %d netmask 0.0.0.0 dev %s%d",
< path_route,metric,itype,iface);
---
> system(buf);
159d163
< system(buf);