LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-21-2006, 06:54 AM   #1
crasslogic
Member
 
Registered: Nov 2006
Posts: 59

Rep: Reputation: 15
Stopping dhcpd at bootup


How do you do it? I'm running Slackware 11 on my laptop, and i'm not always plugged in to the net, thus it gets to the dhcpd and MAC address part and takes awhile before it goes on. Isn't there a way to just disable that from the bootup, so when I am plugged in I can just type dhcpd in my console?? Thanks fellas.
 
Old 12-21-2006, 07:53 AM   #2
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Look in /etc/rc.d/rc.inet2.
 
Old 12-21-2006, 08:31 AM   #3
malo_umoran
Member
 
Registered: Dec 2003
Distribution: Desktop: Slackware 13.1 &13.37 | Server: Debian 6.0
Posts: 270

Rep: Reputation: 32
Quote:
Originally Posted by pdw_hu
Look in /etc/rc.d/rc.inet2.

look for USE_DHCP[0] in /etc/rc.d/rc.inet1.conf.

M.
 
Old 12-21-2006, 08:40 AM   #4
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Wink dhcpcd

Hi

I think it's dhcpcd

dhcpd = the DHCP SERVER

dhcpcd = the DHCP CLIENT

The configuration for dhcpcd is in /etc/rc.d/rc.inet1.conf

Change

USE_DHCP[1]="yes"

to

USE_DHCP[1]=""

where 1 is your interface (e.g. eth1)

That turns off the DHCP client which means that you have to manually assign yourself an IP address or manually start dhcpcd from the console (that will also be the solution if you have to associate with a password encrypted AP and want to type that passwd manually)

Greetings.
 
Old 12-21-2006, 03:15 PM   #5
campher
Member
 
Registered: Jul 2006
Distribution: slackware
Posts: 57

Rep: Reputation: 16
another solution is to set the
DHCP_TIMEOUT[0]=
entry in /etc/rc.d/rc.inet1.conf to 0.
if youre using a laptop you can try alien bobs ifplugged package to automatically start/stop network.
campher
 
Old 12-21-2006, 03:56 PM   #6
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Perhaps setting the DHCP_TIMEOUT to 5 or 10 would be better? This way it won't be necessary to constantly re-edit the inet1.conf file or manually call for DHCP, and he still won't have to wait the full 60-second default timeout when he's not networked.

Last edited by Charred; 12-21-2006 at 03:57 PM.
 
Old 12-22-2006, 03:54 PM   #7
campher
Member
 
Registered: Jul 2006
Distribution: slackware
Posts: 57

Rep: Reputation: 16
Quote:
Originally Posted by Charred
Perhaps setting the DHCP_TIMEOUT to 5 or 10 would be better? This way it won't be necessary to constantly re-edit the inet1.conf file or manually call for DHCP, and he still won't have to wait the full 60-second default timeout when he's not networked.

normally you plug in before you press the power button. if not (this happens quite often to me) you can use the ifpluged package. the programm starts or stops the network automatically when you put in or remove the plug. so you dont need the delay at boot.
the only reason you have to edit the inet1.conf is when you are changing location.
im moving my laptop between a dhcp server at home and a static ip at work. each time im changing location i have to edit inet1.conf with a script but not when i plug in a cable hours after boot.
campher

Last edited by campher; 12-22-2006 at 03:55 PM.
 
Old 12-23-2006, 06:35 AM   #8
crasslogic
Member
 
Registered: Nov 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by folkenfanel
Change

USE_DHCP[1]="yes"

to

USE_DHCP[1]=""

where 1 is your interface (e.g. eth1)
Perfect. Thank you. Manually calling the dhcp client is what I wanted to do. Thanks for the help everyone.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome fails to load on login after bootup - unless bootup first in win xp doubletruncation Fedora 6 12-07-2005 08:32 AM
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
How to convert a bootup floppy to a bootup CD ? wlaw Linux - Newbie 2 07-15-2004 03:28 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration