linux系统中同时开启wifi与热点的办法 |
您所在的位置:网站首页 › wifi热点一起开 › linux系统中同时开启wifi与热点的办法 |
如果你在linux操作系统中有同时开启wifi与热点的需求,请按下面的办法操作。 目前开启热点后会自动关闭wifi 同时开启wifi与热点的办法 1. 准备工作 查看是否支持AP模式 iw list 找到这个,表示支持AP模式![]() 2.安装hostapd sudo apt-get install hostapd 3.安装create_ap git clone https://github.com/oblique/create_ap cd create_ap make install 2. 创建虚拟网卡并设置MAC地址sudo iw dev wlp0s20f3 interface add wlan1 type __ap # 注意:这里的wlp0s20f3是我的无线网卡名,通过ifconfig查看自己的无线网卡名 sudo ip link set dev wlan1 address 22:33:44:55:66:00 # MAC地址,随意填写,如果冲突则换一个 3. 使用create_ap创建热点sudo create_ap -c 11 wlan1 wlp0s20f3 SSID password # wlp0s20f3 是你的无线网卡的名字,通过ifconfig命令查看,SSID是你想要发射的热点的名字。 后台运行 sudo nohup create_ap -c 11 wlan1 wlp0s20f3 SSID password & |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |