LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2003, 10:41 AM   #1
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
DHCP on boot


I have just set up dhcpcd on my LFS system. I have configured it as it says and the files look like this:

/etc/sysconfig/network-devices/ifconfig.eth0:
ONBOOT=yes
DHCP_PROG=/sbin/dhcpcd
DHCP_STOP=-k


/etc/sysconfig/network-devices/ifup-eth0:
#!/bin/sh

source /etc/sysconfig/rc || exit
source $rc_functions || exit
source $network_devices/ifconfig.eth0 || exit

echo "Bringing up the eth0 interface..."
modprobe eth0
loadproc $DHCP_PROG $DHCP_START


/etc/sysconfig/network-devices/ifdown-eth0:
#!/bin/sh

source /etc/sysconfig/rc || exit
source $rc_functions || exit
source $network_devices/ifconfig.eth0 || exit

echo "Bringing down the eth0 interface..."
$DHCP_PROG $DHCP_STOP
evaluate_retval


But I have to run dhcpcd to get it to connect. How do I make it start on boot? I would have thought that the line ONBOOT=yes would have done this?
Guy
 
Old 10-22-2003, 08:22 AM   #2
murphrmi
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Try adding:

BOOTPROTO=dhcp

to ifcfg.eth0

HTH
 
  


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
Debian dhcp when boot gongcon Linux - Laptop and Netbook 2 04-04-2005 11:21 AM
dhcp slows boot javierj Linux - Newbie 3 03-02-2005 11:24 PM
DHCP skip on boot zchoyt Linux - Newbie 5 08-31-2004 09:17 PM
dhcp on boot... hross Linux - Networking 0 03-07-2004 10:50 AM
DHCP Boot Question mjb2123 Linux - Networking 1 06-07-2002 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:00 PM.

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