paint-brush
One of the key benefits of GNU/Linux over other systems lies in its networking supportby@goerzenandothman

One of the key benefits of GNU/Linux over other systems lies in its networking support

by Goerzen & OthmanNovember 1st, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

11. Networking One of the key benefits of GNU/Linux over other systems lies in its networking support. Few systems can rival the networking features present in GNU/Linux. In this chapter, we tell you how to configure your network devices. 11.1 PPP This section is a quick-start guide to setting up PPP on Debian. If it turns out that you need more details, see the excellent |PPP HOWTO| from the Linux Documentation Project. The HOWTO goes into much more detail if you’re interested or have unique needs. 11.1.1 Introduction If you connect to the Internet over a phone line, you’ll want to use PPP (Point-to-Point Protocol). This is the standard connection method offered by ISPs (Internet service providers). In addition to using PPP to dial your ISP, you can have your computer listen for incoming connections - this lets you dial your computer from a remote location.
featured image - One of the key benefits of GNU/Linux over other systems lies in its networking support
Goerzen & Othman HackerNoon profile picture

Debian GNU/Linux: Guide to Installation and Usage by John Goerzen and Ossama Othman is part of the HackerNoon Books Series. You can jump to any chapter in this book here. Networking

11. Networking

One of the key benefits of GNU/Linux over other systems lies in its networking support. Few systems can rival the networking features present in GNU/Linux. In this chapter, we tell you how to configure your network devices.

11.1 PPP

This section is a quick-start guide to setting up PPP on Debian. If it turns out that you need more details, see the excellent |PPP HOWTO| from the Linux Documentation Project. The HOWTO goes into much more detail if you’re interested or have unique needs.

11.1.1 Introduction

If you connect to the Internet over a phone line, you’ll want to use PPP (Point-to-Point Protocol). This is the standard connection method offered by ISPs (Internet service providers). In addition to using PPP to dial your ISP, you can have your computer listen for incoming connections - this lets you dial your computer from a remote location.

11.1.2 Preparation

Configuring PPP on Debian GNU/Linux is straightforward once you have all the information you’ll need. Debian makes things even easier with its simple configuration tools.


Before you start, be sure you have all the information provided by your ISP. This might include:


◼ Username or login


◼ Password


◼ Your static IP (Internet Protocol) address, if any (these look like 209.81.8.242). This information isn’t needed for most ISPs.


◼ Bitmask (this will look something like 255.255.255.248). This information isn’t needed for most ISPs.


◼ The IP addresses of your ISP’s name servers (or DNS).


◼ Any special login procedure required by the ISP.


Next, you’ll want to investigate your hardware setup: whether your modem works with GNU/Linux and which serial port it’s connected to.


A simple rule determines whether your modem will work. If it’s a “winmodem” or “host-based modem,” it won’t work. These modems are cheap because they have very little functionality, and they require the computer to make up for their shortcomings. Unfortunately, this means they are complex to program, and manufacturers generally do not make the specifications available for developers.


If you have a modem with its own on-board circuitry or an external modem, you should have no trouble at all.


On GNU/Linux systems, the serial ports are referred to as /dev/ttyS0, /dev/ttyS1, and so on. Your modem is almost certainly connected to either port 0 or port 1, equivalent to COM1: and COM2: under Windows. If you don’t know which your modem is connected to, run the program wvdialconf to try to detect it (see below); otherwise, just try both and see which works.


If you want to talk to your modem or dial your ISP without using PPP, you can use the minicom program. You may need to install the minicom package to make the program available.

11.1.3 The Easy Way: wvdial

The simplest way to get PPP running is with the wvdial program. It makes some reasonable guesses and tries to set things up for you. If it works, you’re in luck. If it guesses wrong, you’ll have to do things manually.


Be sure you have the following packages installed:


◼ ppp


◼ ppp-pam


◼ wvdial


When you install the wvdial package, you may be given the opportunity to configure it. Otherwise, to set up wvdial, follow these simple steps:


Log in as root, using su (as described in an earlier chapter).


touch /etc/wvdial.conf


touch will create the following file if the file doesn’t exist; the configuration program requires an existing file.


wvdialconf /etc/wvdial.conf


This means you’re creating a configuration file, /etc/wvdial.conf.


Answer any questions that appear on the screen. wvdialconf will also scan for your modem and tell you which serial port it’s on; you may want to make a note of this for future reference.

11.2 Ethernet

Another popular way to connect to the Internet is via a LAN that uses Ethernet. This gives you a high-speed local network in addition to Internet access. Fortunately, though, you should have already configured Ethernet networking during installation so there isn’t much you need to do now. If you ever need to modify your configuration, here are the files that you will be interested in:


◼ /etc/init.d/network has things such as your IP address, netmask, and default route.


◼ /etc/hostname records your hostname.


◼ /etc/hosts also records your hostname and IP address.




About HackerNoon Book Series: We bring you the most important technical, scientific, and insightful public domain books.


This book is part of the public domain. John Goerzen and Ossama Othman (2004). Debian GNU/Linux : Guide to Installation and Usage. Urbana, Illinois: Project Gutenberg. Retrieved https://www.gutenberg.org/cache/epub/6527/pg6527-images.html


This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the Project Gutenberg License included with this eBook or online at www.gutenberg.org, located at https://www.gutenberg.org/policy/license.html.