Add different sections to your /etc/wvdial.conf. This example divides it into a section containing global defaults, then three different dial-up accounts:
[Dialer Defaults] Modem = /dev/ttyS3 Baud = 115200 Init1 = ATZ Init2 = ATQ0 V1 E1 &C1 &D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem Dial Attempts = 10 [Dialer ISP1] Stupid Mode = on Phone = 1234567 Username = alrac Password = secretfoo Idle Seconds = 600 [Dialer ISP2] Phone = 2345678 Username = foobear@isp1.net Ask Password = yes Idle Seconds = 200 [Dialer ISP2] Stupid Mode = on Phone = 3456789 Username = fredfoo@isp2.com Password = fredsecret
Then, connect to the one you want by naming the Dialer section:
# wvdial ISP2
Another way to do this is to put each account into a separate
configuration file, then call the file with the --config
option:
# wvdial --config /etc/wvdial-isp2
This gives you the flexibility to set up different configurations for different users; just remember to give them read permissions on the file.
Unprivileged users can have their own personal WvDial configurations, as long they have permissions on the necessary files. See the next recipe to learn how to do this.
man 1 wvdial
man 5 wvdial.conf