Все машины получают трафик с учетом автобалансировки, без возможности выбора провайдера.
Необходимо докрутить настройки так, чтобы две-три машины из подсети 192.168.0.* были привязаны к фиксированному провайдеру, в то время как остальные машины в сети пользовались бы балансировкой.
Текущие настройки:
Код: Выделить всё
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=YTK routing-mark=\
to-YTK scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=INFOTECS \
routing-mark=to-INFOTECS scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=YTK,INFOTECS scope=\
30 target-scope=10
add comment=LAN disabled=no distance=1 dst-address=192.168.0.0/24 gateway=\
192.168.1.3 scope=30 target-scope=10
add comment=LAN disabled=no distance=1 dst-address=192.168.2.0/24 gateway=\
192.168.1.2 scope=30 target-scope=10
add comment=LAN disabled=no distance=1 dst-address=192.168.3.0/24 gateway=\
192.168.1.3 scope=30 target-scope=10
Код: Выделить всё
/ip firewall mangle
add action=mark-connection chain=forward disabled=no in-interface=YTK \
new-connection-mark=to-YTKc passthrough=yes
add action=mark-connection chain=forward disabled=no in-interface=INFOTECS \
new-connection-mark=to-INFOTECSc passthrough=yes
add action=mark-routing chain=prerouting connection-mark=to-YTKc disabled=no \
new-routing-mark=to-YTK passthrough=yes src-address=192.168.1.0/24
add action=mark-routing chain=prerouting connection-mark=to-INFOTECSc \
disabled=no new-routing-mark=to-INFOTECS passthrough=yes src-address=\
192.168.1.0/24
add action=mark-routing chain=prerouting comment=Balancing connection-mark=\
to-YTKc disabled=no new-routing-mark=to-YTK passthrough=yes src-address=\
192.168.0.0/24
add action=mark-routing chain=prerouting comment=Balancing connection-mark=\
to-INFOTECSc disabled=no new-routing-mark=to-INFOTECS passthrough=yes \
src-address=192.168.0.0/24
add action=mark-routing chain=prerouting comment=Balancing connection-mark=\
to-YTKc disabled=no new-routing-mark=to-YTK passthrough=yes src-address=\
192.168.2.0/24
add action=mark-routing chain=prerouting comment=Balancing connection-mark=\
to-INFOTECSc disabled=no new-routing-mark=to-INFOTECS passthrough=yes \
src-address=192.168.2.0/24
add action=mark-routing chain=prerouting comment=Balancing connection-mark=\
to-YTKc disabled=no new-routing-mark=to-YTK passthrough=yes src-address=\
192.168.3.0/24
add action=mark-routing chain=prerouting comment=Balancing connection-mark=\
to-INFOTECSc disabled=no new-routing-mark=to-INFOTECS passthrough=yes \
src-address=192.168.3.0/24
Вероятно, решение очень простое, но недостаток опыта не даёт его найти.))
Помогите, пожалуйста. )