0% found this document useful (0 votes)
32 views

Langkah-Langkah Setting Load Balancing PCC 2 ISP + Fail Over

The document outlines the steps to configure load balancing between two ISPs (IndiHome and FirstMedia) on a PCC router. It involves: 1. Configuring IP addresses for the router interfaces connected to each ISP and the LAN 2. Configuring DNS settings to use public DNS servers 3. Configuring firewall rules to mark and route traffic through specific ISPs 4. Configuring routing to use both ISPs as gateways with load balancing 5. Configuring NAT to masquerade traffic routed through each ISP

Uploaded by

Amri Fanfani
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Langkah-Langkah Setting Load Balancing PCC 2 ISP + Fail Over

The document outlines the steps to configure load balancing between two ISPs (IndiHome and FirstMedia) on a PCC router. It involves: 1. Configuring IP addresses for the router interfaces connected to each ISP and the LAN 2. Configuring DNS settings to use public DNS servers 3. Configuring firewall rules to mark and route traffic through specific ISPs 4. Configuring routing to use both ISPs as gateways with load balancing 5. Configuring NAT to masquerade traffic routed through each ISP

Uploaded by

Amri Fanfani
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Langkah-langkah Setting Load Balancing PCC

2 ISP + Fail Over:


1. IP Addressing
 /ip address
 add address=192.168.1.10/24 interface=ether1-IndiHome
network=192.168.1.0
 add address=192.168.0.10/24 interface=ether2-FirstMedia
network=192.168.0.0
 add address=192.168.88.1/24 interface=ether3-LAN
network=192.168.88.0
 add address=192.168.86.254/24 interface=ether4-Server
network=192.168.86.0

2. DNS Setting
 /ip dns
 set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4

3. Firewall Mangle
 /ip firewall mangle
 add chain=prerouting src-address=192.168.88.0/24 dst-
address=192.168.86.0/24 action=accept
 add chain=prerouting src-address=192.168.88.0/24 dst-
address=192.168.88.0/24 action=accept
 add chain=prerouting src-address=192.168.88.0/24 dst-
address=192.168.1.0/24 action=accept
 add chain=prerouting src-address=192.168.88.0/24 dst-
address=192.168.0.0/24 action=accept
 add chain=prerouting connection-mark=no-mark in-interface=ether1-
IndiHome action=mark-connection new-connection-mark=ISP-A_conn
 add chain=output connection-mark=ISP-A_conn action=mark-routing
new-routing-mark=via-ISP-A
 add chain=prerouting connection-mark=no-mark in-interface=ether2-
FirstMedia action=mark-connection new-connection-mark=ISP-B_conn
 add chain=output connection-mark=ISP-B_conn action=mark-routing
new-routing-mark=via-ISP-B
 add chain=prerouting src-address=192.168.88.0/24 per-connection-
classifier=both-addresses:2/0 action=mark-connection new-connection-
mark=ISP-A_conn passthrough=yes
 add chain=prerouting src-address=192.168.88.0/24 connection-
mark=ISP-A_conn action=mark-routing new-routing-mark=via-ISP-A
passthrough=yes
 add chain=prerouting src-address=192.168.88.0/24 per-connection-
classifier=both-addresses:2/1 action=mark-connection new-connection-
mark=ISP-B_conn passthrough=yes
 add chain=prerouting src-address=192.168.88.0/24 connection-
mark=ISP-B_conn action=mark-routing new-routing-mark=via-ISP-B
passthrough=yes

4. Route
 /ip route
 add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=via-ISP-A
check-gateway=ping
 add dst-address=0.0.0.0/0 gateway=192.168.0.1 routing-mark=via-ISP-B
check-gateway=ping
 add dst-address=0.0.0.0/0 gateway=192.168.1.1,192.168.0.1

5. NAT
 /ip firewall nat
 add action=masquerade chain=srcnat out-interface=ether1-IndiHome src-
address=192.168.88.0/24
 add action=masquerade chain=srcnat out-interface=ether2-FirstMedia
src-address=192.168.88.0/24
 add action=masquerade chain=srcnat out-interface=ether1-IndiHome src-
address=192.168.86.0/24

You might also like