Privacy and Security Notice

Linux Dialup How To

Dialup Instructions for Redhat Linux

Versions 7.0 and above.
Help for older versions can be found here

This document will assume you have a standard Redhat 7.0 or higher installation with GNOME installed and you have root privileges on sed machine.

Quick Index:

Installing your modem
Configuring your modem to dial-in to JLAB (GUI)
Starting and stopping your dialup connection to JLAB (GUI and Command Line)
Using WVDIAL (weaver dialer) to do everything for you (Command Line Only)


Installing your modem

External Hardware Modem (Serial or Parallel) are extremely easy to install

As root run the command:

# wvdialconf  /etc/wvdial.conf

This should create a file in /etc called wvdial.conf with your modem specifications.

If you are using a laptop you can find some help with installing your modem here.  If you cannot find your laptop on this list or the links there do not work you could also look through the extensive list at www.linux-laptop.net.  Furthermore, if you have a Lab purchased Dell laptop, chances are it uses a Conexant based modem and you can find an easy setup tool here.

If you are using a PCI software based modem (Winmodem) and/or it is not automatically picked up by the wvidal script you should then visit the Linmodems.org web site to find if your modem will be supported or not, and how to install the software.


Configuring your modem to dial-in to JLAB

Once your modem has been installed your can then run another command as root that will load the Redhat network connection tool.  You may have used this tool before if you have setup any ethernet connections.

As root run the command:

#  /usr/bin/neat

This will bring up the Network configuration window.



Under the hardware tab you should see a modem if installing the modem from the command line was successful.  If it was not you could try to add it using the "Add..." button on the screen.  If you know the device name under /dev then you can add the modem this way as well.  NEAT is just a front end tool for building the scripts and config files, you could use WVDIAL alone without using NEAT, a brief HOWTO for WVDIAL command line is provided at the end of this one.



Now you are ready to configure the ppp daemon to dial-in to the JLAB network.

Begin by clicking on "Add...." under the Devices tab.  This should bring up a new window with a walk through wizard.



You want to highlight "Modem connection" and click on "Next" which will bring you to another window where you can start entering in information required.



Do not worry about the internet provider list to the left, you will not find JLAB there.  You must enter in the information in the fields as shown.  If you have to enter an Area Code you can just enter it in the Phone Number field before the number (ex: If you live in Gloucester and have to dial a 757 to reach any Newport News phone numbers, just add 7572564000 without any dashes).  For Provider Name, entering in JLAB should be sufficient.  Next, enter your JLAB CUE user id and then your CUE password (NOTE: You will HAVE to change the password here again when you change your CUE password, it will NOT be automatically updated.).  Then you can click next.



Verify that this information is correct and click "Finish" complete this process. It will return you to the previous network configuration screen.  It should be changed and look similar to this:



Afterwards you might want to make a few changes and tweak the setup just a little, so users of your machine can bring the dialup connection up and down without being root or having required sudo privileges.  To do this you can highlight the device called ppp0 and then click on "Edit..." .  This will bring up a new window with some extra setting.




If it isn't checked for you already you can check "Allow users to enable and disable the device".  You should leave all the other settings the same or your dialup connection will not work right.


Bringing your connection UP and DOWN


If you checked off the box in the last step to allow users to enable and disable this device, then the easiest way to start the dialup procedure is to use a command in your favorite terminal program.

>  ifup ppp0                            

This will bring the interface ppp0 up and you should hear your modem dialing out. Once the connection has been made it will return the command line.  Accordingly to bring the interface down you could use this command.

>  ifdown ppp0

This will disconnect ppp0 and hang up the phone, it will return the command line once the modem has successfully hung up the phone.

There are other ways of bringing the interface up and down, you could use a GUI to control the interface along with your other interfaces by using this command  (NOTE: All commands for NEAT and NEAT-CONTROL can be found under the Main Menu -> Programs -> System -> Network Device Control and Network Configuration (the latter requiring root password)

>  /usr/bin/neat-control

It should look similar to this image, except it will have the ppp0 interface as well.



Highlighting your device you can click Activate or Deactivate depending on what you want to do.  You can also click on Monitor if you would like to monitor the bandwidth as it is running.


Using WVDIAL to do everything for you (command line only) (optional)

After you have installed your modem using the wvdialconf  tool at the command line a new configuration file will be wrote to /etc  called wvdial.conf.  This file should look something like this:

#  more /etc/wvdial.conf

[Modem0]
Modem = /dev/ttySHSFO
Baud = 115200
SetVolume = 3
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)

To add a new connection to dialer.  You will want to add the lines that will be shown in the next screen filling in details with your information, so in the end it will look something like this:

#  more /etc/wvdial.conf

[Modem0]
Modem = /dev/ttySHSFO
Baud = 115200
SetVolume = 3
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)

[Dialer JLAB]
Phone = 2564000
Password = YOUR_CUE_PASSWORD
Username = YOUR_CUE_USERNAME
Stupid Mode = 1
Inherits = Modem0

You should adjust the "Phone = " part of the file for the exact way it must be dialed on your phone, include no dashes or spaces.  The field "[Dialer JLAB]" will be used as a command line argument when you start wvdial, you can create any number of these dialer fields with unique names.  For more information on the fields of wvdial you can read the manpage "man wvdial" for a complete listing.

Starting and Stopping wvdial is fairly easy, as root you can just type:

#  wvdial JLAB

This will not return the command line until you terminate the dial up session by pressing [CTRL] + [C] to terminate the program.  You could run it with an "&" after JLAB but that will require you to find and "KILL" the wvdial script.  When dialing up you should see the full interaction with your computer and the remote access server, this could be useful for debugging purposes as well.


This document is maintained by {helpdesk@jlab.org}

Copyright Jefferson Lab 2007