0% found this document useful (0 votes)
33 views1 page

Load Balancing IP Configuration Guide

Uploaded by

siremik932
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

Load Balancing IP Configuration Guide

Uploaded by

siremik932
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Assign IP Addresses to Interfaces:

/ip address add address=[Link]/24 network=[Link] broadcast=[Link]


interface=ether1
/ip address add address=[Link]/24 network=[Link] broadcast=[Link]
interface=ether2

Set Default Gateways:

/ip route add gateway=[Link] distance=1 check-gateway=ping


/ip route add gateway=[Link] distance=2 check-gateway=ping

Configure NAT Rules:

/ip firewall nat add action=masquerade chain=srcnat out-interface=ether1


/ip firewall nat add action=masquerade chain=srcnat out-interface=ether2

Mark Inbound Connections:

/ip firewall mangle add action=mark-connection chain=input in-interface=ether1 new-


connection-mark=ISP1_Inbound
/ip firewall mangle add action=mark-connection chain=input in-interface=ether2 new-
connection-mark=ISP2_Inbound

Mark Outbound Connections:

/ip firewall mangle add action=mark-routing chain=output connection-


mark=ISP1_Inbound new-routing-mark=ISP1_Outbound
/ip firewall mangle add action=mark-routing chain=output connection-
mark=ISP2_Inbound new-routing-mark=ISP2_Outbound

Set Routing Marks for Outbound Traffic:

/ip route add dst-address=[Link]/0 gateway=[Link] routing-mark=ISP1_Outbound


/ip route add dst-address=[Link]/0 gateway=[Link] routing-mark=ISP2_Outbound

You might also like