Insert the line
addroute /etc/diald-addroute
into diald.conf and put
--- snip ---
#!/bin/sh
# set up a default route for diald
# arguments: iface netmask local-ip remote-ip 0 0
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
route add default dev $1
--- snap ---
into /etc/diald-addroute. This way, the addroute script gets called to set up your
default route.
Beat Bolli
--
dware design & software GmbH
Mattenstrasse 11, CH-2555 Br�gg b. Biel
Telefon: +41 (32) 374 27 00, Telefax: +41 (32) 374 27 01
E-Mail: [EMAIL PROTECTED]
----- Original Message -----
From: Clifford <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 24, 1999 1:48 PM
Subject: Diald not setting the default gateway.
> My diald problem continues (I stare at the screen for up to 20 minutes at a time
>doing nothing but just staring at diald.conf). The situation is the same - Diald
>connects to my ISP okay but does'nt set any default gateway when it's up. I've
>included my settings and snapshots of my routing table at various points during the
>connection process.
>
> connect.virgin is just a modified version of the connect script that comes with
>diald but with my username, password and stuff. As diald connects to my ISP just
>fine this is not an issue here.
>
> This is my diald.conf
>
>
> mode ppp
> two-way
> connect /etc/ppp/connect.virgin
> device /dev/modem
> speed 115200
> modem
> lock
> crtscts
> local 192.168.50.130
> remote 192.168.50.131
> dynamic
> defaultroute
> fifo /var/run/diald.ctl
> include /usr/lib/diald/standard.filter
>
> This is my routing table before diald is called
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 192.168.50.1 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
> 192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
>
>
> As you can see there is no defaultroute (As i understand it this should be set by
>diald if you're using dynamic IP addressing).
>
> This is my table when diald has been called but before any call has been made to the
>outside world i.e. before diald has dialed out.
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 192.168.50.131 0.0.0.0 255.255.255.255 UH 0 0 0 tap0
> 192.168.50.1 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
> 192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 tap0
>
>
> When diald is running, it set's up 2 tap0 entries, one for the local machine and
>another as the gateway. The first tap0 entry is set to the remote IP set in my
>diald.conf - local 192.168.50.131 while the second is to be the default gateway.
>
> This is the table when diald has connected to my ISp and has retrieved the local and
>remote IP address.
>
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 192.168.50.1 0.0.0.0 255.255.255.255 UH 0 0 0 dummy0
> 62.252.1.221 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 192.168.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
>
>
> Now when diald is connected to my ISP, the tap0 entries have been removed but now we
>have a ppp0 entry which is set to the local IP sent to me by my ISP (I've checked via
>/var/log/messages). However, there is no corresponding default gateway setting for
>the 'remote' IP. This is the problem. Now whenever a request is sent to an IP outside
>my network, of course the machine cannot be found as diald has not set the default
>gateway...which it should.
>
> --
> Well i know we're dying
> and there's no sign of a parachute...
> (Tori Amos)
>
>
> - To unsubscribe from this list: send the line "unsubscribe linux-diald" in the body
>of a message to [EMAIL PROTECTED]
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]