SlackwareThis Forum is for the discussion of Slackware Linux.
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.
I just installed Slack 8.1 and I'm slowly getting everything configured. However, I still can't get internet to work. I'm hooked up on a cable modem through eth0. I ran netconfig and set up DHCP, everything looks fine. But when I try to ping anything or access a website, nothing loads. The result of the ping is "Unknown server". I've looked at the slackware website and I've searched all over here and I still can't figure it out. Any help would be greatly appreciated. Thanks in advance.
Can you ping by IP number ?
Have you checked or added the DNS entries to your /etc/resolv.conf ? In some cases while using DHCP, you still need to specify your DNS entries.
What output do you get when you do a ifconfig eth0 ? Does it display any output for you IP, Netmask.. etc.. ??
I know that the ip is wrong because the other computers (windows machines) that are hooked up to the same router (netgear) have an ip that begins with 12. I know that it works because I had Suse 7.3 running just fine. If I have to change my resolv.conf file, what do I add/modify? I know what DNS is but what to enter boggles me. Thanks again.
I know that the ip is wrong because the other computers (windows machines) that are hooked up to the same router (netgear) have an ip that begins with 12. I know that it works because I had Suse 7.3 running just fine. If I have to change my resolv.conf file, what do I add/modify? I know what DNS is but what to enter boggles me. Thanks again.
You need to set up /etc/resolv.conf to include
the DNS servers for your work or ISP.
Can you ping 192.168.0.2 ?
Last edited by pickledbeans; 07-09-2002 at 09:40 PM.
PING 192.168.0.2 (192.168.0.2): 56 octets data
64 octets from 192.168.0.2 icmp_seq=0 ttl=255 time=0.1ms
the icmp_seq number goes up to 300 and still counting.
How do I tell resolv.conf about dns?
This tells us that your network interface is up.
It is used only for you LAN or local network.
How may network cards to you have in this box?
You mentionsed cable modem? Do you have one card point
to the LAN (192.168.0.2) and the second one going directly to the router and out to the internet?
Nope...Just one card that goes to the router. My roommates and I share one internet account so there's three boxes (mines the only linux box) plugged into the router. The router then goes to the cable modem. Since all of us are mentally network handicapped, this was the easiest way to set things up.
Ok, so each box gets its ip address directly from the ISP?
If that's the case the only ipaddress your eth0 should have (someone correct me if I'm wrong) is the one assigned by your ISP , and eth0 should be set to use DHCP proto.
And you need to set up /etc/resolv.conf to reflect you ISP's DNS servers mine looks like this:
The other alternative is a LAN with a single connection
to the internet:
1. Setup of mdoem sharing on one of the Windows boxes.
and route the other boxes threw.
2. Setup a Linux box as a firewall and ipmasq. Send all request threw it.
The advantage of this is you all can connect to the internet and still have you LAN also.
Last edited by pickledbeans; 07-09-2002 at 11:29 PM.
Unless we can set up a virutual network interface on eth0 (I way over my head hear) so what we would have is something like this (again a single network card per box):
LAN isn't important to me...we just want to share internet. I try to change resolv.conf and when I reboot, it always changes back. I can't just plug in an ip address because it isn't static--I don't want to have to enter in a new ip everytime it changes.
Also, during bootup when DHCP tries to initialize, it says that option broadcastAddr can't be found on server. Does that matter?
okay this is whacky. I plugged straight into the cable modem, rebooted, and it works like a charm. Is the router blocking my box from contacting the service?
Originally posted by busbarn Now I just plugged back into the router and all is well. So thanks for your help, I have no idea what's happening but it works. Crazy computers.
Oh not you don't your not getting on that easy.
Has anything changes inside the house, did any of you buddies turn off there computers before you reboot/disconnect and reconnect to the router?
nope. I just unplugged the router from the modem, plugged into the modem, rebooted, plugged back into the router, and the router into the modem. All 3 computers work fine. Who knows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.