PDA

View Full Version : Strange LAN Problems



EdT
01-24-2006, 08:28 PM
( I'm sorry but my english is not very good :D )

I have the Knoppix 4.02 installed on the hd. I gave the following commands:



ifconfig eth0 192.168.0.69 up
route add default gw 192.168.0.1


I also put some DNS in the file /etc/resolv.conf.
The problem is that only sometimes I can ping 192.168.0.1 (or use internet),
because the PC seems disconnected from the network.
This fact happen about 2 times on 3 :cry:.

In this times when I'm disconnected if I give a "route", it takes a very long time
(about 30 seconds) to print the second row of the table.


Can you help me?
Thanks :)

nad
01-27-2006, 07:21 PM
In order to make this more stable, you may wish to edit the /etc/network/interfaces file to reflect your usual conditions, then restart networking.

As networking is so tightly tied into the operating system, I find that using the init.d script to reset everything is usually the best way to go.

(Then again, it may be an ipv4/6 issue which search for several discussions here.)

Dan M

UnderScore
01-27-2006, 07:54 PM
have the Knoppix 4.02 installed on the hd. This might be the problem right there. I have seen many instances where HD install breaks networking.

Harry Kuhman
01-27-2006, 08:06 PM
What's strange about the network breaking when you "install" Knoppix to hard disk?

EdT
01-28-2006, 07:00 PM
Thank you for the help... :)

in the file /etc/network/interfaces i found this code:


# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo eth0
iface lo inet loopback

iface eth0 inet static
address 192.168.0.69
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1



I have to add also "route add default...."?
However i tryed to restart some scripts in /etc/init.d/ and I had this output:



root@Box:/etc/init.d# /etc/init.d/ifupdown stop
Cleaning up ifupdown...done.
root@Box:/etc/init.d# /etc/init.d/ifupdown restart
Setting up networking...done.
root@Box:/etc/init.d# /etc/init.d/networking stop
Deconfiguring network interfaces...done.
root@Box:/etc/init.d# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...SIOCADDRT: File exists
Failed to bring up eth0.
done.
root@Box:/etc/init.d#


(also when I am correctly connected)