5Ghz链路自动故障切换概述
本示例介绍了如何在CLI下结合60Ghz设备配置5Ghz链路自动故障切换(bonding)。 当60Ghz无线之间的连接丢失时,它会自动使用绑定接口。 示例是通过 WinBox 实用程序从空配置状态完成的
逐步连接设备
- 配置复位后,只允许mac-telnet。
通过连接设备的MAC地址连接设备,或者使用WinBox New终端通过发出命令查找W60G设备的设备MAC地址:
/ip neighbor print要连接到W60G设备,用命令:
/tool mac-telnet mac-address输入用户名和密码。默认用户名为admin,密码为空白或打印在设备贴纸上。
[admin@KD_GW] > /tool mac-telnet C4:AD:34:84:EE:5DLogin: adminPassword: Trying C4:AD:34:84:EE:5D...Connected to C4:AD:34:84:EE:5D
配置网桥
通过发出以下命令添加新桥并为其分配桥成员:
/interface bridge add name=bridge
要检查网桥是否已创建,用命令:
[admin@MikroTik] > /interface bridge print Flags: X - disabled, R - running 0 R name="bridge" mtu=auto actual-mtu=1500 l2mtu=65535 arp=enabled arp-timeout=auto mac-address=1A:7F:BB:41:B0:94 protocol-mode=rstp fast-forward=yes igmp-snooping=no auto-mac=yes ageing-time=5m priority=0x8000 max-message-age=20s forward-delay=15s transmit-hold-count=6 vlan-filtering=no dhcp-snooping=no
设置60Ghz无线连接
所有前面解释的步骤与桥和站设备相同。在配置无线接口时,需要使用不同的模式。
适用于ap桥设备
选择SSID,密码,频率,并选择桥接模式选项,将作为 ap桥接 的设置,请参见示例。
参数设置完成后,使能W60G接口。
[admin@MikroTik] > /interface w60g set wlan60-1 mode=ap-bridge frequency=auto ssid=MySSID password=choosepassword isolate-stations=no [admin@MikroTik] > /interface w60g printFlags: X - disabled, R - running 0 X name="wlan60-1" mtu=1500 l2mtu=1600 mac-address=C4:AD:34:84:EE:5E arp=enabled arp-timeout=auto region=no-region-set mode=ap-bridge ssid="MySSID" frequency=auto default-scan-list=58320,60480,62640,64800 password="choosepassword" tx-sector=auto put-stations-in-bridge=none isolate-stations=no [admin@MikroTik] > /interface w60g enable wlan60-1
站设备
选择与桥接设备相同的SSID,密码,频率,并选择站-桥接模式选项,将作为设置的站,请参见示例。
可以将多达8台设备连接到单个AP以作为故障转移。
参数设置完成后,使能W60G接口。
[admin@MikroTik] > /interface w60g set wlan60-1 mode=station-bridge frequency=auto ssid=MySSID password=choosepassword isolate-stations=no [admin@MikroTik] > /interface w60g printFlags: X - disabled, R - running 0 X name="wlan60-1" mtu=1500 l2mtu=1600 mac-address=C4:AD:34:84:EE:5E arp=enabled arp-timeout=auto region=no-region-set mode=station-bridge ssid="MySSID"frequency=auto default-scan-list=58320,60480,62640,64800password="choosepassword" tx-sector=auto put-stations-in-bridge=bridge isolate-stations=no [admin@MikroTik] > /interface w60g enable wlan60-1
设置5Ghz无线连接
适用于ap桥设备
选择SSID,密码,频率,并选择桥接模式选项,将作为一个桥接设置,请参阅示例。
参数设置完成后,开启5Ghz接口。
[admin@MikroTik] > /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik authentication-types=wpa2-psk mode=dynamic-keys wpa2-pre-shared-key=choosepassword [admin@MikroTik] > /interface wireless set wlan1 frequency=auto scan-list=default installation=outdoor mode=ap-bridge ssid=MikroTik1 channel-width=20/40/80mhz-Ceee wireless-protocol=any security-profile=default band=5ghz-a/n/ac [admin@MikroTik] > /interface wireless enable wlan1
站设备
选择与桥接设备相同的SSID,密码,频率,并选择站-桥接模式选项,将作为设置的站,请参见示例。
可以将多达8台设备连接到单个AP以作为故障转移。
参数设置完成后,使能W60G接口。
[admin@MikroTik] > /interface wireless security-profiles set [ find default=yes ] supplicant-identity=MikroTik authentication-types=wpa2-psk mode=dynamic-keys wpa2-pre-shared-key=choosepassword [admin@MikroTik] > /interface wireless set wlan1 frequency=auto scan-list=default installation=outdoor mode=station-bridge ssid=MikroTik1 channel-width=20/40/80mhz-Ceee wireless-protocol=any security-profile=default band=5ghz-a/n/ac [admin@MikroTik] > /interface wireless enable wlan1
为AP配置网桥
为AP配置网桥,以确保5ghz作为故障转移。需要桥接wlan1、ether1和所有60ghz 站接口。
在这个例子中,它只显示了2台设备,但是可以添加多达8台设备
对于ap-bridge设备,请设置如下配置:
[admin@MikroTik] >/interface bridge portadd bridge=bridge hw=no interface=ether1add bridge=bridge interface=wlan1add bridge=bridge interface=wlan60-station-1add bridge=bridge interface=wlan60-station-2
[admin@MikroTik] > interface/bridge/port/pr# INTERFACE BRIDGE HW PVID PRIORITY PATH-COST INTERNAL-PATH-COST HORIZON0 ether1 bridge no 1 0x80 10 10 none 1 wlan1 bridge 1 0x80 10 10 none 2 wlan60-station-1 bridge 1 0x80 10 10 none 3 wlan60-station-2 bridge 1 0x80 10 10 none
为站点设备配置桥接和bonding功能
在此设置中配置绑定并分配从接口,它被选择为内置的wlan1接口,但在其他类型的设置中也可以是以太网接口。
对于站桥式装置,请将 绑定 设置为:
[admin@MikroTik] > /interface bonding add mode=active-backup name=bond1 primary=wlan60-1 slaves=wlan60-1,wlan1
将接口成员(ether1和bond1)添加到新建的网桥中。
[admin@MikroTik] > /interface bridge port add interface=ether1 bridge=bridge [admin@MikroTik] > /interface bridge port add interface=bond1 bridge=bridge [admin@MikroTik] > /interface bridge port printFlags: X - disabled, I - inactive, D - dynamic, H - hw-offload # INTERFACE BRIDGE HW PVID PRIORITY PATH-COST INTERNAL-PATH-COST HORIZON 0 ether1 bridge yes 1 0x80 10 10 none 1 bond1 bridge yes 1 0x80 10 10 none
附加配置
在完成前面解释的所有步骤后,应该建立链接。建议在两台设备上都设置管理员密码。
故障排除
通过命令检查序列号、型号等设备设置,确保与正确的设备建立连接:
[admin@MikroTik] > /system routerboard print
如果网桥wlan60-1接口在网桥设置中是不活动的,并且配置正确,使能了设备上的接口,发出命令:
[admin@MikroTik] > /interface w60g enable wlan60-1