LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2012, 07:54 PM   #1
pandanuma
Member
 
Registered: May 2005
Location: greatwhitenorth
Distribution: deb99+
Posts: 134
Blog Entries: 10

Rep: Reputation: 37
wired network will not connect


turned my computer off 2 days ago and when I turned it on the next day it would not connect to the internet.
hooked up an old computer and it connects just fine...
when I connect the modem to the computer, I get a green light and a flashing light where the cable plugs into the computer
networking icon tries to connect 4 or 5 times then gives up.
powered down check connections etc
managed to 'connect' once but firefox and email would come back 'server not found'

ifconfig lo says:
linkencap:local loopback
is loopback the problem?

sorry cannot copy ifconfig response

not sure but believe there were a few security updates downloaded before the computer was shut off.
any issues with ubuntu breaking internet connection settings?
using ubuntu 11.10

ran rkhunter and found 85 warnings
not sure how to fix them but would like an internet connection first...
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-12-2012, 09:08 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Without the output of ifconfig, it's hard to know where to start.

If you can't copy it, you could try piping it to file and then posting the contents of the file. Try this command as user: /sbin/ifconfig > ifconfig.txt

I can't test it in Ubuntu, but it works in Debian.

Also, what are the contents of /etc/network/interfaces?
 
Old 05-13-2012, 01:22 AM   #3
pandanuma
Member
 
Registered: May 2005
Location: greatwhitenorth
Distribution: deb99+
Posts: 134

Original Poster
Blog Entries: 10

Rep: Reputation: 37
so I found a usb drive and copied the info from my linux machine to this old vinders machine...forgot to save the file with .txt extension but finally got it

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:1a:92:0c:bd:56
inet6 addr: fe80::21a:92ff:fe0c:bd56/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:7607 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:461822 (461.8 KB) TX bytes:22365 (22.3 KB)
Interrupt:23 Base address:0x2000

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:3364 errors:0 dropped:0 overruns:0 frame:0
TX packets:3364 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:269040 (269.0 KB) TX bytes:269040 (269.0 KB)


contents of etc/network/interface:

auto lo
iface lo inet loopback

suggestion from another thread said to check the dhclient...but no output even under sudo

seached package manager for dhclient but none found...
 
Old 05-14-2012, 05:32 AM   #4
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
you don't have an IP address on eth0, you should check if the cable is connected and if speed negotiation is possible.
Code:
sudo ethtool eth0
This should point you to where the problem lies. If it is negotiated and seems to work you might be interested in setting up a static ip, update/upgrade packages and see if your dhcp client will work again.
 
Old 05-14-2012, 12:39 PM   #5
pandanuma
Member
 
Registered: May 2005
Location: greatwhitenorth
Distribution: deb99+
Posts: 134

Original Poster
Blog Entries: 10

Rep: Reputation: 37
steviepower: here is latest output...

:~$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: yes
:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:92:0c:bd:56
inet6 addr: fe80::21a:92ff:fe0c:bd56/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:796 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47760 (47.7 KB) TX bytes:8115 (8.1 KB)
Interrupt:23 Base address:0x6000

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:484 errors:0 dropped:0 overruns:0 frame:0
TX packets:484 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:38640 (38.6 KB) TX bytes:38640 (38.6 KB)

I have discovered I can get the wired network to 'connect' by unplugging the power cord to the modem and when I plug it back in it connects but still get server not found when I open firefox or thunderbird.
after a few minutes the wired 'connection' drops and it cycles thru but wont reestablish a connection...
could it be a hardware issue with my linux machine?
 
Old 05-14-2012, 04:04 PM   #6
pandanuma
Member
 
Registered: May 2005
Location: greatwhitenorth
Distribution: deb99+
Posts: 134

Original Poster
Blog Entries: 10

Rep: Reputation: 37
somehow I have wired internet again.
do not ask me how I did it.
last thing I did was open up Network Tools and tried to change Network Device from loopback interface (lo) to ethernet interface (eth0)
when I closed network tools and reopened it, loopback was back again, but then I powered down and back up and network icon showed normal.
(still shows loopback)

if no more issues I will show this as solved (by voodoo) in a day or so.
 
Old 05-14-2012, 04:11 PM   #7
pandanuma
Member
 
Registered: May 2005
Location: greatwhitenorth
Distribution: deb99+
Posts: 134

Original Poster
Blog Entries: 10

Rep: Reputation: 37
this was the latest output from Network Tools:

Network device: lo
Hardware address: Loopback
Multicast: Disabled
MTU: 16436
Link speed: not available
State: Active
Transmitted packets: 1395
Transmission errors: 0
Received packets: 1395
Reception errors: 0
Collisions: 0

and here is listing from ethtool eth0 and ifconfig:
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: g
Link detected: yes
:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:92:0c:bd:56
inet addr:24.67.184.201 Bcast:24.67.187.255 Mask:255.255.252.0
inet6 addr: fe80::21a:92ff:fe0c:bd56/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:52582 errors:0 dropped:0 overruns:0 frame:0
TX packets:19917 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:36783136 (36.7 MB) TX bytes:3713493 (3.7 MB)
Interrupt:23 Base address:0xa000

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:1659 errors:0 dropped:0 overruns:0 frame:0
TX packets:1659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:151148 (151.1 KB) TX bytes:151148 (151.1 KB)


now to power down again and see if connections return.
 
Old 05-14-2012, 08:05 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
If it fails again, in addition to the information you've provided, please provide the contents of /etc/network/interfaces.

This tells you more about that file: http://manpages.ubuntu.com/manpages/...erfaces.5.html (Don't worry about the mention of Lucid. The file hasn't changed.)
 
2 members found this post helpful.
Old 05-14-2012, 08:36 PM   #9
pandanuma
Member
 
Registered: May 2005
Location: greatwhitenorth
Distribution: deb99+
Posts: 134

Original Poster
Blog Entries: 10

Rep: Reputation: 37
/etc/network/interfaces still shows:

auto lo
iface lo inet loopback

working fine again so will show this as solved
 
Old 05-14-2012, 09:04 PM   #10
pandanuma
Member
 
Registered: May 2005
Location: greatwhitenorth
Distribution: deb99+
Posts: 134

Original Poster
Blog Entries: 10

Rep: Reputation: 37
frankbell, checking out that link you posted for network/interfaces...
it seems different than what I have, I only have 2 lines in that file(see my previous post).
I opened up my home folder and drilled down to etc/ then network/ and clicked on interfaces.
things are working so wont try to fix it...
will try to educate myself from that link though.
thanks for your input
 
1 members found this post helpful.
Old 05-15-2012, 10:06 AM   #11
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
okay... in debian you should have defined your connections there, in ubuntu I don think it really matters anymore.
 
1 members found this post helpful.
Old 05-15-2012, 08:21 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Good catch, Steviepower.

Code:
auto lo
iface lo inet loopback
That's exactly what exists in my Wubi box running Xubuntu.

There's more in the file on my Debian box because it's static IP.
 
Old 05-16-2012, 01:49 AM   #13
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
it's not because you have a static ip, it's because debian actually uses that file, ubuntu seems to work with the network manager where it stores all of it's network data.
 
1 members found this post helpful.
Old 05-16-2012, 08:39 PM   #14
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Thanks, Steviepower.

My Wubi box is wired, so I've never bothered with network manager--it just connects. I just checked and there is a process called "Network Manager" in the list.
 
  


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
eeePC 2G Surfs will no longer connect to network, wired or wireless Nagle Linux - Newbie 2 03-28-2012 06:21 PM
Wired Network won't connect Ubuntu 10.04.2 sls54 Linux - Newbie 5 03-08-2011 07:53 PM
Trying to connect to a Windows Computer Via a wired network Mickhumb Linux - Networking 1 02-15-2011 08:58 AM
Can't connect to wired network Randy Jackson Linux - Wireless Networking 4 01-17-2007 04:42 PM
Can't connect to wired network - Asus A8J/SuSe 10.1 Blade2006 SUSE / openSUSE 5 07-02-2006 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:43 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