General TC > General TC Talk
uDHCP suddenly chatty after loading extensions
PDP-8:
Is it me (likely), or is it something to do with BusyBox's udhcp that makes it chatty upon every reboot after extensions are loaded?
Installed TC 8.2.1 from the coreplus iso to a flash disk - no problems. If you don't mess around with any network or service settings, after TC loads extensions, there is no chat from udhcp.
BUT, when testing, I turned off dhcp in either way: System Tools > Services, OR System Tools > Network, "use dhcp broadcast - no / apply" and reboot. (backup enabled)
After changing dhcp on or off again, seems like no matter what I do, udhcp is suddenly chatty upon rebooting with either:
udhcp sending discover
or
cannot assign requested address
It isn't that I totally mind these notifications after the extensions are loaded during boot, I'm just wondering why it is being so chatty about it when a default installation where the op doesn't muck with the network settings is totally quiet. :)
PDP-8:
AHA! found it - I have TWO instances of udhcp running now!
Ok, boot from the CD and run a ps shows:
/sbin/udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0
Boot from my flash disk after I toggled dhcp on and off graphically it seems to now start TWO instances of dhcp. Here's the ps listing:
udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0
/sbin/udhcpc -b -i eth0 -x hostname:box -p /var/run/udhcpc.eth0
Maybe this explains some of the connectivity weirdness I was seeing with my own install (but only after playing with the services / network settings), but not from CD!
I'll just kill the redundant dhcp process for now.
Rich:
Hi PDP-8
If you don't want DHCP running when you boot up, add the nodhcp boot code to your boot loader.
PDP-8:
Thanks Rich - your suggestion is helping me troubleshoot - but here is where it gets stranger. That option works fine with a non-persistent CD.
But, with TC installed to my flashdisk, if I use the nodhcp option in my /mnt/sda1/boot/extlinux/extlinux.conf file, (I verified it got tickled on reboot by also taking out the quiet option) I get this:
I can STILL connect automatically to a network via dhcp even with nodhcp specified in the bootloader!
To connect via static, I have to go into the control panel's network utility and force it to use a static address and hit apply.
So it seems that merely by using the Network control panel, AND having a persistent store (backup enabled upon reboot), the system seems to be activating two instances of udhcp, or in the case of using nodhcp in the bootloader, not being recognized as nodhcp and having to force it to go to static.
Quick recap of actual incidents - this has happened on more than one install:
1) Installed TC to flashdisk or other medium.
2) I normally use dhcp on my local network. No problem. No need to even touch the network control panel.
3) Had to configure an external device via a static address. Used the network control panel to do so.
4) When finished configuring the device via a static address, I used the network control panel to put it back to dhcp to join the local network.
5) Now every reboot seems to have two instanced of udhcp running - one of which goes chatty and some long random network hangs happen every now and then from the two infighting with each other.
6) Using "nodhcp" in the bootloaders extlinux.conf file seems to confuse the system even further.
I'll try to narrow it down even further. I kind of lost track of all the variables during testing - but appreciate the help! Strange enough, this is kind of fun. On any other distro - it would be a chore. :)
Rich:
Hi PDP-8
--- Quote ---4) When finished configuring the device via a static address, I used the network control panel to put it back to dhcp to join the local network.
--- End quote ---
DHCP is for automatic address assignment, static is for manual address assignment. Pick one, not both.
Navigation
[0] Message Index
[#] Next page
Go to full version