I have Redhat 8.0 installed on my home system.
I am trying to configure Diald to connect to the internet.
While I went throu the diald.conf file I fould this command.
reroute
Above the command,was a declaration saying some old kernels do not
follow the reroute command.
Moreover I am using wvdial as the chat connection script for
connecting to the internet.
thus declaring
connect /usr/bin/wvdial
Now the problem is, as diald starts it creates a SLIP interface
which is also set as the default interface till the system is
connected to the internet, and is replaces by the network gateway
when connected.
Unfortunately, when connected the sl0/1/2 slip device always
remains the default gateway. I tried to 'route add default gw' as
the vsnl dns server, but this only disconnects the system.
Is there something I am missing here?
I am also attaching the diald.conf file
See below.
Thanx.
Vidhata
##########################
# /etc/diald/diald.conf
#Connect with the following utility
connect /usr/bin/wvdial
# Device where your modem is connected
device /dev/ttyS1
# Log file
accounting-log /var/log/diald.log
# Monitoring queue
#fifo /var/run/diald/diald.fifo
# Debug activation
# Activating debug reduces performance
#debug 31
# We use PPP as encapsulator
mode ppp
# Local IP (when you connect this address is automatically
modified
# with the ip assigned by your ISP if you use the dinamic
option).
local 198.162.255.1
# Remote IP (when you connect this address is automatically
modified
# with the ip of the remote server that receives our call).
remote 198.162.255.2
# Subnet mask for the wan link
netmask 255.255.255.0
# The IP addresses will be asigned when connection starts.
dynamic
# If link goes down by remote end, start it again only if there
is
# outgoing packets.
two-way
# When link is up, route directly to the real ppp interface, not
the proxy
# interface. Not to do this is a performance lost of about 20 per
cent.
# There are old kernels that do not support reroute. See diald
manual for
# more information
reroute
# Diald will set up the default route the the SLIP interface used
as proxy
defaultroute
# Script to set up personalized routes
#addroute "/etc/diald/addroute"
#delroute "/etc/diald/delroute"
# Scripts to execute when the link is up and ready or down and
closed.
# In Diald versions 0.9x there is another option called
ip-goingdown that
# can be used to run commands when the link is going to be down
but is
# still up.
#ip-up /etc/diald/ip-up
#ip-down /etc/diald/ip-down
# Scripts used to connect or disconnect the interface
connect "/usr/bin/wvdial"
#disconnect "/etc/diald/diald.disconnect"
# Use UUCP lock to signal the device is being used
lock
# We connect over a modem. WARNING: Do not especify this options
in the
# ppp options file, because they will conflict with the diald
options. To
# see what ppp options that you can not use in the pppd-options
option,
# see the diald man page and search for pppd-options
modem
crtscts
speed 115200
# Some timers and retry options
# See Diald man page for more information
connect-timeout 120
redial-timeout 60
start-pppd-timeout 120
died-retry-count 0
redial-backoff-start 4
redial-backoff-limit 300
dial-fail-limit 10
# Options to be passed to pppd
# This options can be included in the /etc/ppp/options file, that
are the
# default options for pppd, but if you need to use different
# configurations of diald for more than one instance, you must put
it here
# noauth - do not ask remote for authenticaion.
# "Infovía Plus" (Spain) do not identify to our machine
# user - our username and isp. Ask your isp for the sintaxis. Some
isps,
# do not need the @isp
#pppd-options
# Hour restriccions.
# This section must be before filters.
# The restrict command is experimental, and can change in other
versions
# of diald. Check the man page. (this example has been checked for
0.16,
# but i think it runs in later versions).
# Example: only use in the night from monday to friday, and all
day in
# saturday and sunday.
restrict 8:00:00 18:00:00 1-6 * *
down
restrict * * * * * *
# No special tarificaion considerations
# (first seconds included in the setup cost, tarify unit in
seconds,
# time in seconds to check if it is good to go down)
#impulse 0,0,0
# Bononet Noche (Spain-Telefónica) is billed in seconds after the
160
# first seconds
impulse 160,0,0
# if it would be billed in minuttes and the first 10 will be
billed
# always:
#impulse 600,60,10
# Standar filters
#include /etc/diald/standard.filter
# or personal filters
include /etc/diald/personal.filter
Foundation of a good theory is to invent it and keep it open for
questioning.
___________________________________________________
Art meets Army ; Swapna Weds Capt. Rajsekhar.
Rediff Matchmaker strikes another interesting match !!
Visit
http://matchmaker.rediff.com?2