0% found this document useful (0 votes)
35 views2 pages

PCC Load Balance

This document contains the configuration of a MikroTik router. It configures interfaces, IP addresses, DHCP, firewall rules, NAT, routing and services. Two internet connections are configured and traffic is marked to be routed over the preferred or secondary connection using routing marks.

Uploaded by

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

PCC Load Balance

This document contains the configuration of a MikroTik router. It configures interfaces, IP addresses, DHCP, firewall rules, NAT, routing and services. Two internet connections are configured and traffic is marked to be routed over the preferred or secondary connection using routing marks.

Uploaded by

Mon Aung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

# jun/03/2021 01:02:00 by RouterOS 6.46.

4
# software id = B1HE-ANWK
#
# model = 951Ui-2HnD
# serial number = 45880241A763
/interface ethernet
set [ find default-name=ether1 ] name=ISP1
set [ find default-name=ether2 ] name=ISP2
set [ find default-name=ether3 ] name=LAN
/ip pool
add name=dhcp_pool0 ranges=30.10.15.2-30.10.15.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=LAN lease-time=10h10m name=\
dhcp1
/ip address
add address=30.10.15.1/24 interface=LAN network=30.10.15.0
/ip dhcp-client
add add-default-route=no disabled=no interface=ISP1
add add-default-route=no disabled=no interface=ISP2
/ip dhcp-server network
add address=30.5.10.0/24 gateway=30.5.10.1
add address=30.10.15.0/24 gateway=30.10.15.1
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=ISP1 new-connection-mark=ISP1 passthrough=yes

add action=mark-connection chain=prerouting connection-mark=no-mark \


in-interface=ISP2 new-connection-mark=ISP2 passthrough=yes

add action=mark-connection chain=prerouting connection-mark=no-mark \


dst-address-type=!local in-interface=LAN new-connection-mark=ISP1 \
passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0

add action=mark-connection chain=prerouting connection-mark=no-mark \


dst-address-type=!local in-interface=LAN new-connection-mark=ISP2 \
passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1

add action=mark-routing chain=prerouting connection-mark=ISP1 in-interface=\


LAN new-routing-mark=to_ISP1 passthrough=yes

add action=mark-routing chain=prerouting connection-mark=ISP2 in-interface=\


LAN new-routing-mark=to_ISP2 passthrough=yes

add action=mark-routing chain=output connection-mark=ISP1 new-routing-mark=\


to_ISP1 passthrough=yes

add action=mark-routing chain=output connection-mark=ISP2 new-routing-mark=\


to_ISP2 passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ISP1
add action=masquerade chain=srcnat out-interface=ISP2
/ip route
add distance=1 gateway=10.10.15.1 routing-mark=to_ISP1
add distance=2 gateway=20.10.15.1 routing-mark=to_ISP2
add distance=1 gateway=10.10.15.1
add distance=2 gateway=20.10.15.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www port=8080
set ssh disabled=yes
set api disabled=yes
set winbox port=8888
set api-ssl disabled=yes
/snmp
set enabled=yes trap-version=2
/system clock
set time-zone-name=Asia/Bangkok
/system ntp client
set enabled=yes primary-ntp=192.168.100.61

You might also like