How to make a Wireless Bridge, using WDS?
Description
Let us consider that we have a MainAP wireless Access Point which
serves several wireless clients (from network 192.168.0.0/24) and is
connected to ClientAP which also serves clients from the same network.
This example illustrates how to use WDS between MainAP and
ClientAP so that they also act as APs for wireless clients.

At first, let us setup the wireless interface for MainAP: /interface wireless set wlan1 ssid=ap2ap band=2.4GHz-B
frequency=2442 mode=ap-bridge wds-mode=static disabled=no
Now add a WDS interface and note that the wds-address is MAC address
from remote AP (in this case ClientAP): /interface wireless wds add master-interface=wlan1
wds-address=00:02:6F:01:CE:31 disabled=no
Put the wds1 and wlan1 interfaces into a bridge: /interface bridge add disabled=no
/interface bridge port set 1,2 bridge=bridge1
[admin@MikroTik] interface bridge port> print
# INTERFACE BRIDGE PRIORITY PATH-COST
0 ether1 none 128 10
1 wlan1 none 128 10
2 wds1 none 128 10
[admin@MikroTik] interface bridge port>
Finally, add an IP address to the bridge1 interface: /ip address add address=192.168.0.254/24 interface=bridge1
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 10.0.0.2/24 10.0.0.0 10.0.0.255 ether1
1 192.168.0.254/24 192.168.0.0 192.168.0.255 bridge1
[admin@MikroTik] ip address>
Now let us configure ClientAP. The configuration is similar to
MainAP configuration. At first, configure the wlan1 interface: /interface wireless set wlan1 ssid=ap2ap frequency=2442
band=2.4GHz-B mode=ap-bridge wds-mode=static disabled=no
Then add a WDS interface: /interface wireless wds add master-interface=wlan1
wds-address=00:0B:6B:31:01:6A disabled=no
Add the wds1 and wlan1 interfaces to a bridge: /interface bridge add disabled=no
/interface bridge port set wlan1,wds1 bridge=bridge1
If you want, you can assign an IP address to the bridge interface, but there
is no need for it (as this AP works transparently). Now you are able to ping the
clients from MainAP: /ping 192.168.0.10
192.168.0.10 64 byte ping: ttl=64 time=8 ms
192.168.0.10 64 byte ping: ttl=64 time=7 ms
192.168.0.10 64 byte ping: ttl=64 time=7 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 7/7.3/8 ms
|