This shows you the differences between two versions of the page.
| tutorials:dialup_ubuntu [2011/04/30 14:58] – created clemens | tutorials:dialup_ubuntu [2012/05/01 20:08] (current) – Does not apply to SDF-EU. ivan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | Does not apply to SDF-EU. |
| - | ===== Introduction: ===== | + | $Id: dialup_ubuntu.html, |
| - | There are several ways to setup a PPP-based dial-up network connection on Linux. This tutorial illustrates setting up such a connection using **pppconfig** on //Ubuntu// Linux. Once set up, regular users can start, stop and monitor the network connection via **pon**, **poff** and **plog**. All of these tools are console-based and the initial setup requires the user to invoke superuser privileges via the **sudo** command. | ||
| - | |||
| - | ===== Prerequisites: | ||
| - | |||
| - | Verify that the modem is installed correctly and that **pppconfig**, | ||
| - | |||
| - | A word about modems: most internal modems are " | ||
| - | |||
| - | ===== Basic Setup: ===== | ||
| - | |||
| - | Open a terminal window (click Applications& | ||
| - | |||
| - | # mr_retro@rustbucket: | ||
| - | [sudo] password for mr_retro: | ||
| - | |||
| - | **pppconfig** should launch ; it's a curses-based application that uses the TAB and Up/Down Arrows to move between fields, SPACE to toggle fields on/off and ENTER to select. The following screens show an account call // | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | {{tutorials/ | ||
| - | |||
| - | If you made a mistake anywhere you can re-start **pppconfig** and edit your newly created account. Use the " | ||
| - | |||
| - | ===== Starting, Stopping and Monitoring the Dial-up Network Connection: ===== | ||
| - | |||
| - | ==== Startup: ==== | ||
| - | |||
| - | **pon** gets your dial-up network connection going: | ||
| - | |||
| - | # mr_retro@rustbucket: | ||
| - | |||
| - | You should hear the modem initiating the handshake. If all goes well you should be connected; use **ping** to test: | ||
| - | |||
| - | # mr_retro@rustbucket: | ||
| - | PING sdf.org (192.94.73.15) 56(84) bytes of data. | ||
| - | 64 bytes from SDF.ORG (192.94.73.15): | ||
| - | |||
| - | --- sdf.org ping statistics --- | ||
| - | 1 packets transmitted, | ||
| - | rtt min/ | ||
| - | |||
| - | ==== Monitoring: ==== | ||
| - | |||
| - | **plog** provides a simple PPP log file interface. It accepts the same options as **tail(1)** ; use //-f// to provide an on-going dump of events in a separate terminal: | ||
| - | |||
| - | # mr_retro@rustbucket: | ||
| - | Jan 12 15:16:05 rustbucket pppd[2039]: pppd 2.4.5 started by mr_retro, uid 1001 | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: abort on (BUSY) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: abort on (NO CARRIER) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: abort on (VOICE) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: abort on (NO DIALTONE) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: abort on (NO DIAL TONE) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: abort on (NO ANSWER) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: abort on (DELAYED) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: send (ATZ^M) | ||
| - | Jan 12 15:16:06 rustbucket chat[2042]: expect (OK) | ||
| - | Jan 12 15:16:08 rustbucket chat[2042]: ATZ^M^M | ||
| - | Jan 12 15:16:08 rustbucket chat[2042]: OK | ||
| - | Jan 12 15:16:08 rustbucket chat[2042]: | ||
| - | Jan 12 15:16:08 rustbucket chat[2042]: send (ATDT5551234567^M) | ||
| - | Jan 12 15:16:08 rustbucket chat[2042]: expect (CONNECT) | ||
| - | Jan 12 15:16:08 rustbucket chat[2042]: ^M | ||
| - | Jan 12 15:16:41 rustbucket chat[2042]: ATDT5551234567^M^M | ||
| - | Jan 12 15:16:41 rustbucket chat[2042]: CONNECT | ||
| - | Jan 12 15:16:41 rustbucket chat[2042]: | ||
| - | Jan 12 15:16:41 rustbucket chat[2042]: send (\d) | ||
| - | Jan 12 15:16:42 rustbucket pppd[2039]: Script / | ||
| - | Jan 12 15:16:42 rustbucket pppd[2039]: Serial connection established. | ||
| - | Jan 12 15:16:42 rustbucket pppd[2039]: using channel 6 | ||
| - | Jan 12 15:16:42 rustbucket pppd[2039]: Using interface ppp0 | ||
| - | Jan 12 15:16:42 rustbucket pppd[2039]: Connect: ppp0 & | ||
| - | ... | ||
| - | |||
| - | ==== Stopping: ==== | ||
| - | |||
| - | **poff** shuts down your dial-up network connection: | ||
| - | |||
| - | # mr_retro@rustbucket: | ||
| - | |||
| - | You should hear the modem drop the connection ; verify with **plog**: | ||
| - | |||
| - | # mr_retro@rustbucket: | ||
| - | ... | ||
| - | Jan 12 15:16:45 rustbucket pppd[2039]: Script / | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: Terminating on signal 15 | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: Connect time 13.6 minutes. | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: Sent 39110 bytes, received 406951 bytes. | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: Script / | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: sent [LCP TermReq id=0x2 "User request" | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: Script / | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: rcvd [LCP TermAck id=0x2] | ||
| - | Jan 12 15:30:18 rustbucket pppd[2039]: Connection terminated. | ||
| - | Jan 12 15:30:20 rustbucket pppd[2039]: Exit. | ||
| - | |||
| - | ===== References: ===== | ||
| - | |||
| - | * pppconfig(8) - configure pppd to connect to the Internet | ||
| - | * pon(1), poff(1), plog(1) - starts up, shuts down or lists the log of PPP connections | ||
| - | * Ubuntu Community Documentation - [[https:// | ||
| - | * Debian Linux Modem Configuration - [[http:// | ||