Unable to connect to the internet in Ubuntu 8.04

Asked by haris

Hi guys,
I am new Linux user. I Installed 8.04 successfully, but I can not connect to internet. For physical connection I use; D-link DI-524 router DHCP enabled. I use wired connection, ethernet NIC. I configured Network settings using System/Administration/Network and set Connection Settings to Automatic configuration (DHCP). It does not work.
In Windows, internet connection works fine getting IP address without problems...

I would appreciate any help.
Thanks,
Haris

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
haris
Solved:
Last query:
Last reply:
Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#1

Hi Haris,

Hope you will find this link useful http://ubuntu.sun.ac.za/wiki/index.php/Internet

Let me know if you have any problem.

_Murali_

Revision history for this message
haris (haris703eej) said :
#2

Murali thank you, but it did not work. In the meantime I tried to do something on my own.
When I ping my DNS I get the message "Destination Host Unreachable". I get the same message when I ping my default gateway (my router).
In both cases ping packets are sent from the IPaddress: 169.254.5.188. It looks like Windows APIPA address that is being given to NIC when DHCP is not available on LAN, although my eth0 is configured with Automatic configuration (DHCP). My DHCP works because other 2 PCs work fine on LAN on Windows.

Thanks for any help in advance.

Haris

Revision history for this message
Tony Mugan (tmugan) said :
#3

Can you post the results of the following from a terminal window (Applications menu, accessories)

ifconfig

sudo mii-tool

sudo mii-diag

Revision history for this message
haris (haris703eej) said :
#4

Tony, thanks for response. This is the result of commands you specified. Before you replied, I tried to configure IP address statically...still does not work...

haris@haris-desktop:~ ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:e2:4d:6f:44
  inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0
  inet6 addr: fe80::200:e2ff:fe4d:6f44/64 Scope:Link
  UP BROADCAST RUNNING 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)

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:1982 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1982 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:0
RX bytes:121936 (119.0 KB) TX bytes:121936 (119.0 KB)

haris@haris-desktop:~ sudo mii-tool
[sudo] password for haris:
Eth0; negotieated 100baseTx-FD flow-control, link ok

haris@haris-desktop:~ sudo mii-diag
using default interface ‘eth0’.
Basic registers of MII PHY #1:3100 782d 02a8 0330 05e1 45e1 0001 0000.
The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
Basic mode control register 0x3100: Auto-negotiation enabled.
You have link beat, and everything is working OK.
Your link partner advertisd 45e1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD 10baseT, w/802.3X flow control.
End of basic transceiver information.

Revision history for this message
Ralph Janke (txwikinger) said :
#5

If you have configured the IP address statically, you probably did not configure the gateway.

what is the output of

route -n

Thanks

Revision history for this message
Tony Mugan (tmugan) said :
#6

Looks fine

What about setting your adapter back to use DHCP and then try this in a terminal window and post the results

sudo dhclient eth0

Revision history for this message
haris (haris703eej) said :
#7

The fact is that I tried to install Ubuntu 8.04 on my pc Acer Veriton 5100 PIII 933 MHz, 512MB RAM. Before that, there was Red Hat 7.2 on that machine, and Internet worked fine!
Yesterday, I run Ubuntu 8.04 live CD on another pc - Compaq Evo P4 1.7 GHz 512MB RAM, and Internet worked fine having IP from DHCP! I will install Ubuntu on Compaq Evo, and my current problem will be solved.

Could it be a driver problem? Is it possible that Red Hat 7.2 has a driver for my built-in NIC (Intel PRO/100) in Veriton 5100, and Ubuntu 8.04 hasn't?

Guys, thanks a lot for your efforts.

Haris

Revision history for this message
Tony Mugan (tmugan) said :
#8

It is possible yes.

Do you have any better luck if you boot the Acer machine with the same Ubuntu 8.04 live CD?

Revision history for this message
haris (haris703eej) said :
#9

I tried. Ubuntu 8.04 live CD worked - but Internet did not, as before.

Revision history for this message
Tony Mugan (tmugan) said :
#10

Let's see what the NIC is being detected as then

lspci | grep Ethernet

and then check what modules are being loaded

lsmod

Revision history for this message
haris (haris703eej) said :
#11

haris@haris-dektop:~$ lspci | grep Ethernet
02:08.0 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 01)

haris@haris-dektop:~$ lsmod
Module Size Used by
ipv6 267780 8
af_packet 23812 3
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm, l2cap
ppdev 10372 0
speedstep_lib 6532 0
cpufreq_ondemand 9740 0
cpufreq_userspace 5284 0
cpufreq_conservative 8712 0
cpufreq_stats 7104 0
cpufreq_powersave 2688 0
freq_table 5536 2 cpufreq_ondemand, spufreq_stats
container 5632 0
video 19856 0
output 4736 1 video
sbs 15112 0
sbshc 7680 1 sbs
dock 11280 0
battery 14212 0
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 iptables
ac 6916 0
parport_pc 36260 0
lp 12324 0
parport 37832 3, ppdev, parport_pc, lp
evdev 13056 3
snd_intel8x0 35356 4
snd_ac97_codec 101028 1 snd_intel8x0
ac97_bus 3072 snd_ac97_codec
analog 13600 0
serio_raw 7940 0
gameport 16008 1 analog
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
nsd_pcm 78596 4 snd_intel8x0, snd_ac97_codec,snd_pcm_ossS
psmouse 40336 0
i2c_core 24832 0
snd_seq_dummy 4868 0
button 9232 0
snd_seq_oss 35584 0
snd_seq_midi 9376 0
snd_rawmidi 25760 1 snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss, snd_seq_midi
snd_seq 54224 6 snd_seq_dummy, snd_seq_oss, snd_seq_middi, snd_seq_midi_event
snd_timer 24836 3 snd_pcm, snd_seq
snd_seq_device 9612 5 snd_seq_dummy, snd_seq_oss, snd_seq_midi, snd_rawmidi, snd_seq
iTCO_wdt 13092 0
iTCO_vendor_support 4868 1 iTCO_wdt
pcspkr 4224 0
snd 56996 17 snd_intel8x0, snd_ac97_codec, snd_pcm_oss, snd_mixer_oss, snd_pcm, snd_seq_dummy, snd_seq_oss, snd_rawmidi, snd_seq, snd_timer, snd_seq_device
q_device
soundcore 8800 1 snd
snd_page_alloc 11400 2 snd_intel8x0, snd_pcm
shpshp 34452 0
pci_hotplug 30880 1 shpchp
intel_agp 25492 1
agpgart 34760 1 intel_agp
ext3 136712 1
jbd 48404 1 ext3
mbcache 9600 1 ext3
sg 36880 0
sr_mod 17956 0
cdrom 37408 1 sr_mod
sd_mod 30720 3
floppy 59588 0
uhci_hcd 27024 0
ata_piix 19588 2
pata_acpi 8320 0
ata_generic 8324 0
usbcore 146028 2 uhci_hcd
e100 37388 0
mii 6400 1 e100
libata 159344 3 ata_piix, pata_acpi, ata_generic
scsi_mod 151436 4 sg, sr_mod, sd_mod, libata
thermal 16796 0
processor 36872 1 thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
sofcursor 3072 1 bitblit
fuse 50580 3

Revision history for this message
haris (haris703eej) said :
#12

Ok. I resolved this problem using advice from http://www.linuxforums.org/forum/linux-networking/46594-configuring-ubuntu-networking-cant-ping-gateway.html

It seems that my NIC can not be used with ACPI. I had to edit grub menu file.
1. sudo gedit /boot/grub/menu.lst

This is the line that should be added at the end of the kernel line (with space between kernel line and the following line)
2. pci=noacpi

Once again, Thank you for your efforts.

Revision history for this message
Tony Mugan (tmugan) said :
#13

Glad to hear you got it working.