/ip address
add address=10.0.0.198/24 network=10.0.0.0 broadcast=10.0.0.2 interface=ether1
add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.1 interface=ether5
/ip route
add dst-address=0.0.0.0/0 gateway=10.0.0.2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.0.0.2 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=2 check-gateway=ping
/ip firewall mangle
add action=mark-connection chain=input comment="Telecom" disabled=no in-interface=ether1 new-connection-mark=Telecom passthrough=yes
add action=mark-connection chain=input comment="Telecom2" disabled=no in-interface=ether5 new-connection-mark=Telecom2 passthrough=yes
add action=mark-routing chain=output connection-mark=Telecom new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=Telecom2 new-routing-mark=to_WAN2
/ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade
add chain=srcnat out-interface=ether5 action=masquerade
add action=mark-connection chain=input comment="Telecom" disabled=no in-interface=ether1 new-connection-mark=Telecom passthrough=yes
add action=mark-connection chain=input comment="Linkem" disabled=no in-interface=ether5 new-connection-mark=Linkem passthrough=yes
add action=mark-routing chain=output connection-mark=Telecom new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=Linkem new-routing-mark=to_WAN2
rosario ha scritto:puoi scrivermi quella configurazione corretta. Grazie mille
Visitano il forum: Nessuno e 7 ospiti