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

ECMP

Uploaded by

Iskandar Mustofa
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)
34 views1 page

ECMP

Uploaded by

Iskandar Mustofa
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=197.26.1.

2/30 interface=ether1 comment=ISP1_INDIHOME


add address=41.12.8.2/30 interface=ether2 comment=ISP2_ASTINET
add address=62.6.14.2/30 interface=ether3 comment=ISP2_ASTINET
add address=192.168.10.1/24 interface=ether4 comment=LAN_LABKOM
add address=192.168.20.1/24 interface=ether5 comment=LAN_SI
add address=192.168.30.1/24 interface=ether6 comment=LAN_AKADEMIK

/IP firewall nat


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

LABKOM

/ip firewall mangle


add chain=prerouting src-address=192.168.10.0/24 action=mark-connection new-
connection-mark=labkom_conn
add chain=prerouting connection-mark=labkom_conn action=mark-packet new-packet-
mark=labkom_packets
add chain=prerouting packet-mark=labkom_packets action=mark-routing new-routing-
mark=labkom_route

SI

/ip firewall mangle


add chain=prerouting src-address=192.168.20.0/24 action=mark-connection new-
connection-mark=si_conn
add chain=prerouting connection-mark=si_conn action=mark-packet new-packet-
mark=si_packets
add chain=prerouting packet-mark=HR_packets action=mark-routing new-routing-
mark=si_route

AKADEMIK

/ip firewall mangle


add chain=prerouting src-address=192.168.30.0/24 action=mark-connection new-
connection-mark=akademik_conn
add chain=prerouting connection-mark=finance_conn action=mark-packet new-packet-
mark=akademik_packets
add chain=prerouting packet-mark=akademik_packets action=mark-routing new-routing-
mark=akademik_route

/ip route
add dst-address=0.0.0.0/0 routing-mark=labkom_route gateway=197.26.1.1
add dst-address=0.0.0.0/0 routing-mark=si_route gateway=41.12.8.1
add dst-address=0.0.0.0/0 routing-mark=akademik_route gateway=62.6.14.1

/ip route rule


add src-address=192.168.10.0/24 action=lookup table=labkom_route
add src-address=192.168.20.1/24 action=lookup table=si_route
add src-address=192.168.30.1/24 action=lookup table=akademik_route

You might also like