connect two WiFi simultaneously
来源:互联网 发布:国际金价软件 编辑:程序博客网 时间:2024/06/07 09:45
https://superuser.com/questions/592296/using-iw-to-add-a-virtual-wireless-interface-getting-the-error-no-such-device
Q:
I am trying to add a virtual wireless interface to my debian squeeze system using iw.
The output of iw list is shown below:
root@alix:~# iw listWiphy phy0
I am using the command:
iw dev phy0 interface add wlan1 type station
to add the virtual interface wlan1 however this gives me the error:
command failed: No such device (-19)
If I use the command:
iw dev wlan0 interface add wlan1 type station
it passes fine however if I try use both wlan0 and wlan1 I get an error saying neither are unique and so that doesn't work for me.
Anyone any ideas what could be causing this? Thanks
=======================================================================================
A:
About the first error you get ("command failed: No such device (-19)"): You can either use
iw phy phy0 interface add <name> type <type>
or
iw dev wlan0 interface add <name> type <type>
As long as the physical names and the device names don't clash, you can also omit the phy/dev keywords and simply use
iw phy0 interface add <name> type <type>
About using both interfaces at the same time and the message about them not being unique:
This is probably because they both use the same MAC address. You can try to change the MAC address of the new interface before activating it.
ip link set dev <dev-name> address <new-mac-address>
A word about your interface modes:
My iw command (v3.4) says
Valid interface types are: managed, ibss, monitor, mesh, wds.
Not sure what "station" will do.
Also, if you're trying to operate the two interfaces in different modes, make sure your wlan card supports this:
iw list[...]Supported interface modes: * IBSS * managed * AP * AP/VLAN * WDS * monitor * mesh pointsoftware interface modes (can always be added): * AP/VLAN * monitorinterface combinations are not supported
Notice the last line.
=======================================================================================
A:
iw dev <devname> interface add wlan1 type station
phy0
here in iw dev phy0 interface add wlan1 type station
is a phyname, so you need change it towlan0
- connect two WiFi simultaneously
- Connect android to two wireless networks simultaneously
- [LA] Diagonal two matrices simultaneously
- wifi connect
- Wifi connect under command
- kindle connect wifi
- Connect phone with wifi
- Wifi adb connect 连接手机
- ANDROID CONNECT DEVICE BY WIFI
- aunching Instance via image and creating simultaneously bootable cinder volume (glusterfs) on Two No
- Connect two clients behind NAT
- [Network]Android N 新wifi connect&auto connect流程分析
- wifi command line connect to ap
- Python Mysql Connect By Two ways
- Docker: how to connect two bridges
- Android Device connect to PC via WIFI AD-HOC mode
- How to disable WIFI Auto-connect in Android ( 附带 转载)
- Connect to specified wifi router in windows, by C
- jQuery选择器
- tmp
- PAT1024~~~
- 17-7-17命运使然,来北京学java
- PAT1025~~~
- connect two WiFi simultaneously
- oracle-序列
- HTML+CSS编写静态网站-38 Vedio页面适配桌面布局
- Java 下载 Excel模板
- 访问其它用户下的对象
- Android Dialog仿ios9中UIAlertController控件
- oracle-视图
- angular验证
- oracle-同义词