You are not logged in.
I find both my Wireless and my wired network with KNetworkManager, but I can't connect to the network. Not even with dhclient, as long as NetworkManager is running. But if I stop NetworkManager, I have no problem to get connection with dhclient. How do I fix this?
Offline
Could you please post the relevant parts of /etc/rc.conf?
Could you post the output from ifconfig and iwconfig?
Do you actually see your wireless network's essid in KNetworkManager?
Does your router/AP use MAC filtering or encryption?
Offline
I had a similar problem once with NetworkManager. My problem ended up being that the DBus connection policies were too restrictive. I edited my /etc/dbus-1/system.d/NetworkManager.conf file, added "allow own" lines to all of the user sections, and remove all of the "deny" lines. I should say that while it got it to work for me as a quick fix, I'm sure it is not recommended, and I can't vouch for the safety or stability of doing it this way. Also, you may have to do something similar for the dhcdbd.conf and nm-applet.conf in the same directory.
Offline
I needed to have dhcdbd in my daemons array, needed to remove "network" from the daemons, and needed to comment out any interfaces I wanted handled by networkmanager for things to work correctly for me.
Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein
Offline
I did what Snarkout said, removed 'network' drom deamons and comment out the interfaces's (exept lo). And then made a restart. Started dhcpcd and NetworkManager, but still the same problem =
Offline
What does happen? Please answer all of mutlu_inek's questions. "cannot connect to the network" could mean pretty much anything - we need to narrow it down some.
Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein
Offline
wrong post...
Last edited by tafsen (2007-01-28 17:57:54)
Offline
I have a problem with networkmanger too. I'm using an atheros card (a+b, no g) with the latest madwifi driver and 2.6.18.5 kernel.
First of all, if I manually configure everything all works. I setup the essid with iwconfig, and start dhcpcd and I'm connected. But if I start networkmanger and dhcdbd daemons, knetworkmanager will show my home wifi network. However, clicking on it, a progress bar is shown, but it stucks at 20%. Manually checking with 'iwconfig ath0' I can see that it won't associate with the AP. The essid is correct, but it just won't associate, it continously changes channels.
When I disable NM and set the essid with iwconfig it connects in a matter of seconds. The only thing I can see wrong is that in dmesg I get this: ADDRCONF(NETDEV_UP): ath0: link is not ready
Offline
Could you please post the relevant parts of /etc/rc.conf?
Could you post the output from ifconfig and iwconfig?
Also, could you do the following and report NetworkManager's messages?
sudo killall NetworkManager
sudo NetworkManager --no-daemon
Offline
What damjan says goes for me aswell.
I'll check on the other stuff soon
Offline
lo="lo 127.0.0.1"
#eth0=""
INTERFACES=(lo eth0)
DAEMONS=(syslog-ng netfs crond hal dhcdbd kdm)
Do you want me to put the output of ifconfig and iwconfig just after I've booted up?
Offline
tafsen, try this (I am assuming you wlan card is eth0, is that correct?):
lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo !eth0)
[...]
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
[...]
DAEMONS=(syslog-ng dbus hal !network crond netfs dhcdbd networkmanager kdm)
Don't you have a wifi module in /etc/rc.conf?
Btw. you should do the same (see first two lines) for your wired device. NetworkManager manages both.
And yes, please post the output of iwconfig and ifconfig after applying these changes (please follow the correct order for the daemons!!!), reebooting, logging in to KDE and then trying to connect to your wireless network.
Last edited by mutlu_inek (2007-01-30 01:49:26)
Offline
It's random witch card that's Eth0 and Eth1, how do I fix this? And why do I get eth2 aswell? Could that be my modem?
Offline
Check out /etc/mtab for persistent network device naming. As for eth2, do you have a firewire port? See if eth1394 is being loaded.
Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein
Offline
Now it's working after I rearanged my rc.conf file Thank you very much!
But is there a way that I can decide whitch of the two networkcards to start first?
Offline
lo="lo 127.0.0.1" eth0="dhcp" INTERFACES=(lo !eth0) [...] gateway="default gw 192.168.0.1" ROUTES=(!gateway) [...] DAEMONS=(syslog-ng dbus hal !network crond netfs dhcdbd networkmanager kdm)
(please follow the correct order for the daemons!!!)
Well, I just installed knetwork-manager and followed your instructions. It seems to be working as expected, except one thing:
NetworkManager does not set my /etc/resolv.conf correctly. This is what I get after a boot:
$ cat /etc/resolv.conf
# generated by NetworkManager, do not edit!
search chaos.lan
nameserver 127.0.0.1
nameserver 192.168.1.10
The "search" line should be something else, which is given by my local dhcp-server, and I have no idea, where that "chaos" comes from.
I already searched for configs of dhcdbd, but there seems to be none.
Any hint?
Offline
This is from my rc.conf:
lo="lo 127.0.0.1"
INTERFACES=(lo)
ROUTES=()
DAEMONS=(syslog-ng !hotplug !pcmcia @gensplash network netfs alsa dbus @hal @avahi-daemon @avahi-dnsconfd kdm @bluetooth @smartd @crond @gpm @sshd dhcdbd @networkmanager)
Do I explicitly need "!ath0 !eth0" in INTERFACES? What exactly the ! does?
BTW I've also tried to remove dhcpcd and reinstall dhclient.. but that didn't help - normally since for some reason the wifi card doesn't associate with the AP when using NetworkManager.
Offline
This is from my rc.conf:
lo="lo 127.0.0.1" INTERFACES=(lo) ROUTES=() DAEMONS=(syslog-ng !hotplug !pcmcia @gensplash network netfs alsa dbus @hal @avahi-daemon @avahi-dnsconfd kdm @bluetooth @smartd @crond @gpm @sshd dhcdbd @networkmanager)
Do I explicitly need "!ath0 !eth0" in INTERFACES? What exactly the ! does?
BTW I've also tried to remove dhcpcd and reinstall dhclient.. but that didn't help - normally since for some reason the wifi card doesn't associate with the AP when using NetworkManager.
No wireless cards at all? Where are the entries? And where are routes and gateway? Yes, you need to put them in there.
Also, there is a reason to reordering the daemon start order. You should adapt according to what I posted above.
NetworkManager needs dhcdbd. Also, network needs to be commented out with an exclamation mark. That is what it does for other settings, too.
@ tafsen: AFAIK no. NetworkManager handles the devices automatically. If you plug the wire into a router/whatever, it should switch to that automatically. If you do not like the choice, you need to select the card from the system tray applet.
@ Master One: NetworkManager on Arch does that. Do not ask me why. You can safely ignore it.
Last edited by mutlu_inek (2007-01-31 00:42:59)
Offline
@ Master One: NetworkManager on Arch does that. Do not ask me why. You can safely ignore it.
I would safely ignore it, if it wouldn't mess up my lan DNS search possibility. I am running dnsmasq in my local server, which is a dhcp server + dns cache, and I am used to use the hostname only when connecting to other local machines by rdesktop or ssh, instead of using the FQDN, so I need my lan domain, which is assigned by the dhcp server, to be put in /etc/resolv.conf (so it has to be "search localnet.lan" instead of "search chaos.lan".
So is there a solution for this problem?
Offline
Master One, you can configure it in /etc/dhclient.conf.
Offline
mutlu_inek, thanks a lot, that was exectly what I was looking for, and it works now
Offline
BTW Can somebody tell me, why to start /etc/rc.d/networkmanager, and not /etc/rc.d/networkmanager-dispatcher, and what the difference is (what the latter is for)?
Offline
If running, NetworkManagerDispatcher runs the scripts in /etc/NetworkManager/dispatcher.d every time the network status changes either way between offline and online. The scripts are run alphabetically. Internally, the scripts can use two variables ($1 and $2) the values of which change in regard to the network status. Therefore, with extremely simple script syntax you can execute any commands, e.g. run network time protocol daemons.
Offline
No wireless cards at all? Where are the entries? And where are routes and gateway? Yes, you need to put them in there.
My wifi card is a PCMCIA card ... so until I plug it in I don't have a wifi interface, I don't have an IP address nor do I have any routes. How would I have them?!?
Also, there is a reason to reordering the daemon start order. You should adapt according to what I posted above.
NetworkManager needs dhcdbd.
I'm a bit confused about what you are saying... in my rc.conf NetworkManager is started *after* dhcdbd.
Offline
My wifi card is a PCMCIA card ... so until I plug it in I don't have a wifi interface, I don't have an IP address nor do I have any routes. How would I have them?!?
I did not know, you did not tell that before. I am not absolutely sure about what to do in this case, but if it does not work I would make an entry for it in rc.conf anyway.
Just out of curiosity, why is pcmcia explicitly not started in rc.conf?
I'm a bit confused about what you are saying... in my rc.conf NetworkManager is started *after* dhcdbd.
Well, does it work? If not, why don't you do what I advised? Please post what you did and if you do not understand something about what I wrote, please describe exactly what you do not understand about it.
Holding back information and making other people guess will not help you all that much.
Last edited by mutlu_inek (2007-02-01 03:56:46)
Offline