How to connect to the internet using network card?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The ADSL modem acts as a DHCP server (Dynamic Host Configuration Protocol).
Meaning that your PC can broadcast a request for an IP-address, router-address, DNS-address
and everything necessary to setup the network connection.
You must start the DHCP-client program on your machine. There may be some support for
this in Slackware (I am running Fedora so I don't know). Otherwise the man-page should
be available; "man dhclient" (if Slackware uses the same client as Fedora that is).
Use "ifconfig -a" to check if the kernel sees the interfaces. The "real" HW-interfaces usually
shows up as "eth0" etc, and are having a HWaddr field with an ethernet address.
Linux (or Windows for that matter) desn't usually know anything about ADSL. It just sees
an ethernet with a DHCP server on it, that's enough. So you will probably not find any
ADSL specific programs for setting up connections on Linux.
Usually, a broadband connection is started at boot and stays up until power off as you are not paying call charges.
In slackware, at least until 9.1 which I have installed, you just have to configure "/etc/rc.d/rc.inet1.conf".
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
# Config information for eth0:
Of course you have to setup network at boot. Just look at the permissions of "/etc/rc.d/rc.inet1". It must be "-rwxr-xr-x" to execute at boot.
It depends on the modem. Any adsl line works the same way. It needs to establish a ppp connection between the client (you) and the server (the telephone central). Depending on the modem type and configuration, you have to instruct your computer to do that, using "pppoe" or leave this responsibility to the modem.
In the last case, the modem establish a ppp connection to the server and setup a dhcpd server to configure your stations. Then all you need is to configure your board with dhcp client and you are surfing.
The problem with this configuration is all your machines are behind NAT. The node which has a public internet address is the modem.
But, in both modes, I don't know any need to connect on demand as we pay a monthly subscription for the connection and it does not occupy our phone line.