首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Hostapd未能启动-未能初始化接口

Hostapd未能启动-未能初始化接口
EN

Server Fault用户
提问于 2022-10-25 18:00:07
回答 1查看 726关注 0票数 0

我试图在linux机器上设置hostapd作为802.1x的网络身份验证器。

我一直在遵循指南,因为我使用Ubuntu而不是RHEL,并且在桥中使用veth接口而不是物理接口。

我按照他们所描述的按照内容的指示创建了C1文件--我的桥接口与示例中的br0类似,我将own_ip_addr更改为IP on接口br0,并更改nas_identifier、auth_server_addr、auth_server_shared_secret、acct_server_addr和acct_server_shared_secret以匹配RADIUS服务器上的配置。

其他所有内容都与示例文件相同,但由于某种原因,hostapd无法启动。/var/log/syslog说配置文件中有一个错误,但没有真正解释问题的所在:

代码语言:javascript
复制
Oct 25 13:47:13 blackfox systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 320.
Oct 25 13:47:13 blackfox hostapd[347060]: 1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Oct 25 13:47:13 blackfox hostapd[347060]: Failed to set up interface with /etc/hostapd/hostapd.conf
Oct 25 13:47:13 blackfox hostapd[347060]: Failed to initialize interface
Oct 25 13:47:13 blackfox systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 13:47:13 blackfox systemd[1]: hostapd.service: Failed with result 'exit-code'.
Oct 25 13:47:15 blackfox systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 321.
Oct 25 13:47:15 blackfox hostapd[347062]: 1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Oct 25 13:47:15 blackfox hostapd[347062]: Failed to set up interface with /etc/hostapd/hostapd.conf
Oct 25 13:47:15 blackfox hostapd[347062]: Failed to initialize interface
Oct 25 13:47:15 blackfox systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 13:47:15 blackfox systemd[1]: hostapd.service: Failed with result 'exit-code'.
Oct 25 13:47:17 blackfox systemd[1]: hostapd.service: Scheduled restart job, restart counter is at 322.
Oct 25 13:47:17 blackfox hostapd[347065]: 1 errors found in configuration file '/etc/hostapd/hostapd.conf'
Oct 25 13:47:17 blackfox hostapd[347065]: Failed to set up interface with /etc/hostapd/hostapd.conf
Oct 25 13:47:17 blackfox hostapd[347065]: Failed to initialize interface
Oct 25 13:47:17 blackfox systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE
Oct 25 13:47:17 blackfox systemd[1]: hostapd.service: Failed with result 'exit-code'.

有人知道这是怎么回事吗?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2022-10-25 18:47:02

正在运行

代码语言:javascript
复制
hostapd -dd /etc/hostapd/hostapd.conf

给出了更多关于发生了什么的细节。RHEL有一个名为RHEL的特殊管理小组,在Ubuntu中是不存在的。

返回配置文件并更改

代码语言:javascript
复制
ctrl_interface_group=wheel

车轮替换为0,根,27,sudo

他们都成功地开始了。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1114002

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档