Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1
supplied    modem   with    an  aftermarket modem   if  you want    to  spend   the
money. Either way, using a router can save many headaches and enables
you to easily connect more than one computer to an Internet connection.
Note that a cable connection usually comes with an Ethernet cable, in
which case you just need a router. Check with your ISP before buying to
ensure that whatever router you end up with can be supported. You might
find that your ISP even supplies a router as part of the package.

Configuring a PPPoE Connection Manually


You should need to use the steps in this section only if you are using a modem
supplied by your ISP and not a router. The basic steps involved in manually
setting up a DSL connection using Ubuntu involve connecting the proper
hardware and then running a simple configuration script if you use rp-
pppoe from Roaring Penguin.


First, connect your DSL modem to your telephone line and then plug in your
Ethernet cable from the modem to your computer’s NIC. If you plan to share
your DSL connection with the rest of your LAN, you need at least two
network cards, designated eth0 (for your LAN) and eth1 (for the DSL
connection).


The following example assumes that you have more than one computer and
will share your DSL connection on a LAN.


First, log in as root and ensure that your first eth0 device is enabled and up
(perhaps using the ifconfig command). Next, bring up the other interface
but assign a null IP address like this:


Click here to view code image
matthew@seymour:~$ sudo ifconfig eth1 0.0.0.0 up


Now use the adsl-setup command to set up your system, as follows:


Click here to view code image
matthew@seymour:~$ sudo /sbin/adsl-setup


You are presented with a text script and asked to enter your username and the
Ethernet interface used for the connection (such as eth1). You are then asked
to use “on-demand” service or have the connection stay up all the time (until
brought down by the root operator). You can also set a timeout, in seconds, if
desired. You are then asked to enter the IP addresses of your ISP’s DNS
servers if you haven’t configured the system’s /etc/resolv.conf file.


After that, you are prompted to enter your password two times and must

Free download pdf