/interface bridge
add name=bridge
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no ssid=123 //桥接上级信号
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk eap-methods="" \
mode=dynamic-keys supplicant-identity=MikroTik wpa-pre-shared-key=\
13554001234 wpa2-pre-shared-key=13554001234 //上级路由器密码设置
add authentication-types=wpa-psk,wpa2-psk eap-methods="" \
management-protection=allowed mode=dynamic-keys name=profile1 \
supplicant-identity="" wpa-pre-shared-key=zhuzhu123 wpa2-pre-shared-key=\
zhuzhu123 //桥接后2.4G密码设置
/interface wireless
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
20/40/80mhz-Ceee disabled=no frequency=auto mode=ap-bridge \
security-profile=profile1 ssid=CMCC-TEST-5.8g
add disabled=no keepalive-frames=disabled mac-address=76:4D:28:6D:75:6E \
master-interface=wlan1 multicast-buffering=disabled name=wlan3 \ //从wlan1虚拟wlan出来
security-profile=profile1 ssid=CMCC-TEST-2.4g wds-cost-range=0 \
wds-default-cost=0 wps-mode=disabled
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp_pool1 ranges=192.168.10.2-192.168.10.254
/ip dhcp-server
add address-pool=dhcp_pool2 bootp-lease-time=lease-time bootp-support=dynamic \
disabled=no interface=bridge name=dhcp1
/interface bridge port
add bridge=bridge interface=wlan2 //wlan 5.8G信号ip地址bridge
add bridge=bridge interface=ether1
add bridge=bridge interface=ether2
add bridge=bridge interface=ether4
add bridge=bridge interface=ether5
add bridge=bridge interface=ether3
add bridge=bridge interface=wlan3 //wlan 2.4G信号ip地址bridge
/ip address
add address=192.168.10.1/24 interface=bridge network=192.168.10.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=wlan1 //上级路由分配ip地址
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1
/ip dns
set servers=192.168.0.1,192.168.1.1
/ip firewall nat
add action=masquerade chain=srcnat //伪装上网
/system clock
set time-zone-name=Asia/Shanghai
mikrotik桥接TP-link教程
最新推荐文章于 2023-05-16 15:37:10 发布