Ask Klaus!
Internet
Question:
I am hoping you can help me. I am writing this under Windows (ugh ) because whichever version of Linux I try I cannot get on the Internet or receive email. I was on Linux for about a year using SUSE, Xandros, or Mandrake 9, but one day all connectivity ceased.
Both my computers are AMD. I was using a D-LINK ASDL modem router DSL-504T and an Ethernet card. The machine detects the card , but I cannot call 10.1.1.1 to configure, or the programs can't reach home to finish updates.
Both computers use Firefox and Thunderbird, the same as Windows, using the same asdl modem. As I said, all was working well and suddenly stopped. D-Link is advertised as Linux compatible. I am not a power user – just an old guy who rebels against Microsoft.
Answer:
You don't need to be an expert or a rebel to use Linux, but you are right about the fact that free software is a way out of dependencies. By the way, I'm unfortunately living in a DSL-free zone, and I am waiting for bandwidth. Anyway, let's try to free your DSL modem.
There are two ways to configure the DSL modem, the easier of which is router mode. The default is probably modem/pppoe mode.
In router mode, all you need to do is send a DHCP request from the network card for a complete autoconfiguration. In modem mode, you need to configure authentication credentials on your computer, which can be done by using the program pppoeconf (or whatever tool is provided by your distribution).
To configure the modem for one or the other mode, you first need to reach it from the computer. If your modem's fixed address is 10.1.1.1, your network card must be configured as a member of the same network in order for you to connect to the modem. Usually, the modem is set up to deliver an appropriate local IP address to the connected network card when the card sends a DHCP broadcast, but this may depend on the modem's preset configuration.
If your network card is eth0, you would set an IP address for the card either via a graphical configuration front end of your Linux distribution – use DHCP with pump -i eth0 or dhclient eth0 – or set a static address by typing (as root)
ifconfig eth0 10.1.1.3 netmask 255.0.0.0 broadcast 10.255.255.255
and add a gateway route through the modem with
route add default gw 10.1.1.1
which should, as soon as the modem is functional as a router, allow network traffic to and from the Internet.
One last thing you need, in case DHCP did not set a name server, is the line nameserver 10.1.1.1 in the file /etc/resolv.conf. This tells Linux to use the modem as a name server for resolving computer names (such as linux-magazine.com) into IP addresses (which is what every network connection needs).
After having configured your local network this way, you should be able to reach the modem with any browser by entering http://10.1.1.1/ as a website address. If the modem is already set to router mode, then you'll already have immediate Internet access.
At each step, you can check to see whether the modem is reachable from the configured network card with the command:
ping 10.1.1.1 (Control-C to quit)
I think that the only thing missing in your DSL configuration was the local IP address of the network card, which can be handled with either DHCP or a static setting.
Also, be aware that in rare cases, some DSL routers/modems only accept network cards when they have been plugged in prior to switching on the modem. However, this should not affect the DSL-504T.
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Endless OS 6 has Arrived
After more than a year since the last update, the latest release of Endless OS is now available for general usage.
-
Fedora Asahi 40 Remix Available for Macs with Apple Silicon
If you've been anticipating KDE's Plasma 6 for your Apple Silicon-powered Mac, then you're in luck.
-
Red Hat Adds New Deployment Option for Enterprise Linux Platforms
Red Hat has re-imagined enterprise Linux for an AI future with Image Mode.
-
OSJH and LPI Release 2024 Open Source Pros Job Survey Results
See what open source professionals look for in a new role.
-
Proton 9.0-1 Released to Improve Gaming with Steam
The latest release of Proton 9 adds several improvements and fixes an issue that has been problematic for Linux users.
-
So Long Neofetch and Thanks for the Info
Today is a day that every Linux user who enjoys bragging about their system(s) will mourn, as Neofetch has come to an end.
-
Ubuntu 24.04 Comes with a “Flaw"
If you're thinking you might want to upgrade from your current Ubuntu release to the latest, there's something you might want to consider before doing so.
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.