當我試圖讓 VLAN 通過兩個 MikroTik SXT 之間的無線連接以及該連接末端的無線 AP 之間的無線連接時,我偶然發現了一個大問題。
設定是這樣的:
DHCP-Server ------- SXT ====== SXT ---- AP
LAN ---
WLAN ===
在此設定中,多個存取點應由單一 DHCP 伺服器提供服務,並透過 VLAN 主幹網路互連。如果沒有無線 MikroTek 橋,僅使用跳線,一切都很好,但當我使用無線橋時,任何 MicroTek 設備的 DHCP 回復都會被阻止。
首先,我認為這是 MicroTek 上缺少 VLAN 配置,但是當我在添加 tmen 時沒有任何更改,我在兩個 mikroteks 上使用了以下配置:
interface vlan add name=vlan1 interface=bridge vlan-id=1001 disable=no
ip address add address=192.168.160.12/24 interface=vlan0
橋接器和無線配置如下(僅用於文件):
system reset-configuration
interface bridge add name=bridge
interface bridge port add bridge=bridge interface=wlan1
interface bridge port add bridge=bridge interface=ether1
ip address add interface=bridge address=192.168.151.14/24
ip address edit number=0 value-name=address
192.168.88.1/24 -> 192.168.88.2/24
interface wireless set country="germany 5.8 fixed p-p" mode=station-pseudobridge ssid=XXX numbers=wlan1
interface wireless security-profiles add name=p1 authentication-types=wpa2-psk wpa2-pre-shared-key=xxx
interface wireless set security-profile=p1 numbers=wlan1
interface wireless enable numbers=wlan1
有人知道我可能錯過了什麼?謝謝!
答案1
好吧,我最終透過使用 wds-mode=dynamic 介面選項解決了這個問題:
system reset-configuration
interface bridge add name=bridge
interface bridge port add bridge=bridge interface=wlan1
interface bridge port add bridge=bridge interface=ether1
ip address add interface=bridge address=192.168.151.11/24
ip route add gateway=192.168.151.1
interface wireless set country="germany 5.8 fixed p-p" mode=bridge ssid=ALARM-BR-BHP numbers=wlan1
interface wireless set wlan1 wds-mode=dynamic wds-default-bridge=bridge
interface wireless security-profiles add name=alarm authentication-types=wpa2-psk wpa2-pre-shared-key=alarmkey
interface wireless set security-profile=alarm numbers=wlan1
interface wireless enable numbers=wlan1