DUN Tutorial » Linux DUN (Dialup Networking) setup.
Fri, July 30, 2010
    ISP List    
 
ISP Reviews
 
Editorials
 
Forum
 
Dialup Networking
HowTo
 
How To Select
an ISP
 
DUN Errors
 
Review Your ISP
 
About The ISP List
 
· In order to set up a Dialup network configuration with any provider you will need to know:
1. The name of your Internet Service Provider.
2. Your login ID (also called user name, login name or screen name).
3. Your password
4. Your primary dial-up number
5. Your secondary dial-up number (if applicable)

· Always contact your phone company to verify if the numbers provided by your ISP are a local call. Calling plans in many areas are very confusing, and you may end up paying your telco several hundreds dollars at the end of the month. Dial 0 on your telephone and ask the operator whether the number you are going to use is a local call.

· We hate to remind, but always set your CAPS LOCK off before typing your password. In most cases passwords are case-sensitive.

· While we tried to make this tutorial as complete and straightforward as possible, it is a supplementary information and doesn't constitute professional customer support from your ISP. Keep your ISP's tecsupport phone number / e-mail address handy.

· Do not hesitate to contact us with comments and suggestions at feedback@theisplist.com

Linux DUN setup











Depending on your version of Linux, described procedures might slightly differ.

Choose a type of Connection

A. netcfg setup in Xwindows:

Start Xwindows with the startx command (login as root) start the network configuration manager with the command netcfg. In the names tab type your ISP's domain in the domain field Add DNS IPs in the nameserver section. Click on the interfaces tab and click on add button Netcfg will ask for type of connection please choose PPP after choosing PPP and clicking ok type in the following information in the appropriate fields(as indicated in your confirmation)

  • Phone number
  • username
  • password
Click on done and save the interface.

How to Connect and disconnect:

Highlight the PPP interface in Net configuration
Click on activate
the modem will start dialing and if all settings and hardware is correct, connect you to your ISP's Network;
to disconnect make sure your PPP interface is highlighted and choose deactivate.

B: KDE Desktop

If you use KDE as your desktop and only wish to connect while running that desktop, the use of the network tool "kppp" is almost trivial.

Steps

  1. Start kppp and click on Setup and then Add (for new connection).
  2. At the Dial tab, enter:
    • Connection Name = Your ISP Name
    • Phone Number = <access number>
    • Authentication = PAP
    • Check Yes to store password
  3. At the IP tab:
    • Check Yes for Dynamic IP address
    • Check Yes for auto-configure host name from this IP
  4. At the DNS tab:
    • Domain = yourISPdomain.com
    • Check Configuration: Automatic
    • Check Yes to Disable existing DNS servers
  5. At the Gateway tab:
    • Check Yes for Default Gateway
    • Check Yes to Assign the default Route to this Gateway
  6. The Login Script can be left alone
  7. Ignore Accounting
    Enter your name and password, optionally check Show log window and hit the Connect button. To disconnect, simply click on the disconnect button.

C: Plain old ppp at command line

This requires editing the /etc/ppp-on shell script.

Steps:

  1. Make sure the protections on /usr/sbin/pppd are like: -rwsr-xr-x If not, as root, try chmod u+s /usr/sbin/pppd
  2. Edit /etc/ppp/ppp-on so it looks something like the following. The comment lines (beginning with #) are eliminated here for brevity.
    ----< /etc/ppp/ppp-on >----
    TELEPHONE=nnn-nnnn
    ACCOUNT=username
    PASSWORD=password
    export TELEPHONE ACCOUNT PASSWORD
    exec /usr/sbin/pppd lock modem \
    /dev/ttyS0 115200 crtscts \
    asyncmap 200A0000 escape ff \
    0.0.0.0:0.0.0.0 noipdefault \
    defaultroute \
    connect /etc/ppp/dial-myisp
    ---------------------------------
    
    You may need to change the CPU to modem speed.
  3. Create a file /etc/ppp/dial-myisp by copying /etc/ppp/ppp-on-dialer.
    Edit /etc/ppp/dial-myisp to look as follows. (You can just use ppp-on-dialer if you wish - change ppp-on accordingly).
    ---< /etc/ppp/dial-myisp >---
    exec chat -v \
    TIMEOUT 3 \
    ABORT '\nBUSY\r' \
    ABORT '\nNO ANSWER\r' \
    ABORT '\nRINGING\r' \
    '' \rAT \
    'OK-+++\c-OK' ATH0 \
    TIMEOUT 120 \
    OK ATDT$TELEPHONE \
    CONNECT ''
    ---------------------------------
    
    The backslashes are important. They are line-continuation characters. Remove two obsolete lines if any:
    ogin:--ogin: $ACCOUNT \
    word:-- $PASSWORD
    
    All authentication information will be requested at PPP handshaking via PAP.
  4. For authentiacation via PAP create or edit file /etc/ppp/pap-secrets to look as follows.
    ----< /etc/ppp/pap-secrets >-----
    username * password
    ---------------------------------
    
    It has to contain only one meaningful line.
  5. If you are not already in the directory /etc/ppp, move there. Enter the command:
    ./ppp-on &
    This should cause the pppd (ppp daemon) to start and use chat to establish a connection through the script in dial-myisp.
  6. To see if you are up, run as root:
    ifconfig
    It should report a ppp0 interface.
  7. To bring this interface down:
    /etc/ppp/ppp-off
Reproduced with permission of the copyright owner. Further reproduction prohibited.
 
Please address all inquiries and questions to webmaster @ theisplist.com Copyright 2002, ISP Digest