Hi all,

If anyone is interested, here is how I just got ip aliases for ppp0 working
with wvdial in control of the connection.

add your ifcfg-ppp0:0 line as normal, (or use linuxconf to do it.)
edit the file and add the line DEVICE="ppp0:0" to the top of it..

do the same for any other ip aliases files.

then create a executable file called "dial" and put it in /usr/sbin
in that file do something like this:

#!/bin/sh
wvdial & # The & starts wvdial in the background or it won't return control
of your terminal.
sleep 20
ifup ppp0:0
ifup ppp0:1
ifup ppp0:2
/etc/firewall/gShield.rc #This is my firewall, you may have something
different.
fetchmail # If you want to start fetchmail deamon after dialup


then edit /etc/rc.d/rc.local and at the end add:  /usr/sbin/dial &

then your system will dial when it boots, and bring up your ip aliases.

then you can create a "hangup" file in /usr/sbin with just "killall wvdial"
in it.

and thats it, now I can use virtual IP's with wvdial, which does a much
better job of connecting to my ISP then any tool Mandrake or Redhat have
thus far released.


pretty easy actually, it was the device line that had me..



rgds

Frank

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Franki
Sent: Tuesday, 12 February 2002 1:53 AM
To: [EMAIL PROTECTED]
Subject: [newbie] wvdial used with ifup


Hi all,

I want to use ifup and ifdown to activate/deactivate my dialup connection,
but I want to use wvdial to establish the connection.. with no extra
parameters.

The reason for this, is that I want to bring up all the virtual IP's that
are associated with ppp0..

wvdial connects great, but unfortunately, it doesn't bring up any of the
virtual IP's with the interface..

is there a way to do it manually? or as I stated, use ifup ppp0 to activate
the interface and bring up all the virtuals IP's around it.

Has anyone done this or is it not possible?


rgds

Frank




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to