当我尝试使 VLAN 通过两个 MikroTik SXT 之间的无线连接以及此连接末端的无线 AP 工作时,我偶然发现了一个大问题。
设置如下:
DHCP-Server ------- SXT ====== SXT ---- AP
LAN ---
WLAN ===
在此设置中,多个接入点应由单个 DHCP 服务器提供服务,并通过 VLAN 主干互连。如果没有无线 MikroTek 桥接器,仅使用跳线,一切都很好,但是当我使用无线桥接器时,DHCP 回复在任何 MicroTek 设备上都会被阻止。
起初我以为是 MicroTeks 上缺少 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