Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]hostapd:"needs service(s) net.x0" and other problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
littlebar
n00b
n00b


Joined: 27 Aug 2013
Posts: 26

PostPosted: Thu Aug 07, 2014 2:32 am    Post subject: [SOLVED]hostapd:"needs service(s) net.x0" and othe Reply with quote

Hi, everyone!

I want to use hostapd to setup a AP. but there are some problems.

Code:
# /etc/init.d/hostapd start

 * ERROR: hostapd needs service(s) net.wlan0


but I use wlp3s0 in fact... :(


Code:

% cat /etc/hostapd/hostapd.conf

ssid=test
wpa_passphrase=234567890
ctrl_interface_group=wheel
interface=wlp3s0
auth_algs=3
channel=11
driver=nl80211
hw_mode=g
logger_stdout=-1
logger_stdout_level=2
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP


how to solve it :?:
thanks in advance.


================================
thanks szatox. It works.
_________________
Gentoo is Great!


Last edited by littlebar on Sat Aug 16, 2014 1:47 am; edited 1 time in total
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3203

PostPosted: Fri Aug 08, 2014 4:34 pm    Post subject: Reply with quote

Code:
 cat /etc/conf.d/hostapd
# Space separated List of interfaces which needs to be started before
# hostapd
INTERFACES="lan0"


if you want to bridge your wifi to other devices to create wired/virtual lan with wifi (or simply to allow starting dhcpd and wifi independently) write bridge's name there.
If you don't, empty the value.

In /etc/hostapd/hostapd.conf you can provide bridge name, so hostapd will bind to alreardy configured bridge. Again, this is optional. You can ignore that feature if you're happy without it.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 168

PostPosted: Thu Sep 05, 2019 1:56 pm    Post subject: Reply with quote

me too don't have wlan0, my wireless interface name is wlo1 so i've set interface=wlo1 in hostapd.conf. hostapd service on start says
Code:

Service `hostapd' needs non existent service `net.wlan0'


I've also tried replacing every wlo1 with wlan0 in hostapd.conf, conf.d/net and init.d/net.wlan0 in vein.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 168

PostPosted: Thu Sep 05, 2019 2:03 pm    Post subject: Reply with quote

ok its /etc/conf.d/hostapd that you are saying, not /etc/hostapd/hostpad.conf.

thanks it woks.
Back to top
View user's profile Send private message
wuseman
n00b
n00b


Joined: 21 Apr 2021
Posts: 5

PostPosted: Sun Jun 26, 2022 8:53 pm    Post subject: Reply with quote

szatox wrote:
Code:
 cat /etc/conf.d/hostapd
# Space separated List of interfaces which needs to be started before
# hostapd
INTERFACES="lan0"


if you want to bridge your wifi to other devices to create wired/virtual lan with wifi (or simply to allow starting dhcpd and wifi independently) write bridge's name there.
If you don't, empty the value.

In /etc/hostapd/hostapd.conf you can provide bridge name, so hostapd will bind to alreardy configured bridge. Again, this is optional. You can ignore that feature if you're happy without it.


yeah, this solved my problem with the same issue.

Thanks alot @szatox
_________________
Website: https://adb-shell.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum