No wired network after install Ubuntu 8.04

Asked by mpcsm

Hi
I'm new to Ubuntu.

Before the install, I ran the live CD and had network connection which was working fine.

While in live CD I installed ubuntu on HD and when I start from the hard disk, I get no wired network.

Any help would be appreciated...Thanks....remember newbie

PS
Ran ifconfig...results below
ifconfig is

eth0 Link encap:Ethernet HWaddr 00:1a:92:8f:c6:c2
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
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:1592 errors:0 dropped:0 overruns:0 frame:0
TX packets:1592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:79600 (77.7 KB) TX bytes:79600 (77.7 KB)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
mpcsm
Solved:
Last query:
Last reply:
Revision history for this message
Shang Wu (shangwu) said :
#1

Your Ethernet card is there, try the command:

sudo dhclient eth0

This will try to get the IP address for you. If it works, you should be able to go online after that. If not, please let us know the error.

Revision history for this message
mpcsm (michael-mpcsm) said :
#2

That worked Wow thanks

When I reboot though that setting is forgotten.

Is there a way that I can automate the renewal of the IP

Revision history for this message
mpcsm (michael-mpcsm) said :
#3

Woops correction...2nd reboot, I still have no network connection so I tried the sudo dhclient eth0
This time I got the following

michael@michael-desktop:~$ sudo dhclient eth0
[sudo] password for michael:
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:1a:92:8f:c6:c2
Sending on LPF/eth0/00:1a:92:8f:c6:c2
Sending on Socket/fallback
DHCPREQUEST of 192.168.2.5 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.2.5 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
Trying recorded lease 192.168.2.5
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.

--- 192.168.2.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
michael@michael-desktop:~$

Revision history for this message
Shang Wu (shangwu) said :
#4

Interesting, Looks like your DHCP is not working OR your Ethernet card is not enabled. Can you post the output for these two command:

ifconfig
ifconfig -a

Thanks,

Revision history for this message
mpcsm (michael-mpcsm) said :
#5

michael@michael-desktop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:92:8f:c6:c2
          UP BROADCAST MULTICAST MTU:1500 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:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          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:1530 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1530 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:76500 (74.7 KB) TX bytes:76500 (74.7 KB)

michael@michael-desktop:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1a:92:8f:c6:c2
          UP BROADCAST MULTICAST MTU:1500 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:1000
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
          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:1530 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1530 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:76500 (74.7 KB) TX bytes:76500 (74.7 KB)

Revision history for this message
Shang Wu (shangwu) said :
#6

First, make sure the cable connected properly on both end. Second, if you can try to use another Ethernet cable to make sure we don't need to worry about the cable issue.

Also, in network manager, did you use roaming mode? DHCP? or set up the static IP address? In the case like this, I will manually setup the IP address (which is the static IP) and try to ping the router and see if we can get any respond.

Last, can you run the command:

lspci -vvnn | grep Ethernet

and post the output here?

Revision history for this message
mpcsm (michael-mpcsm) said :
#7

Shang
The cable is connected and the card is very much operational...How I know...that's because I dual boot with Windows and when in Windows the internet access is working.
Also when I run Ubuntu from live CD the internet connection is fine. It has something to do with the new install.
I've tried multiple installation with the same outcome

In network manager roaming is on. When I go to the DNS tab under network manager, I can see mu Domain name in the "Search Domain", I can also see the DNS server being 192.168.2.1 and 61.9.195.193
These are the correct setting but I cant ping them
When I ping 192.168.2.1 I get Network is unreachable

Not using Static IP
Yes using DHCP on the router 192.168.2.1

I setup the static IP as follows
Went to Network Manager, unlocked.
Selected the Wired Connection then press Property
Unchecked the "Enable roaming mode"
In configuration, selected "Static IP address"
In IP address entered 192.168.2.5
Subnet mask 255.255.255.0
Gateway left blank
Press OK
In the Terminal windows I pinged 192.168.2.1 and got "Destination host unreachable"

I assume you lspci parameters are -vnn not -wnn...Here is the result

michael@michael-desktop:~$ lspci -vnn | grep Ethernet
04:07.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167] (rev 10)
 Subsystem: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet [10ec:8167]

Thanks for your help so far :)

Revision history for this message
Shang Wu (shangwu) said :
#8

Actually, you will need to setup the gateway to 192.168.2.1 ....
Also, please run the command and paste the output

uname -a

Revision history for this message
mpcsm (michael-mpcsm) said :
#9

Now configured as static ip with gateway as 192.168.2.1

michael@michael-desktop:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
From 192.168.2.5 icmp_seq=1 Destination Host Unreachable
From 192.168.2.5 icmp_seq=2 Destination Host Unreachable
From 192.168.2.5 icmp_seq=3 Destination Host Unreachable
From 192.168.2.5 icmp_seq=5 Destination Host Unreachable
From 192.168.2.5 icmp_seq=6 Destination Host Unreachable
From 192.168.2.5 icmp_seq=8 Destination Host Unreachable
From 192.168.2.5 icmp_seq=9 Destination Host Unreachable

[1]+ Stopped ping 192.168.2.1
michael@michael-desktop:~$ uname -a
Linux michael-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux

PS Also saw this post...Is this relevant?
http://www.linuxquestions.org/questions/linux-networking-3/no-network-detected-realtek-81118168-issue-615047/#post3029998

Revision history for this message
mpcsm (michael-mpcsm) said :
#10
Revision history for this message
mpcsm (michael-mpcsm) said :
#11

Hi
Thanks for your help...Found the answer here
http://ubuntuforums.org/showthread.php?t=538448

It worked and also explains why its working from live CD but not harddisk