Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  145 of 908 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 3829
Last update: 02-01-05
Issue:
How do I configure my modem to connect to the Internet using a PPP dialup account?
Resolution:
To set up your system for modem-based Internet access, follow these steps:
  1. After installing your modem, run the following command as root to have the wvdialconf program scan the modem and learn it's correct initialization string, max speed and other configuration information:

    # wvdialconf /etc/wvdial.conf

  2. Edit the newly created /etc/wvdial.conf file and add a section named [Dialer myispname]. Replace "myispname" with the name of your ISP, add the ISP's modem number, your username and your account password to this section. These three variables were automatically created in the Defaults section, but were left commented out. They should be copied down into their own section in case you need to add additional accounts in the future. To avoid problems, do not use non-alphanumeric characters for "myispname". Note that the information you see under your computer's [Dialer Defaults] section may be different from what's written below. These are just example settings. Do not change your [Dialer Defaults] section to match what you see here.

    Example /etc/wvdial.conf file:

    [Dialer Defaults]
    Modem = /dev/ttyS0
    Baud = 115200
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
    
    [Dialer myispname]
    Phone = 555-1212
    Username = myusername
    Password = mypassword
          


  3. Create the file /etc/sysconfig/network-scripts/ifcfg-ppp0, using this information as a template:

    Example ifcfg-ppp0 file:

    DEVICE=ppp0		#Device name
    USERCTL=yes		#Allow any user to activate/deactive the interface?
    PEERDNS=yes		#Get DNS servers from ISP?
    TYPE=Modem		#What type of device?
    BOOTPROTO=dialup	#What boot protocol?
    ONBOOT=no		#Start the interface on boot?
    NAME=myispname		#Name of the connection
    LINESPEED=115200	#Max speed of the interface
    MODEMPORT=/dev/ttyS0	#Modem port (set to the value from wvdial.conf)
    IDLETIMEOUT=600		#Idle time before hangup
    DEMAND=no		#Dial on demand?
    DEFROUTE=yes		#Is this interface the default route?
    PERSIST=no		#Redial if connection lost?
    WVDIALSECT=myispname	#Section in wvdial.conf to read for settings
    MODEMNAME=Modem0	#Name of modem
    


    Replace all instances of "555-1212" "myispname" "myusername" and "mypassword" with the appropriate values for your ISP. Do not use non-alphanumeric characters for "myispname".

    Now, to connect to your isp, open a terminal and type this command:

    $ ifup ppp0

    The modem will pick up and call the ISP. When you have finished with your session, type this command to hang up:

    $ ifdown ppp0
If you want to set your system up with multiple modems, multiple dialup numbers, usernames and passwords, consult the man pages for wvdialconf, wvdial.conf and wvdial for additional information.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   145  of  908  >>