求助:无线网卡,wifi热点的连接与开启
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
求助:无线网卡,wifi热点的连接与开启
我最近遇到一个问题,想求教一下大家,
我有一台笔记本电脑,一张有线网卡,一张无线网卡,有线网卡不使用,只使用无线网卡。
我使用这张无线网卡连接学校提供的wifi热点,在这种情况下,
是否能再使用这张无线网卡建立一个新的wifi热点?以供其它设备使用。
(由于我们学校使用的是wpa2 企业级认证,每人使用自己的帐号)
最近看到同学在win下使用使用wifi共享精灵实现了上述情况。
我觉得有点难以理解,想向大家请教一下。或者提供一点这方面的资料。
我有一台笔记本电脑,一张有线网卡,一张无线网卡,有线网卡不使用,只使用无线网卡。
我使用这张无线网卡连接学校提供的wifi热点,在这种情况下,
是否能再使用这张无线网卡建立一个新的wifi热点?以供其它设备使用。
(由于我们学校使用的是wpa2 企业级认证,每人使用自己的帐号)
最近看到同学在win下使用使用wifi共享精灵实现了上述情况。
我觉得有点难以理解,想向大家请教一下。或者提供一点这方面的资料。
-
- 帖子: 893
- 注册时间: 2011-02-14 17:46
Re: 求助:无线网卡,wifi热点的连接与开启
一种是网卡自带混杂模式
一种是微软认证网卡的wireless hosted network
一种是微软认证网卡的wireless hosted network
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 求助:无线网卡,wifi热点的连接与开启
执行以下命令将结果全部复制贴上来
从实用的角度来讲,再买一块可在 linux 下使用 AP 模式的 USB 无线网卡比较方便。
代码: 全选
sudo lshw -C net
sudo iw list
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: 求助:无线网卡,wifi热点的连接与开启
https://wiki.wireshark.org/CaptureSetup ... cuous_moderosynirvana 写了:一种是网卡自带混杂模式
我在上面的资料中看到,无线网卡的混杂模式有点想经典以太网,能接受到它所加入的网络(特定的ssid)的所有分组。
好像对同时接入多个AP没有什么帮助?
这个不错,确实是我想要的,估计win下就是这么实现的。谢谢了。(不过这个中文资料较少)rosynirvana 写了:一种是微软认证网卡的wireless hosted network
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: 求助:无线网卡,wifi热点的连接与开启
vickycq 写了:执行以下命令将结果全部复制贴上来代码: 全选
sudo lshw -C net sudo iw list
代码: 全选
[aigoXdaemon ~]$ sudo lshw -C net
*-network
description: Ethernet interface
product: QCA8172 Fast Ethernet
vendor: Qualcomm Atheros
physical id: 0
bus info: pciX0000:02:00.0
logical name: enp2s0
version: 10
serial: 20:89:84:f4:f1:fe
size: 100Mbit/s
capacity: 100Mbit/s
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=alx duplex=full ip=59.73.145.149 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:31 memory:d8500000-d853ffff ioport:2000(size=128)
*-network
description: Wireless interface
product: AR9485 Wireless Network Adapter
vendor: Qualcomm Atheros
physical id: 0
bus info: pciX0000:03:00.0
logical name: wlp3s0
version: 01
serial: 48:d2:24:a5:34:5a
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
configuration: broadcast=yes driver=ath9k driverversion=4.4.9-300.fc23.x86_64 firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
resources: irq:17 memory:d8400000-d847ffff memory:d8480000-d848ffff
代码: 全选
[aigoXdaemon ~]$ sudo iw list
Wiphy phy0
max # scan SSIDs: 4
max scan IEs length: 2257 bytes
max # sched scan SSIDs: 0
max # match sets: 0
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Device supports AP-side u-APSD.
Device supports T-DLS.
Supported Ciphers:
* WEP40 (00-0f-ac:1)
* WEP104 (00-0f-ac:5)
* TKIP (00-0f-ac:2)
* CCMP (00-0f-ac:4)
* 00-0f-ac:10
* GCMP (00-0f-ac:8)
* 00-0f-ac:9
* CMAC (00-0f-ac:6)
* 00-0f-ac:13
* 00-0f-ac:11
* 00-0f-ac:12
Available Antennas: TX 0x1 RX 0x1
Configured Antennas: TX 0x1 RX 0x1
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
* mesh point
* P2P-client
* P2P-GO
* outside context of a BSS
Band 1:
Capabilities: 0x116e
HT20/HT40
SM Power Save disabled
RX HT20 SGI
RX HT40 SGI
RX STBC 1-stream
Max AMSDU length: 3839 bytes
DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: 8 usec (0x06)
HT TX/RX MCS rate indexes supported: 0-7
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
Frequencies:
* 2412 MHz [1] (16.0 dBm)
* 2417 MHz [2] (16.0 dBm)
* 2422 MHz [3] (16.0 dBm)
* 2427 MHz [4] (16.0 dBm)
* 2432 MHz [5] (16.0 dBm)
* 2437 MHz [6] (16.0 dBm)
* 2442 MHz [7] (16.0 dBm)
* 2447 MHz [8] (16.0 dBm)
* 2452 MHz [9] (16.0 dBm)
* 2457 MHz [10] (16.0 dBm)
* 2462 MHz [11] (16.0 dBm)
* 2467 MHz [12] (16.0 dBm) (no IR)
* 2472 MHz [13] (16.0 dBm) (no IR)
* 2484 MHz [14] (disabled)
Supported commands:
* new_interface
* set_interface
* new_key
* start_ap
* new_station
* new_mpath
* set_mesh_config
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* join_mesh
* remain_on_channel
* set_tx_bitrate_mask
* frame
* frame_wait_cancel
* set_wiphy_netns
* set_channel
* set_wds_peer
* tdls_mgmt
* tdls_oper
* probe_client
* set_noack_map
* register_beacons
* start_p2p_device
* set_mcast_rate
* channel_switch
* set_qos_map
* connect
* disconnect
Supported TX frame types:
* IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
Supported RX frame types:
* IBSS: 0x40 0xb0 0xc0 0xd0
* managed: 0x40 0xd0
* AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* mesh point: 0xb0 0xc0 0xd0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
software interface modes (can always be added):
* AP/VLAN
* monitor
valid interface combinations:
* #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
* #{ WDS } <= 2048,
total <= 2048, #channels <= 1, STA/AP BI must match
HT Capability overrides:
* MCS: ff ff ff ff ff ff ff ff ff ff
* maximum A-MSDU length
* supported channel width
* short GI for 40 MHz
* max A-MPDU length exponent
* min MPDU start spacing
Device supports TX status socket option.
Device supports HT-IBSS.
Device supports SAE with AUTHENTICATE command
Device supports low priority scan.
Device supports scan flush.
Device supports AP scan.
Device supports per-vif TX power setting
P2P GO supports CT window setting
Driver supports a userspace MPM
Device supports active monitor (which will ACK incoming frames)
Driver/device bandwidth changes during BSS lifetime (AP/GO mode)
Device supports configuring vdev MAC-addr on create.
确实如此。从实用的角度来讲,再买一块可在 linux 下使用 AP 模式的 USB 无线网卡比较方便。
我google的时候发现估计一个无线网卡可以连接多个AP,估计是使用了硬件虚拟化技术,虚拟出多个无线网卡来,可能工作在不同的频段。
可以深入挖掘一下。(对这方面还是不太懂。)
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 求助:无线网卡,wifi热点的连接与开启
烟波钓叟 写了: valid interface combinations:
* #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
* #{ WDS } <= 2048,
total <= 2048, #channels <= 1, STA/AP BI must match
#channels <= 1,或无法开启此模式
可再买一块能在 linux 下使用 AP 模式的 USB 无线网卡。
上次由 vickycq 在 2016-05-19 13:45,总共编辑 1 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 893
- 注册时间: 2011-02-14 17:46
Re: 求助:无线网卡,wifi热点的连接与开启
如果想从高层去理解,其实非常简单
因为一张网卡可以在系统中有多个interface,从这点来看,同时连接基站,并且自身也作为一个AP工作没什么奇怪的
但事实上802.11标准的无线网不是full-duplex的,同一时间只能选择接收数据,或是把数据传送给基站这两者之一,所以很可能带来很大的网络延迟
因为一张网卡可以在系统中有多个interface,从这点来看,同时连接基站,并且自身也作为一个AP工作没什么奇怪的
但事实上802.11标准的无线网不是full-duplex的,同一时间只能选择接收数据,或是把数据传送给基站这两者之一,所以很可能带来很大的网络延迟
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: 求助:无线网卡,wifi热点的连接与开启
哦,这样啊,谢谢解答,下次我到win下尝试一下,然后再研究研究。vickycq 写了:#channels <= 1,或无法开启此模式烟波钓叟 写了: valid interface combinations:
* #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
* #{ WDS } <= 2048,
total <= 2048, #channels <= 1, STA/AP BI must match
可再买一块能在 linux 下使用 AP 模式的 USB 无线网卡。
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: 求助:无线网卡,wifi热点的连接与开启
是啊,这么理解的话确实如此。rosynirvana 写了:如果想从高层去理解,其实非常简单
因为一张网卡可以在系统中有多个interface,从这点来看,同时连接基站,并且自身也作为一个AP工作没什么奇怪的
但事实上802.11标准的无线网不是full-duplex的,同一时间只能选择接收数据,或是把数据传送给基站这两者之一,所以很可能带来很大的网络延迟
那么这就像是个复用的问题,分时、分频、或者其它更复杂的复用方式。
就好像每个程序觉得自己独占cpu、独占内存似的。
(恐怕有点大大增加内核驱动的复杂性)。
- vickycq
- 帖子: 4507
- 注册时间: 2011-03-20 13:12
- 系统: Debian
- 来自: 山东省寿光县
- 联系:
Re: 求助:无线网卡,wifi热点的连接与开启
非常抱歉 是我的理解有误rosynirvana 写了:这和channels <= 1没关系吧
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
欢迎所有 Debian GNU/Linux 用户
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: 求助:无线网卡,wifi热点的连接与开启
代码: 全选
# iw list
.........
valid interface combinations:
* #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1,
total <= 2048, #channels <= 1, STA/AP BI must match
* #{ WDS } <= 2048,
total <= 2048, #channels <= 1, STA/AP BI must match
...........
不管你是创建两个AP,或者是连接一个AP,创建一个AP,都只能工作在一个channel下。
那根据上面的意思,AP是不是最多可以创建8个。
如果AP和managed共存,是不是最多创建8个AP和2040个managed。
(是这样吗?细思极恐。。。)
-
- 帖子: 112
- 注册时间: 2015-04-04 23:20
- 系统: linux & windows
Re: 求助:无线网卡,wifi热点的连接与开启
哦,还有,google的时候看到这么一个东西,估计能满足我的要求。