You are not logged in.
I'm using netcfg to manage my wireless connections at home and have a problem that always appears when I want to connect at home when I had last connected at university (I don't use netcfg there as I need to establish a VPN connection).
Problem seems to be that dhcpcd somehow tries to reuse the lease obtained at university when I connect at home (that is still valid, because it's valid 24h), which of course doesn't work (I get the error
dhcpcd: eth1: reject NAK
and it took me quite some time to figure out that it's due to the attempt of reusing the lease: I had to figure out where netcfg calls dhcpcd and remove the -q to get a relevant error message).
I worked around the issue by connecting statically, but I suppose there must be some way to get this to work relyably using dhcp. There were no hits on the search, but I can hardly imagine I'm the only one having this problem.
Here's my profile:
CONNECTION="wireless"
INTERFACE=eth1
SCAN="yes"
SECURITY="wpa"
ESSID="myessid"
KEY="mykey"
IP="dhcp"
TIMEOUT=20
Appreciate any suggestions.
Offline
Are you able to connect manually? I think this is a problem with dhcpcd rather than netcfg.
[git] | [AURpkgs] | [arch-games]
Offline
Yeah, connecting manually works. Probably it is indeed a dhcpcd problem. Where is this information about obtained leases stored that dhcpcd uses to try to rebind? Is this intended behavior? Shouldn't it rather try to acquire a new lease when it realizes it can't use the previously obtained one?
Offline
For me, dhcpcd will try any non-expired lease, but generally they get rejected so it just asks for a new one.
Have a look at "man dhcpcd.conf" and see if there's an option to change this behaviour.
Offline
Hmm, have you changed anything in your dhcpcd.conf? I haven't and obviously I don't have this behavior. Couldn't find anything useful in the manpage either and I don't suppose the problem is due to a parameter netcfg passes to dhcpcd (it passes -qL as far as I understand).
Offline
Nope, I havnt changed anything, thats the default behaviour afaik. Try editing netcfg /usr/lib/network/connections/ethernet, remove the -q, and see what the full output/failure is.
edit: I do have one thing changed, some versions of dhcpcd did not accept an IP when the server didn't give a 'ServerID' as required by the RFC. However this broke two crappy dhcp servers, so I commented out the "#require dhcp_server_identifier" option. This behaviour may have changed since that version though...
James
Last edited by iphitus (2009-06-24 00:54:39)
Offline
I'm having the same problem as PapaNoa intermittently. Commenting out the dhcp_server_identifier line in /etc/dhcpcd.conf does allow me to get an IP address.
Offline
Thanks for your helpful replies. I'll have a try commenting that out.
Btw. I had removed the -q, otherwise the error message was not helpful at all.
Offline
PapaNoa: Any luck?
Offline
Hmm, haven't had my laptop with me at university for quite a while. Can I somehow trick dhcpcd and feign a lease to test if it works?
Offline
In /var/lib/dhcpcd there should be some lease files, e.g:
dhcpcd-eth0.lease
dhcpcd-wlan0.lease
Delete these (sudo rm /var/lib/dhcpcd/*.lease) then restart the net-profiles daemon:
sudo /etc/rc.d/net-profiles restart
Last edited by neonnds (2009-07-21 22:50:19)
[(-.-)]
Offline
For me this problem looks like a bug. I have to manually remove /var/lib/dhcpcd/dhcpcd-eth1.lease before running netcfg?
This problem occurs when you change from one dhcp server to another. Very annoying! Is there already any bug report for that?
Offline
For me it helped to comment the "require dhcp_server_identifier", thanks alot.
Offline
Delete these (sudo rm /var/lib/dhcpcd/*.lease) then restart the net-profiles daemon:
Many thanks neonnds, you make my day! ^^
Offline
neonnds wrote:Delete these (sudo rm /var/lib/dhcpcd/*.lease) then restart the net-profiles daemon:
Many thanks neonnds, you make my day! ^^
I had the same problem. And indeed removing the .lease files solved the problem. The problem started after I used wlassistant.
After using wlassistant all of a sudden i could not connect with netcfg either.
thanx neonnds
Offline
i've tried netcfg-tray and it works fine for me, i've tried a cable connection and my wifi open connection, but i think that it's missing an important feature: a wifi signal displayer that should displays the quality of wifi, so for example 40%, 100%
Offline
i've tried netcfg-tray and it works fine for me, i've tried a cable connection and my wifi open connection, but i think that it's missing an important feature: a wifi signal displayer that should displays the quality of wifi, so for example 40%, 100%
Try netcfgGUI, it does what you have requested plus a little more while still remaining light weight.
The software required Windows XP or better, so I installed archlinux.
Offline
toketin, Tyriel - this thread was for the discussion of the 2.2.0beta2 release only. There are separate discussion thread for the current 2.2.1 release in the core repo, and the upcoming 2.5.0 release, which has an rc in the testing repo. Please use the approriate thread for your comments.
Closed.
Offline