/interface bridge
add name=bridge-LAN
/interface ethernet
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2
/interface pppoe-client
add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 \
default-route-distance=1 dial-on-demand=no disabled=no interface=WAN2 \
keepalive-timeout=60 max-mru=1480 max-mtu=1480 mrru=1600 name=pppoe-out1 \
password=123 profile=default service-name="" use-peer-dns=no user=\
tct-noc@cafe
/queue simple
add max-limit=2M/2M name=queue1 target=WAN1
add max-limit=3M/3M name=queue2 target=pppoe-out1
/tool user-manager customer
set admin access=\
own-routers,own-users,own-profiles,own-limits,config-payment-gw
/interface bridge port
add bridge=bridge-LAN interface=ether5
add bridge=bridge-LAN interface=ether4
add bridge=bridge-LAN interface=ether3
/ip address
add address=192.168.22.1/24 interface=bridge-LAN network=192.168.22.0
add address=110.74.212.178/30 interface=WAN1 network=110.74.212.176
/ip dns
set servers=8.8.8.8
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=ISP1 src-address=\
192.168.22.0/25
add action=mark-routing chain=prerouting new-routing-mark=ISP2 src-address=\
192.168.22.128/25
/ip firewall nat
add action=masquerade chain=srcnat out-interface=WAN1
add action=masquerade chain=srcnat out-interface=pppoe-out1
/ip route
add check-gateway=ping comment=Route-WAN1 distance=1 gateway=110.74.212.177 \
routing-mark=ISP1
add check-gateway=ping comment=Route-WAN2-Backup distance=2 gateway=\
pppoe-out1 routing-mark=ISP1
add check-gateway=ping comment=Route-WAN2 distance=1 gateway=pppoe-out1 \
routing-mark=ISP2
add check-gateway=ping comment=Route-WAN1-Backup distance=2 gateway=\
110.74.212.177 routing-mark=ISP2
EmoticonEmoticon