Hi,

At present I have configured our email server to dial out with wvdial.
The termination takes place based on timeout in /etc/ppp/options.

However this part is not in out control. But if we use chat scripts than we can
terminate the ppp connection immediatly after sending and receiving mail.
Wvdial in such cases will create problems since if we put say 

idle 60 in /etc/ppp/options 

than if the ppp link is idle for 1 minute than pppd
will die. But sometimes due to poor net connection there may not be any trasfer
to or fr on the ppp link but we still want that link to continue. The danger
with setting the idle value higher is that every time pppd will wait that many
seconds for termination.

So using chat scripts I can control this process. I have created three chat
scripts after going through the ppp howto. The scripts work fine. I get the
connection but after getting connected nothing is working. nslookup, ping
because of the following :

when I connect using wvdial route -n gives the following :
--------------------------------------------------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 0.0.0.0         255.255.255.255 UH    0      0        0 eth0
202.54.17.12    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.20.6    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.20.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         202.54.17.12    0.0.0.0         UG    0      0        0 ppp0
--------------------------------------------------------------------------------

When I connect using the chat scripts route -n gives the following :
--------------------------------------------------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
255.255.255.255 0.0.0.0         255.255.255.255 UH    0      0        0 eth0
202.54.17.12    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.20.6    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.20.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 that the gateway is not set when using scripts. And it has to be
set to the dynamic IP which the ISP server assigns during connection. Due to
this though I am connected to net nothing is working. Everywhere I get host not
found errors.

What should I do to rectify the above ?

Thanks for reading this big mail. Hope I have explained my problem properly.

Thanks in advance.


-- 
Rajesh Fowkar
(Computer Programmer)
V. S. DEMPO & CO. LTD., PANAJI-GOA

Email ID : [EMAIL PROTECTED], [EMAIL PROTECTED]
Web Site : http://www.dempos.com


----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to