Você não pode interligar interfaces do cliente sem fio. O motivo é explicado no OpenWrt Wiki :
The 802.11 standard only uses three MAC addresses for frames transmitted between the Access Point and the Station. Frames transmitted from the Station to the AP don't include the ethernet source MAC of the requesting host and response frames are missing the destination ethernet MAC to address the target host behind the client bridge.
- Bridged Host sends a packet to the Target host
- Frame is relayed via the W-LAN Client and the MAC address of the transmitting wireless adapter is used as source MAC, the sending ethernet MAC is discarded
- W-LAN AP receives the frame and redirects it to the Target
- Target receives the frame and generates a response
- Target responds to the received frame using the (wrong) source MAC as destination
- W-LAN AP relays the frame to the W-LAN Client with the given destination MAC W-LAN Client receives the frame and assumes it is the final destination since it's wireless MAC is used in the frame, the packet is not forwarded Bridged Host never sees a response frame since the W-LAN Client became the destination, no connection is possible
No entanto, no modo de ponto de acesso, a ponte é possível. Basta usar o seguinte em /etc/config/wireless
:
config 'wifi-iface'
option 'network' 'lan'
...
Em /etc/config/network
, a interface lan
precisa ser uma interface de ponte:
config 'interface' 'lan'
option 'type' 'bridge'
...
Claro, você pode usar qualquer nome, não apenas lan
.
Se você quiser apenas uma ponte com várias interfaces, crie interfaces de VLAN que não estejam "conectadas" a nada.