LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-08-2018, 01:49 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
blfs 8.1: wpa, run two dhcpcds?


Some time ago I compiled wpa-supplicant, but never got around to trying it. Upon reading the man pages and the BLFS 8.1 book, I find some ambiguity.

From the book:
Quote:
If your router/access point uses DHCP to allocate IP addresses, you can install DHCP-4.3.6 client and use it to automatically obtain network addresses. Create the /etc/sysconfig/ifconfig-wifi0 by running the following command as the root user:
Code:
cat > /etc/sysconfig/ifconfig.wifi0 << "EOF"
ONBOOT="yes"
IFACE="wlan0"
SERVICE="wpa"

# Additional arguments to wpa_supplicant
WPA_ARGS=""
WPA_SERVICE="dhclient"
DHCP_START=""
DHCP_STOP=""
# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
PRINTIP="no"
# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
PRINTALL="no"
EOF
The way I read that file, upon boot, wpa will start dhcpcd. dhcpcd is already started at boot time, for the ethernet interface. My understanding is that this would result in two copies of dhcpcd running, one for the wired and for for the wifi. Does that seem correct?

Thank you.

p.s. I've not actually tried anything yet. This BLFS 8.1 system has gotten comfy and I don't want to screw it up (again, lol?) so I am at the reading man pages and planning phase.

Last edited by jr_bob_dobbs; 08-08-2018 at 01:51 PM.
 
Old 08-20-2018, 05:30 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,353

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Quote:
one for the wired and for for the wifi. Does that seem correct?
Yes. On this lfs system two dhclients show up in top, even when the ethernet cable is disconnected. you can run
Code:
ifdown <interface>
to stop the one you don't want running. Another option, if you never/seldom use the wired connection is to rename the /etc/sysconfig/ifconfig file so it won't start, but it will be available for the rare times when you need it and use ifup to start it

Last edited by colorpurple21859; 08-20-2018 at 08:22 AM.
 
  


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
scripts (kommander and command line) to start wireless devices with wpa/wpa2/wpa-aes Fluxx Linux - Wireless Networking 4 06-28-2010 02:51 AM
BLFS in a Virtual Box guest... trying to get Xorg7.2 to run fdt93 Linux From Scratch 2 08-29-2009 08:25 PM
usb network adapter with ndiswrapper can't connect to wpa with wpa-supplicant AceofSpades19 Linux - Wireless Networking 8 03-30-2008 05:13 PM
How to run JSp or ServLet on BLFS ??? tritong Linux From Scratch 3 12-28-2005 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:17 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