VectorLinux

The nuts and bolts => Technical General => Topic started by: bruno on May 11, 2009, 07:16:57 am

Title: internet connection disappeared
Post by: bruno on May 11, 2009, 07:16:57 am
I finally succeeded installing VL Light 6.0....YES!
The first session (IceWM) everything was OK.
The second time, I wanted to try out JMW, but there was no internet.
When I restarted, in IceWM, internet was gone again, and the small blue window in the right lower corner, that indicated the connection, was gone also.
I don't know how to get it back.
Title: Re: internet connection disappeared
Post by: bruno on May 11, 2009, 09:01:26 am
And I tried Wicd, but I cannot get connection!!..??
Title: Re: internet connection disappeared
Post by: rbistolfi on May 11, 2009, 09:09:39 am
Hi Bruno, as you connected once, we will assume that your card has a working module (driver) loaded already. Please post the output of the following commands:

Code: [Select]
/sbin/ifconfig
/sbin/ifconfig -a
ping 74.125.67.100

Cheers!
Title: Re: internet connection disappeared
Post by: bruno on May 11, 2009, 11:43:31 am
/sbin/ifconfig:
lo: link encap: local loopback
inet addr: 127.0.0.1 mask: 255.0.0.0
up loopback running mtu: 16436 metric:1
next: everything 0

/sbin/ifconfig -a:
eth: link encap: ethernet hwaddr: 00:50;8b;03:c0c4
broadcast multicast mtu:1500 metric: 1
next: everything 0, except txqueuelen: 1000

lo: the same like above

ping 74.125.67.100:
connect: network is unreachable
Title: Re: internet connection disappeared
Post by: rbistolfi on May 11, 2009, 02:38:00 pm
I dunno about wicd, long time I dont use it... but your NIC has no ip assigned. Try as root from a terminal:

Code: [Select]
dhcpcd eth0
Post the error message if any.
Title: Re: internet connection disappeared
Post by: bruno on May 11, 2009, 02:56:36 pm
I just tried dhcpcd eth0 as root, but nothing happened: no output, and no connection...
Title: Re: internet connection disappeared
Post by: rbistolfi on May 11, 2009, 03:30:27 pm
What is yor network setup, do you connect through a modem or router? If it is a router, can you ping the router ip?
Did ifconfig show an ip assigned to eth0 after the dhcpcd command?
Title: Re: internet connection disappeared
Post by: bruno on May 11, 2009, 03:36:47 pm
Wow, this is getting complicated..
I am connected with a router (dsl).
How do I ping my router?
The result of /sbin/ifconfig was posted above.
Title: Re: internet connection disappeared
Post by: gamfa on May 11, 2009, 05:00:31 pm
A router is generally address 192.168.0.1

Code: [Select]
ping 192.168.0.1
Title: Re: internet connection disappeared
Post by: nightflier on May 11, 2009, 06:27:26 pm
Looks like there is no IP address, so pinging won't do much good. I'm not sure your NIC is up. Try:
Code: [Select]
ifconfig eth0 up
dhcpcd eth0
Title: Re: internet connection disappeared
Post by: GrannyGeek on May 11, 2009, 06:33:29 pm
A router is generally address 192.168.0.1

Not necessarily. Mine is 192.168.2.1 and some are 192.168.1.1. The router's documentation should give the default IP address.

bruno,
how to you get into your router to do things like set passwords?
--GrannyGeek
Title: Re: internet connection disappeared
Post by: Pita on May 11, 2009, 11:00:16 pm
I just tried dhcpcd eth0 as root, but nothing happened: no output, and no connection...

If you did the command as su or sudo
Code:
/sbin/dhcpcd eth0

should give an output.

Title: Re: internet connection disappeared
Post by: Pita on May 11, 2009, 11:20:35 pm
I had/have instances like this and normally

Code:

sudo /etc/rc.d/rc.inet1 start

gets me started again
Title: Re: internet connection disappeared
Post by: bruno on May 12, 2009, 03:48:19 am
I just tried sudo /etc/rc.d/rc.inet1 start, but in the output everything was zero, and no connection..
Title: Re: internet connection disappeared
Post by: bruno on May 12, 2009, 03:55:19 am
Yes!!!
Now connection is back, after sudo /sbin/dhcpcd eth0
There's no output, but connection is suddenly back!?!
Thanks guys!
I have had a few problems with VL, but the forum always has pulled me through.
Title: Re: internet connection disappeared
Post by: rbistolfi on May 12, 2009, 05:21:59 am
It is common in Linux and other Unix like system that a command gives output only on errors.
Title: Re: internet connection disappeared
Post by: bruno on May 12, 2009, 06:39:19 am
And now, after rebooting, again no connection,
nothing happening after sudo /sbin/dhcpcd eth0,
but connection did came back after sudo /etc/rc.d/rc.inet1 start.
Strange, every time it's different..
Well... as long as it comes back, I'm happy
Title: Re: internet connection disappeared
Post by: bruno on May 12, 2009, 05:12:37 pm
And now, connection gone again after rebooting, all the previous commands do nothing, also dhcpcd eth0, and ifconfig eth0 up do nothing, no output, no connection...
Title: Re: internet connection disappeared
Post by: nightflier on May 12, 2009, 05:39:25 pm
I would try some Live CD's and see if they do the same thing. If so, suspect your hardware or dhcpc server.
Title: Re: internet connection disappeared
Post by: bruno on May 12, 2009, 06:20:41 pm
Well,... very strange things are happening now..
One would think that there can be a hardware problem, but I have been running U-lite on this machine for a long time, and never there has been a problem with internet connection. Not once.
Now I wanted to test this again with a live cd (Damn Small), like you suggested, but the machine doesn't want to boot from the cd drive any more...
It always comes up with VL!
I checked the boot sequence setup, but cd drive is still the first...
And after booting, VL has sometimes internet connection, and sometimes not...?!?
Title: Re: internet connection disappeared
Post by: bruno on May 13, 2009, 03:16:56 am
The only thing I can do now is reboot and reboot, until I have connection, but I don't think it should work like this..
Title: Re: internet connection disappeared
Post by: nightflier on May 13, 2009, 04:40:44 am
You're right, it definitely should not be like that. The symptoms you describe are consistent with failing hardware. Make sure to back up any data you have on that machine.