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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
You mention both a cable modem and ADSL. Since they are different we need to know which broadband service you are using.
What type of modem do you have? Some are a combination of modem/router. If you have a combination modem / router then you do not need to configure pppoe on linux.
With cable all you need to do is configure the network adapater for DHCP. For ADSL you need to run the adsl-setup configuration script. The adsl-start script starts the pppoe connection.
Hi Henning,
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".
Code:
# /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:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.