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

Load Balance PCC 3 ISP

This document configures IP addresses, network address translation, connection marking, and routing on an interface with two ISPs. It assigns IP addresses to the ether1 and ether2 interfaces, enables masquerading for traffic exiting those interfaces. It marks incoming connections on ether1 and ether2 as coming from different ISPs, and routes traffic based on the ISP marking to prefer one gateway over the other.
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)
174 views1 page

Load Balance PCC 3 ISP

This document configures IP addresses, network address translation, connection marking, and routing on an interface with two ISPs. It assigns IP addresses to the ether1 and ether2 interfaces, enables masquerading for traffic exiting those interfaces. It marks incoming connections on ether1 and ether2 as coming from different ISPs, and routes traffic based on the ISP marking to prefer one gateway over the other.
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
You are on page 1/ 1

/ip address

add address=192.168.40.2/24 interface=ether1 network=192.168.40.0


add address=192.168.30.62/24 interface=ether2 network=192.168.30.0

/ip firewall nat


add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether2

/ip firewall mangle


add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=ether1-ISP_1 new-connection-mark="ISP A" passthrough=yes \
per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=ether2-ISP_2 new-connection-mark="ISP B" passthrough=yes \
per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=prerouting connection-mark="ISP A" in-interface=\
wlan1-LOKAL new-routing-mark="ke ISP A" passthrough=no
add action=mark-routing chain=prerouting connection-mark="ISP B" in-interface=\
wlan1-LOKAL new-routing-mark="ke ISP B" passthrough=no

/ip route
add check-gateway=ping distance=2 gateway=192.168.40.1 routing-mark="ke ISP A"
add check-gateway=ping distance=3 gateway=192.168.30.1 routing-mark="ke ISP B"
add check-gateway=ping distance=1 gateway=192.168.40.1, 192.168.30.1
------------,------------,------------

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy