PDA

View Full Version : Lost internet connection



piamn77
Oct 12th 2008, 11:21 AM
Hello everyone.

I am very new to linux. I installed Kubuntu 8.04.01 on a new computer 5 days ago, and so far it has been running just fine. But today when I started it up suddenly there was no internet connection. In KNetwork manager it says active, but I cant get anything from the internet - no webpages, no chatclient, no nothing... I have an ethernet connection and when I plug it into my old computer, which is running windows XP there is no problem. I tried looking around on the forum but didn´t really find anything I could use. I tried some commands that I found and this is what I got:


pia@pia-desktop:~$ sudo dhclient eth0

[sudo] password for pia:

Internet Systems Consortium DHCP Client V3.0.6

Copyright 2004-2007 Internet Systems Consortium.

All rights reserved.

For info, please visit http://www.isc.org/sw/dhcp/


Listening on LPF/eth0/00:1e:8c:6a:ba:27

Sending on LPF/eth0/00:1e:8c:6a:ba:27

Sending on Socket/fallback

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5

DHCPOFFER of 10.83.255.21 from 10.83.0.1

DHCPREQUEST of 10.83.255.21 on eth0 to 255.255.255.255 port 67

DHCPACK of 10.83.255.21 from 10.83.0.1

bound to 10.83.255.21 -- renewal in 48 seconds.

pia@pia-desktop:~$ sudo lshw -C network

pia@pia-desktop:~$ ifconfig

eth0 Link encap:Ethernet HWaddr 00:1e:8c:6a:ba:27

inet addr:10.83.255.21 Bcast:255.255.255.255 Mask:255.255.255.0

inet6 addr: fe80::21e:8cff:fe6a:ba27/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:9115 errors:0 dropped:0 overruns:0 frame:0

TX packets:12 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:600044 (585.9 KB) TX bytes:2568 (2.5 KB)

Interrupt:21 Base address:0xc000


lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:20 errors:0 dropped:0 overruns:0 frame:0

TX packets:20 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:920 (920.0 B) TX bytes:920 (920.0 B)


pia@pia-desktop:~$

I put the three commands I used in bold.

Can someone please help me?

Pia

nowshining
Oct 12th 2008, 11:58 AM
try:


sudo ifdown eth0; sudo ifup eth0

toad
Oct 12th 2008, 12:32 PM
Also, please check that your file /etc/network/interfaces contains nothing else but


auto lo
iface lo inet loopback

piamn77
Oct 12th 2008, 12:45 PM
try:


sudo ifdown eth0; sudo ifup eth0


This is what I got:


pia@pia-desktop:~$ sudo ifdown eth0

ifdown: interface eth0 not configured

pia@pia-desktop:~$ sudo ifup eth0

Ignoring unknown interface eth0=eth0.

pia@pia-desktop:~$

Also someone else suggested I´d try this:


pia@pia-desktop:~$ route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

10.83.255.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0

0.0.0.0 10.83.255.1 0.0.0.0 UG 0 0 0 eth0

pia@pia-desktop:~$ ping -c 5 www.google.com

ping: unknown host www.google.com

pia@pia-desktop:~$ ping -c 5 64.233.189.104

PING 64.233.189.104 (64.233.189.104) 56(84) bytes of data.

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted

ping: sendmsg: Operation not permitted


--- 64.233.189.104 ping statistics ---

5 packets transmitted, 0 received, 100% packet loss, time 4009ms


pia@pia-desktop:~$

toad
Oct 12th 2008, 12:50 PM
Check your /etc/network/interfaces file...

piamn77
Oct 12th 2008, 01:10 PM
Check your /etc/network/interfaces file...


I´m sorry but I am pretty new at this. How do I do that? I tried putting in the commands from your previous post, but all I got was "command not found" or something like that.

Also I´m switching between 2 computers, so everytime I have to try something on the Kubuntu pc I have to close the computer that I am currently posting from down, switch some cables, start the other one up. And to come back here I have to do it all back again. So it takes a while.

I really appreciate the help you guys are giving me.

toad
Oct 12th 2008, 01:16 PM
No problem. In that case check the output of
cat /etc/network/interfaces

If it is not like what I posted above report back and we'll get you back on the road :)

piamn77
Oct 12th 2008, 01:43 PM
No problem. In that case check the output of
cat /etc/network/interfaces

If it is not like what I posted above report back and we'll get you back on the road :)


Thank you. I tried that now, but it was just like you posted above.

toad
Oct 12th 2008, 01:49 PM
One last try from me. If you input the following command


ps aux|grep knetworkmanager

you should get two lines of output. If you only get one you will need to start knetworkmanager. To do so, go to kmenu - internet - knetworkmanager

Okay, if you only had one line, plug yourself in and everything should work. After having plugged yourself in, run the command
dmesg

Again, please post the output if you still ain't online.

piamn77
Oct 12th 2008, 04:04 PM
It has been solved. ;D

Someone in another forum figured it out. As it turned out I had installed Guarddog a few days ago, and then removed it again using Adept. Apparantly that was not enough, because there were still some files on my system blocking connection to the internet. When he/she helped me remove them I was connected again.

Thank you very much for all your help. I really appreciate it all.

toad
Oct 12th 2008, 10:48 PM
Good stuff! Could you post a link to that thread?

In future you may want to consider using apt on the command line. Here is a good guide: http://mepislovers.org/forums/showthread.php?t=10870

tralfazz0
Oct 12th 2008, 11:28 PM
It has been solved. ;D

Someone in another forum figured it out. As it turned out I had installed Guarddog a few days ago, and then removed it again using Adept. Apparantly that was not enough, because there were still some files on my system blocking connection to the internet. When he/she helped me remove them I was connected again.

Thank you very much for all your help. I really appreciate it all.


I need that info. I appear to have the same problem, and it's driving me nuts!

piamn77
Oct 12th 2008, 11:33 PM
Good stuff! Could you post a link to that thread?

In future you may want to consider using apt on the command line. Here is a good guide: http://mepislovers.org/forums/showthread.php?t=10870


Thanks for the tip. I will do that. :)

Here is a link to the other thread.

http://ubuntuforums.org/showthread.php?t=945359