无线网卡有八种工作模式:Master (AP), Managed (Station), Ad hoc, Repeater, Mesh, Wi-Fi Direct, TDLS, Monitor mode:
「AP MODE」:路由器的无线网卡通常处于「AP MODE」,可以被连接,提供无线热点。
「STATION MODE」:手机的无线网卡通常出于「STATION MODE」,可以连接别的热点,发送数据。
其他模式先不介绍,它们不是本文的重点。
本文的重点是:处于「STATION MODE」的无线网卡无法加入桥接。
很多文章都在说出于「STATION MODE」的无线网卡无法桥接:
How to bridge a wireless interface with another wireless interface (both on the same computer)?
Bridging wlan0 to eth0
ArchWiki/Wireless interface on a bridge
libvirt/Networking/Bridged networking (aka “shared physical device”)
我也是在做“使用ETH0接口,使其使用WLAN0连接的外部网络”时遇到了无线网卡无法桥接的问题。
为什么无法桥接?
下面内容出自「[ath5k-devel] can’t add ath5k into bridge on kernel >=2.6.33」邮件列表:
It’s no longer possible to add an interface in the managed mode to a
bridge. You should run hostapd first to pure the interface to the
master mode.
Bridging doesn’t work on the station side anyway because the 802.11
header has three addresses (except when WDS is used) omitting the
address that would be needed for a station to send or receive a packet
on behalf of another system.
下面内容出自DebianWiki的说明:
Howeve[……]
READ MORE