I have 2 internet links with static ips. both are of 2mb.
I need to merge both two links to make it of 4mb.
Please provide solution.
/ip address
add address=10.1.1.1/24 interface=Lan network=10.1.1.0
add address=192.168.1.3/24 interface=WAN1 network=192.168.1.0
add address=192.168.2.2/24 interface=WAN2 network=192.168.2.0
/ip route
add check-gateway=arp comment="WAN 1 – Distance 1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=WAN1 routing-mark=wan-1
add check-gateway=arp comment="WAN 2 – Distance 1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=WAN2 routing-mark=wan-2
add check-gateway=arp comment="WAN 1 – Distance 2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=WAN2 routing-mark=wan-1
add check-gateway=arp comment="WAN 2 – Distance 2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=WAN1 routing-mark=wan-2
add check-gateway=arp comment="Default Route – Distance 1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=WAN1
add check-gateway=arp comment="Default Route – Distance 2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=WAN2
add check-gateway=arp comment="Static Route – WAN1" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=WAN1 routing-mark=static-wan1
add check-gateway=arp comment="Static Route – WAN2" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=WAN2 routing-mark=static-wan2
/ip firewall mangle
add action=mark-connection chain=input comment="Mark new inbound connection wan1" connection-state=new disabled=no in-interface=WAN1 new-connection-mark=wan-1 passthrough=yes
add action=mark-connection chain=input comment="Mark new inbound connection wan2" connection-state=new disabled=no in-interface=WAN2 new-connection-mark=wan-2 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark established inbound connection wan1" connection-state=established disabled=no in-interface=WAN1 new-connection-mark=wan-1 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark established inbound connection wan2" connection-state=established disabled=no in-interface=WAN2 new-connection-mark=wan-2 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark related inbound connection wan1" connection-state=related disabled=no in-interface=WAN1 new-connection-mark=wan-1 passthrough=yes
add action=mark-connection chain=prerouting comment="Mark related inbound connection wan2" connection-state=related disabled=no in-interface=WAN2 new-connection-mark=wan-2 passthrough=yes
add action=mark-routing chain=output comment="Mark new inbound route wan1" connection-mark=wan-1 disabled=no new-routing-mark=static-wan1 passthrough=no
add action=mark-routing chain=output comment="Mark new inbound route wan2" connection-mark=wan-2 disabled=no new-routing-mark=static-wan2 passthrough=no
add action=mark-connection chain=prerouting comment="Mark traffic that isn’t local with PCC mark rand (2 possibilities) – option 1" connection-state=new disabled=no dst-address-type=!local in-interface=Lan new-connection-mark=wan1_pcc_conn passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting comment="Mark traffic that isn’t local with PCC mark rand (2 possibilities) – option 2" connection-state=new disabled=no dst-address-type=!local in-interface=Lan new-connection-mark=wan2_pcc_conn passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-connection chain=prerouting comment="Mark established traffic that isn’t local with PCC mark rand (2 possibilities) – option 1" connection-state=established disabled=no dst-address-type=!local in-interface=Lan new-connection-mark=wan1_pcc_conn passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting comment="Mark established traffic that isn’t local with PCC mark rand (2 possibilities) – option 2" connection-state=established disabled=no dst-address-type=!local in-interface=Lan new-connection-mark=wan2_pcc_conn passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-connection chain=prerouting comment="Mark related traffic that isn’t local with PCC mark rand (2 possibilities) – option 1" connection-state=related disabled=no dst-address-type=!local in-interface=Lan new-connection-mark=wan1_pcc_conn passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting comment="Mark related traffic that isn’t local with PCC mark rand (2 possibilities) – option 2" connection-state=related disabled=no dst-address-type=!local in-interface=Lan new-connection-mark=wan2_pcc_conn passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting comment="Mark routing for PCC mark – option 1" connection-mark=wan1_pcc_conn disabled=no new-routing-mark=wan-1 passthrough=yes
add action=mark-routing chain=prerouting comment="Mark routing for PCC mark – option 2" connection-mark=wan2_pcc_conn disabled=no new-routing-mark=wan-2 passthrough=yes
/ip firewall nat
add chain=srcnat action=masquerade out-interface=WAN1
add chain=srcnat action=masquerade out-interface=WAN2
1. Only with MLPPP on both sides (yours + your ISP side) it should work! (2 + 2 = 4)I have 2 internet links with static ips. both are of 2mb.
I need to merge both two links to make it of 4mb.
Please provide solution.
Policy Based RoutingHi all,
I have same problem with 2 Fiber Optic 4/24 Mbps links with /29 subnet on ISP's hardware,I can use the rest IP's. Cannot loadbalance with PCC. Any help will be appreciated.
Thank you in advance