mikrotik桥接TP-link教程

/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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值