Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-07-2008, 10:15 AM
Arthur Hagen
 
Posts: n/a
Default dhcpcd anomaly

I have a computer with two interfaces, a wired and a wireless interface.
Both appear to function correctly, BUT:

After about half an hour, the dhcpcd for the wireless interface will start
querying the DHCP servers over and over again, twice every 3 seconds, and
will continue to do so until dhcpcd is killed or restarted, after which it
works correctly for half an hour again. A short log excerpt:

May 7 00:16:41 tree dhcpd: DHCPREQUEST for 172.16.24.9 from
00:0b:cd:74:1a:bf via eth1
May 7 00:16:41 tree dhcpd: DHCPACK on 172.16.24.9 to 00:0b:cd:74:1a:bf via
eth1
May 7 00:16:41 tree dhcpd: DHCPREQUEST for 172.16.24.9 from
00:0b:cd:74:1a:bf via eth1
May 7 00:16:41 tree dhcpd: DHCPACK on 172.16.24.9 to 00:0b:cd:74:1a:bf via
eth1
May 7 00:16:44 tree dhcpd: DHCPREQUEST for 172.16.24.9 from
00:0b:cd:74:1a:bf via eth1
May 7 00:16:44 tree dhcpd: DHCPACK on 172.16.24.9 to 00:0b:cd:74:1a:bf via
eth1
May 7 00:16:44 tree dhcpd: DHCPREQUEST for 172.16.24.9 from
00:0b:cd:74:1a:bf via eth1
May 7 00:16:44 tree dhcpd: DHCPACK on 172.16.24.9 to 00:0b:cd:74:1a:bf via
eth1
May 7 00:16:47 tree dhcpd: DHCPREQUEST for 172.16.24.9 from
00:0b:cd:74:1a:bf via eth1
May 7 00:16:47 tree dhcpd: DHCPACK on 172.16.24.9 to 00:0b:cd:74:1a:bf via
eth1
May 7 00:16:47 tree dhcpd: DHCPREQUEST for 172.16.24.9 from
00:0b:cd:74:1a:bf via eth1
May 7 00:16:47 tree dhcpd: DHCPACK on 172.16.24.9 to 00:0b:cd:74:1a:bf via
eth1

# ps -fC dhcpcd | cat
UID PID PPID C STIME TTY TIME CMD
root 8206 1 0 May05 ? 00:00:00 /sbin/dhcpcd -h fairy -t 5
eth0
root 20189 1 0 00:22 ? 00:00:00 /sbin/dhcpcd -h fairy -t
15 -m 2000 wlan0

The only thing I can see is that dhcpcd sets the hostname where it shouldn't
(gentoo doesn't allow for specifying a hostname per interface, or rather, it
will tack on -h `hostname` regardless), but that shouldn't affect the
renewal. The DHCP servers are set to ignore the hostname for gentoo hosts,
due to this design flaw.

This problem only occurs for the wlan0 interface, and not for eth0.

Anyone seen this, and know what could cause this misbehaviour?

Regards,
--
*Art

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-10-2008, 02:02 PM
Aragorn
 
Posts: n/a
Default Re: dhcpcd anomaly

Arthur Hagen wrote:

> I have a computer with two interfaces, a wired and a wireless interface.
> Both appear to function correctly, BUT:
>
> After about half an hour, the dhcpcd for the wireless interface will start
> querying the DHCP servers over and over again, twice every 3 seconds, and
> will continue to do so until dhcpcd is killed or restarted, after which it
> works correctly for half an hour again. A short log excerpt:
>
> [...]
> # ps -fC dhcpcd | cat
> UID PID PPID C STIME TTY TIME CMD
> root 8206 1 0 May05 ? 00:00:00 /sbin/dhcpcd -h fairy -t 5
> eth0
> root 20189 1 0 00:22 ? 00:00:00 /sbin/dhcpcd -h fairy -t
> 15 -m 2000 wlan0
>
> The only thing I can see is that dhcpcd sets the hostname where it
> shouldn't (gentoo doesn't allow for specifying a hostname per interface,
> or rather, it will tack on -h `hostname` regardless), but that shouldn't
> affect the renewal. The DHCP servers are set to ignore the hostname for
> gentoo hosts, due to this design flaw.
>
> This problem only occurs for the wlan0 interface, and not for eth0.
>
> Anyone seen this, and know what could cause this misbehaviour?


Just a wild guess, but couldn't it be so that the wireless connections time
out after a given period?

I'm running an IRC network with a couple of friends, and many - I would even
say "most" - of those who have a wireless LAN set-up at home ping out from
IRC multiple times per day, while those with a cabled LAN or a direct
connection to the internet have a more stable connection with the IRC
server.

Maybe it's something typical of WiFi... Don't know, really... :-/

--
*Aragorn*
(registered GNU/Linux user #223157)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-10-2008, 02:02 PM
J.O. Aho
 
Posts: n/a
Default Re: dhcpcd anomaly

Aragorn wrote:
> Arthur Hagen wrote:


>> This problem only occurs for the wlan0 interface, and not for eth0.
>>
>> Anyone seen this, and know what could cause this misbehaviour?

>
> Just a wild guess, but couldn't it be so that the wireless connections time
> out after a given period?
>
> I'm running an IRC network with a couple of friends, and many - I would even
> say "most" - of those who have a wireless LAN set-up at home ping out from
> IRC multiple times per day, while those with a cabled LAN or a direct
> connection to the internet have a more stable connection with the IRC
> server.
>
> Maybe it's something typical of WiFi... Don't know, really... :-/


We did had trouble with wifi-scanners, that they lost connection quite
many times and at the worst time, but after a whiles experimentation it
seemed that the trouble was the default power save mode that caused all
the dropped connections.

I never had this kind of trouble with my laptop, which I never used with
wired network, so I more believe it has to do with settings than wifi.


--

//Aho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-11-2008, 08:41 PM
Arthur Hagen
 
Posts: n/a
Default Re: dhcpcd anomaly

Aragorn <aragorn@chatfactory.invalid> wrote:
> Arthur Hagen wrote:
>
>> I have a computer with two interfaces, a wired and a wireless
>> interface. Both appear to function correctly, BUT:
>>
>> After about half an hour, the dhcpcd for the wireless interface will
>> start querying the DHCP servers over and over again, twice every 3
>> seconds, and will continue to do so until dhcpcd is killed or
>> restarted, after which it works correctly for half an hour again.
>> [...]
>> This problem only occurs for the wlan0 interface, and not for eth0.
>>
>> Anyone seen this, and know what could cause this misbehaviour?

>
> Just a wild guess, but couldn't it be so that the wireless
> connections time out after a given period?
>
> I'm running an IRC network with a couple of friends, and many - I
> would even say "most" - of those who have a wireless LAN set-up at
> home ping out from IRC multiple times per day, while those with a
> cabled LAN or a direct connection to the internet have a more stable
> connection with the IRC server.
>
> Maybe it's something typical of WiFi... Don't know, really... :-/


Nah, the wireless connection stays up. It's just the DHCP renewal requests
that suddenly happen again and again.

Perhaps it has something to do with the DHCP request being broadcast, and
thus received on BOTH interfaces, and dhcpcd not liking that the first reply
is on eth0 (simply because wired ethernet is faster than wifi)? But if so,
then why does the original request work, and only the renews fail?

For now, my workaround is to set the lease period for this address to a
ridiculously high amount. Unfortunately, that's not a good workaround, if I
ever take the laptop roaming into somewhere which uses the same private IP
range.

Regards,
--
*Art

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-11-2008, 08:41 PM
Aragorn
 
Posts: n/a
Default Re: dhcpcd anomaly

Arthur Hagen wrote:

> Aragorn <aragorn@chatfactory.invalid> wrote:
>> Arthur Hagen wrote:
>>
>>> I have a computer with two interfaces, a wired and a wireless
>>> interface. Both appear to function correctly, BUT:
>>>
>>> After about half an hour, the dhcpcd for the wireless interface will
>>> start querying the DHCP servers over and over again, twice every 3
>>> seconds, and will continue to do so until dhcpcd is killed or
>>> restarted, after which it works correctly for half an hour again.
>>> [...] This problem only occurs for the wlan0 interface, and not for
>>> eth0.
>>>
>>> Anyone seen this, and know what could cause this misbehaviour?

>>
>> Just a wild guess, but couldn't it be so that the wireless
>> connections time out after a given period?
>>
>> I'm running an IRC network with a couple of friends, and many - I
>> would even say "most" - of those who have a wireless LAN set-up at
>> home ping out from IRC multiple times per day, while those with a
>> cabled LAN or a direct connection to the internet have a more stable
>> connection with the IRC server.
>>
>> Maybe it's something typical of WiFi... Don't know, really... :-/

>
> Nah, the wireless connection stays up. It's just the DHCP renewal
> requests that suddenly happen again and again.
>
> Perhaps it has something to do with the DHCP request being broadcast, and
> thus received on BOTH interfaces, and dhcpcd not liking that the first
> reply is on eth0 (simply because wired ethernet is faster than wifi)? But
> if so, then why does the original request work, and only the renews fail?
>
> [...]


Perhaps you should file a bug report then. Might be nice if they get it
fixed before 2008.0 becomes official. ;-)

--
*Aragorn*
(registered GNU/Linux user #223157)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:18 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145