dhcpclient hangs on boot

anticapitalista
Posts: 5,959
Site Admin
Joined: 11 Sep 2007
#1
In Lysistrata some users have found that there is a long delay when dhcpclient connects to the network, either using antiX as livecd or installed.

Here are some solutions.

1. For livecd and installed, use cheat code mean. This disables network connection on boot up and once at the desktop,
Either a)
open a terminal, su to root and type
dhclient
or
dhclient [name of your connection point ie eth0]

Or b)
Menu>Admin/tools>Mepis Admin>Network

and set up from there.

2. When you get to the dhcpclient part on boot, after it has clearly finished, press Ctrl c. This should continue the boot and network should work.

3. For an installed antiX, add cheat code mean to the /boot/grub/menu.lst so it looks something like this

title MEPIS at sda4, kernel 2.6.22-1-mepis-smp
root (hd0,3)
kernel /boot/vmlinuz-2.6.22-1-mepis-smp root=/dev/sda4 mean nomce quiet splash vga=791
boot

and also add this line to the end of /etc/rc.local

dhclient &

This connects you to the net after login.
Last edited by anticapitalista on 28 Dec 2007, 22:56, edited 1 time in total.
Posts: 41
UnicornRider
Joined: 24 Oct 2007
#2
anticapitalista wrote:add 'dhclient &' to the end of /etc/rc.local
Since I'm not using DHCP, I'll have to guess - but would a cheatcode like 'mean dhcX' (similar to 'mean eth0'), resulting in the beforementioned edition getting done"automatically", be of avail?
anticapitalista
Posts: 5,959
Site Admin
Joined: 11 Sep 2007
#3
We could give it a try UnicornRider.
UnicornRider
Joined: 24 Oct 2007
#4
anticapitalista wrote:give it a try
1st attempt (to be tested ...):
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://penguin.ch/plan_b/scripts/x_files/planb_rc-5.sh"
linktext was:"http://penguin.ch/plan_b/scripts/x_files/planb_rc-5.sh"
====================================
__{{emoticon}}__
boot code: [mean] dhcX (the latter to make sure we're not clashing with
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.mepis.org/docs/en/index.php/Cheatcodes"
linktext was:"these codes"
====================================
).
anticapitalista
Posts: 5,959
Site Admin
Joined: 11 Sep 2007
#5
Tested using mean dhcX cheatcode and it does stop dhcp. But at desktop, I had to manually add the dhclient&
to /etc/rc.local

Once I had done this, rebooted and chose mean dhcX

at desktop opening iceweasel takes me to a page __{{emoticon}}__

However, even without the dhcX part of the cheatcode and rc.local with dhclient& added, works too. So the dhcX part isn't doing much extra, except it gives a nice message saying that dhclient is being delayed.

Now is it a good idea if by adding the mean dhcX cheatcode, it also adds dhclient& to /etc/rc.local ?