LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2006, 06:59 PM   #1
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Rep: Reputation: 0
Why did my internet stop working?


I don't know if I'm posting in the right forum or not, but I'm using Slackware so thought I'd start here.

I cannot access the internet. It stopped working two days ago and I have no idea why. Naturally, I want to fix it but I'd also like to know what caused it to stop working, if that's possible. I've been trying to get it working for two days and am making no progress at all, and really not learning much either, which really sucks. I've searched the forums for a solution but nothing I'm seeing gives any explanation at all why do take a certain step or why to use a certain command or look in a certain file. It's pretty frustrating. I'm not looking for a course in networking (at least not yet), but I would like to understand (or at least find out how to learn) how these things work - or don't work.

Thanks in advance for your insight,

fk
 
Old 04-18-2006, 07:03 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by fortunekiller
I don't know if I'm posting in the right forum or not, but I'm using Slackware so thought I'd start here.

I cannot access the internet. It stopped working two days ago and I have no idea why. Naturally, I want to fix it but I'd also like to know what caused it to stop working, if that's possible. I've been trying to get it working for two days and am making no progress at all, and really not learning much either, which really sucks. I've searched the forums for a solution but nothing I'm seeing gives any explanation at all why do take a certain step or why to use a certain command or look in a certain file. It's pretty frustrating. I'm not looking for a course in networking (at least not yet), but I would like to understand (or at least find out how to learn) how these things work - or don't work.

Thanks in advance for your insight,

fk
what have you looked at so far??

have you tried the ubiquitous ping command??

you haven't provided any info which we could use to help you...

Last edited by win32sux; 04-18-2006 at 07:05 PM.
 
Old 04-18-2006, 07:07 PM   #3
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
First, we don't know why your Internet access isn't working either so you'll need to provide more info.

Second, run this command to make what is actually up:

$ /sbin/ifconfig

Post the output of that commmand in this thread and we can go from there.

Peace...
 
Old 04-18-2006, 08:18 PM   #4
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
Okay, thanks.

I have tried ping and I get a message saying Destination Host Unreachable.
I typed /sbin ifconfig and it says /sbin is a directory. Was I supposed to change directories before typing that command? Sorry, I really don't understand what I'm supposed to being doing here and I don't know what info you need...

I have tried netconfig and put in the same setting that I did when I installed Slackware, which is going w/ the DHCP option. I also tried using the static IP option.
 
Old 04-18-2006, 08:25 PM   #5
fregniacciaro
LQ Newbie
 
Registered: Feb 2004
Location: Spittin' distance from the Chattahoochee
Distribution: rh9, fc3, knoppix
Posts: 11

Rep: Reputation: 0
Quote:
Originally Posted by fortunekiller
Okay, thanks.

I have tried ping and I get a message saying Destination Host Unreachable.
I typed /sbin ifconfig and it says /sbin is a directory. Was I supposed to change directories before typing that command? Sorry, I really don't understand what I'm supposed to being doing here and I don't know what info you need...

I have tried netconfig and put in the same setting that I did when I installed Slackware, which is going w/ the DHCP option. I also tried using the static IP option.
Type the command exactly as tomdkat wrote. You missed a / and added a space.
 
Old 04-18-2006, 08:55 PM   #6
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
Ah, that was dumb! Okay, after typing /sbin/ifconfig I get this:

eth0 Link encap:Ethernet HWaddr 00:0D:56:39:41:16
inet addr: 24.271.170.248 Bcast: 24.241.170.255 Mask 255.255.255.0
UP BROADCAST MULTICAST MTU: 1500 Metric: 1
RX packets: 802 errors: 0 dropped: 0 overrunds: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 1000
RX bytes: 52012 (50.7 kB) TX bytes: 0 (0.0 b)
Interrupt: 11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask: 255.0.0.0
UP LOOPBACK RUNNING MTU: 16436 Metric: 1
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 0 errors: 0 dropped: 0 overruns: 0 carrier: 0
collisions: 0 txqueuelen: 0
RX bytes: 0 (0.0 b) TX bytes: 0 (0.0 Kb)
 
Old 04-18-2006, 09:00 PM   #7
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Did you try to ping a domain name or an IP? (ie "ping linuxquestions.org" vs "ping 64.179.4.149")

If you can not do the first, but can do the second, it's a DNS issue. You may want to try running the following (explanation below):

Code:
ifconfig eth0 down
ifconfig eth0 up
dhcpcd eth0
The first line takes down your 'net card, the second re-initializes it, and the third asks for an IP address, which it will be able to do if it is connected to the internet.
 
Old 04-18-2006, 09:03 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by Poetics
The first line takes down your 'net card, the second re-initializes it, and the third asks for an IP address, which it will be able to do if it is connected to the internet.
Actually, if it is connected to a DHCP server.

Last edited by cwwilson721; 04-18-2006 at 09:04 PM.
 
Old 04-18-2006, 09:24 PM   #9
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
When I tried to ping using the domain name, it said ping: unknown host http://www.linuxquestions.org. When I tried the IP address is said, connect: Network is unreachable.

I tried the commands listed but it did not supply an IP address.
 
Old 04-19-2006, 12:03 AM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Try pinging 24.241.170.255 and check if you get the response.
 
Old 04-19-2006, 04:56 AM   #11
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
I tried to ping 24.241.170.255 and it said:

connect: Network is unreachable
 
Old 04-19-2006, 05:19 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Now is the time to post the output from:
Code:
/sbin/route -n
Code:
cat /etc/resolv.conf
Code:
cat /etc/rc.d/rc.inet1.conf | grep -v "^#"
I'd say you either forgot to define a value for the GATEWAY, or put in a wrong IP address for it. What release of Slackware are you running?

Eric
 
Old 04-19-2006, 06:02 AM   #13
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
# /sbin/route -n:

Kernel IP routing table
Destination
127.0.0.0

Gateway
0.0.0.0

Genmask
255.0.0.0

Flags
U

Metric
0

Ref
0

Use
0

Iface
lo


# cat /etc/resolv.conf
search apnea

# cat /etc/rc.d/rc.inet.conf | grep -v "^#"
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

GATEWAY=""

DEBUG_ETH_UP="no"

# the default 'eth4'
# 1360 when you use NAT'ed IPSec traffic.
# your default gateway
# server
# defined in rc.wireless.conf, by prepending
# 'WLAN_' to the parameter's name. Useful for
# those with multiple wireless interfaces.
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV pramter (space-separated, see the
# example).


Wasn't sure if you needed those comments...

I'm running Slacware 10.2.
 
Old 04-19-2006, 06:33 AM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
My conclusions:
  1. You use DHCP - that is fine.
  2. Your default gateway has not been set (see the "route -n" output) - that is bad.
  3. The file "/etc/resolv.conf" does not contain the IP address(es) of a DNS server - that is bad.

I think (2) and (3) are caused by a change in the DHCP server on your network. Your configuration looks OK. The result of (2) is that you will not be able to connect to PC's that are not in your local LAN segment, and (3) will prohibit you from using hostnames when talking to other hosts (like, "ping www.linuxquestions.org" will not work).

Check your network's DHCP server. The fact that it gives you an IP address but not a default gateway, and no DNS addresses is weird. The file /etc/dhcpc/dhcpcd-eth0.info stores all the configuration information your PC has received from the DHCP server. Look for these lines:
Code:
GATEWAY=xxx.xxx.xxx.xxx
DOMAIN='your.lan'
DNS=yyy.yyy.yyy.yyy,zzz.zzz.zzz.zzz
where xxx.xxx.xxx.xxx should be the IP address of your gateway, and yyy.yyy.yyy.yyy and/or zzz.zzz.zzz.zzz are IP address(es) of DNS servers you can use. If they are missing, something is wrong on the server end. If they are present, then your PC has something twisted.

Eric
 
Old 04-19-2006, 08:09 PM   #15
fortunekiller
LQ Newbie
 
Registered: Apr 2006
Location: Augusta, GA
Distribution: Kubuntu/Slackware
Posts: 19

Original Poster
Rep: Reputation: 0
Here's what my /etc/dhcpc/dhcpcd-eth0.info file shows:

IPADDR=192.168.2.2
NETMASK=255.255.255.0
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
GATEWAY=192.168.2.1
DOMAIN='Belkin'
DNS=24.197.160.18,66.190.172.252
DHCPSID=192.168.2.1
DHCPGIADDR=0.0.0.0
DHCPSIADDR=0.0.0.0
DHCPCHADDR=00:0D:56:39:41:16
DHCPSHADDR=00:11:503:994
DHCPSNAME=' '
LEASETIME=4294967295
RENEWALTIME=2147483647
REBINDTIME=3758096383
INTERFACE='eth0'
CLASSID='Linux 2.4.31 i686'
CLIENTID=00:0D:56:39:41:16


That looks alot different. Belkin is the name of the wireless router I was using before the internet stopped working. Now the ethernet goes right from the cable modem to this windows laptop for internet access.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ftp stop working klemen Slackware 1 07-01-2005 08:45 AM
Mouse stop working!! help inflamestory Linux - Laptop and Netbook 0 02-25-2005 05:14 AM
Why did it stop working. xodinsbane Mandriva 5 09-18-2004 08:10 PM
Activating my ethernet makes my internet connection stop working ElijahLofgren Linux - Networking 1 02-04-2004 11:08 PM
My YahooMessenger stop working!! AskMe Linux - Newbie 8 09-25-2003 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration