LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot connect to internet or ping router in Ubuntu 5.04 (https://www.linuxquestions.org/questions/linux-networking-3/cannot-connect-to-internet-or-ping-router-in-ubuntu-5-04-a-419487/)

chrisjs162216 02-25-2006 03:28 PM

Cannot connect to internet or ping router in Ubuntu 5.04
 
I have a Dell Dimention XPS R400 desktop and stuck Ubuntu 5.04 on it since Windows stopped working on it. I was going to use a wireless card, but it didn't reconize is so I figured I would put the ethernet card in it (Intel Pro/100) and update to Breezy. However, once I go to System>Administration>Networking and enable eth0, it acts like it isn't connected. I can't update Synaptic Package Manager, ping my router or anything. Pinging 192.168.1.1 (router) simply says:

root@ubuntu:/home/jack # ping 192.168.1.1
connect: Network is unreachable.

Since I'm still new to linux, I don't really know what to do. Any suggestions?

satinet 02-25-2006 03:35 PM

hmmm


can you do "sudo lspci" from the command prompt to see if it's being detected. hopefully that should throw up your card....

then you might do "sudo ifconfig -a" to list the status of your network cards....

try that and post the results.

if both come back positive you could try to configure it manually (but this will stop at reboot):

"sudo ifconig eth0 192.168.1.100 netmask 255.255.255.0"
"sudo ifconfig eth0 up"
"sudo route add default gw 192.168.1.1"

adjust the setting for your netmask / ip range etc....

chrisjs162216 02-25-2006 04:12 PM

ok, I get:

Quote:

jack@ubuntu:~$ sudo lspci
Password:
0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 02)
0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
0000:00:0d.0 VGA compatible controller: nVidia Corperation NV34 [GeForce FX 5200] (rev a1)
0000:00:0f.0 Ethernet Controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] (rev 02)
0000:00:10.0 Multimedia audio controller: Aureal Semiconductor Vortex 1 (rev 02)
0000:01:00.0 VGA compatible controller: Texas Instruments TV4020 [Permedia 2] (rev 01)
jack@ubuntu:~$ sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:A0:C9:98:B2:FB
inet addr:192.168.1.66 Bcast:192.168.1.255 Mask 255.255.255.0
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)

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:39013 errors:0 dropped:0 overruns:0 frame:0
TX packets:39013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3557842 (3.3 MiB) TX bytes:3557842 (3.3 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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 b)

jack@ubuntu:~$

"sudo ifconfig eth0 192.168.1.166 netmask 255.255.255.0" comes up with SIOCSIFFLAGS: Resource temporarily unavailible

same with sudo ifconfig eth0 up

and same with sudo route add default gw 192.168.1.1

satinet 02-25-2006 04:19 PM

looks like its detect.

you've got an ip address:

Quote:

eth0 Link encap:Ethernet HWaddr 00:A0:C9:98:B2:FB
inet addr:192.168.1.66 Bcast:192.168.1.255 Mask 255.255.255.0
try:
sudo ifconfig eth0 up

what's /etc/network/interfaces look like.


also maybe do "sudo ps -ef|grep -i dhcp" to check if that's running.....

chrisjs162216 02-25-2006 04:26 PM

"sudo ifconfig eth0 up" says "SIOCSIFFLAGS: Resource temporarily unavailable"

"sudo ps -ef|grep -i dhcp" says "jack 10291 0 16:23 pts/1 00:00:00 grep -i dhcp"

i'll try looking at /etc/network/interfaces

chrisjs162216 02-25-2006 04:32 PM

/etc/network/interfaces shows up as

# This file describes the network interfaces available on your
system
# and how to activate them. For more information, see
interfaces(5).

# The lookback network interface
auto lo
iface lo inet loopback

iface eth0 inet dhcp

auto eth0

satinet 02-25-2006 04:39 PM

hmm

Quote:

sudo ifconfig eth0 up" says "SIOCSIFFLAGS: Resource temporarily unavailable
this worries me.

not sure what to do,

has it ever worked??

maybe try dpkg-reconfigure linux-image

chrisjs162216 02-25-2006 04:47 PM

I installed Ubuntu about a week ago and it hasn't worked yet.

is linux-image supposed to be replaced with something? it says that package 'linux-image' is not installed and no info is available.

satinet 02-25-2006 05:23 PM

okay, my plan was just to reconfig the kernel and thus the modules.

i'm really surprised this NIC is not working. esp with ubuntu....

ok new plan (better plan)

try this:

sudo dpkg-reconfigure etherconf

chrisjs162216 02-26-2006 10:42 AM

same thing as before: etherconf in not installed and no info is available

satinet 02-26-2006 10:55 AM

sounds like you've got a bad install.

trying ubuntu 5.10 with a fresh intall.

that package should be there.....

chrisjs162216 02-26-2006 12:57 PM

ok, guess I need to download another 650 MB File:rolleyes:

satinet 02-26-2006 01:04 PM

lol,
cmon it doesnt take that long.

about 30mins for me...


All times are GMT -5. The time now is 07:17 PM.