kanotix.com

General Support - No internet connection

LRC - 19.08.2006, 04:28 Uhr
Titel: No internet connection
After my last dist-upgrade and loading on rss-gtk (which I have removed because most of the screensavers freeze the box up solid), I seem to have run into a major problem with my network. My regular IP is 192.168.7.151.
Well on my next reboot network setting set my eth0 to 169.254.124.0. I can reset it to the proper config and all I can do is look at my router, I am behind and see my M$ box through smb. They are both connected to a hub. which is then connected to the router. The M$ box can also ping the Kanotix box at the set settings, but although the M$ box can get to the net (which shows that the router is not the problem) the K box still has no connection. By the way, when I reboot, the network settings return to the 169.254.124.0 address.
I am using a 2.6.17.8-slh-up-1 KDE 3.5.4 box. I am a noobie so that I am still trying to figure out and remember(ya right) All the things I had to go through when things like this happened in the past.
piper - 19.08.2006, 04:39 Uhr
Titel: RE: No internet connection
as root in konsole

netcardconfig
LRC - 19.08.2006, 04:58 Uhr
Titel: RE: No internet connection
xlib: connection to ":0.0" refused by server
xlib: Invalid MIT-MAGIC-COOKIE-1 key
xdialog: Error initializing the GUI...
Do you run under X11 with GTK+ v1.2.0+ installed?
Does this mean that I got a Confusion with gui's, and if so, how do I get out of it? I go know that I have install many games from different guis. Would that have done it?
piper - 19.08.2006, 05:19 Uhr
Titel: RE: No internet connection
Open konsole (terminal)

type

sux then password

netcardconfig

if that don't work, try as normal user

xhost local:root

or

xhost +localhost
LRC - 19.08.2006, 05:28 Uhr
Titel: RE: No internet connection
Since I am typing it all in from another box I missed inputting the #. I was in root when I tried the netcardconfig. When I tried $ xhost local:host got "non-network local connections being added to access control list". When I tried $ xhost +localhost got "localhost being added to access controll list".
LRC - 19.08.2006, 05:39 Uhr
Titel: RE: No internet connection
xdialog is working. What does it mean by nameserver? The IP given makes no sense whatsoever.
piper - 19.08.2006, 05:41 Uhr
Titel: RE: No internet connection
Did you try "netcardconfig" again with either su or sux ?
parintachin - 19.08.2006, 06:04 Uhr
Titel: RE: No internet connection
the ip 169.254.124.0 is set by avahi you most likly have installed avahi-daemon or the like.
either you remove the avahi-daemon or other avahi stuff , or
# How can I tell Avahi to ignore certain network interfaces?

* Right now Avahi will make use of all suitable network interfaces, there is no configuration option to restrict the interfaces used. However, there is a trick to make sure that Avahi ignores specific interfaces: remove the MULTICAST bit from the interface flags. You can do this with ifconfig like this:

ifconfig eth1 -multicast

* Keep in mind that this might disable multicasting for other applications, too. Since only very few programs make use of multicasting this is usally not much a problem, though.
* To automatically remove the MULTICAST bit using udev on specific interfaces, add a file to /etc/udev/rules.d containing this (replace "RULE TO MATCH DEVICES" with correct rule):

ACTION=="add", SUBSYSTEM=="net", KERNEL=="RULE TO MATCH DEVICES", PROGRAM="/sbin/ifconfig %k -multicast"

like i found from http://www.avahi.org/wiki/Avah4users#FAQ
LRC - 19.08.2006, 07:02 Uhr
Titel: RE: No internet connection
got rid of avahi-daemon did ifconfig eth0 -multicast (had no eth1) still didn't work, but did find a reference to a non-config resolvconfig. Got rid of that ran if eth0 and ifdown eth0, and evrything is peachy. Thanx very much for pointing me in the right direction parintachin. The diff between opensource and all others is that we solve the problems now, the others blame each other a week latter
slh - 19.08.2006, 08:31 Uhr
Titel: RE: No internet connection
Never use xhost, it's utterly insecure (no security at all) and never needed.
parintachin - 19.08.2006, 15:54 Uhr
Titel: RE: No internet connection
Glad i could help Smilie
LRC - 19.08.2006, 17:38 Uhr
Titel: RE: No internet connection
Zitat:

Never use xhost, it's utterly insecure (no security at all) and never needed.

In this case it seemed the only work around that I could find. Also it was very temperary, because when the first option I went with (deleting avahi) didn't solve the problem, I had to run xhost again to xdialog work again to try an fix the problem. Now if there is a different way of doing it, I am sure that all would like to know.
piper - 19.08.2006, 18:00 Uhr
Titel: RE: No internet connection
Well I gave that to you basically to test for internet, it works Winken now to find a solution, because it is NOT safe. I will see what I can come up with, in the meantime, others might have some opinions.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007