SlideShare a Scribd company logo
1 of 2
Download to read offline
/ ip address

add address=192.168.37.1/24 network=192.168.37.0 broadcast=192.168.37.255 interface=LAN

add address=19.74.30.2/24 network=19.74.30.0 broadcast=19.74.30.255 interface=ADSL2

add address=12.25.20.2/24 network=12.25.20.0 broadcast=12.25.20.255 interface=ADSL1




/ ip firewall mangle

add chain=input in-interface=ADSL1 action=mark-connection new-connection-mark=ADSL1_conn

add chain=input in-interface=ADSL2 action=mark-connection new-connection-mark=ADSL2_conn

add chain=output connection-mark=ADSL1_conn action=mark-routing new-routing-
mark=to_ADSL1

add chain=output connection-mark=ADSL2_conn action=mark-routing new-routing-
mark=to_ADSL2

add chain=prerouting dst-address=19.74.30.0/24 action=accept in-interface=LAN

add chain=prerouting dst-address=12.25.20.0/24 action=accept in-interface=LAN

add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-
addresses:2/0 

action=mark-connection new-connection-mark=ADSL1_conn passthrough=yes

add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both-
addresses:2/1 

action=mark-connection new-connection-mark=ADSL2_conn passthrough=yes

add chain=prerouting connection-mark=ADSL1_conn in-interface=LAN action=mark-routing new-
routing-mark=to_ADSL1

add chain=prerouting connection-mark=ADSL2_conn in-interface=LAN action=mark-routing new-
routing-mark=to_ADSL2



/ ip route

add dst-address=0.0.0.0/0 gateway=19.74.30.1 routing-mark=to_ADSL1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=12.25.20.1 routing-mark=to_ADSL2 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=19.74.30.1 distance=1 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=12.25.20.1 distance=2 check-gateway=ping



/ ip firewall nat

add chain=srcnat out-interface=ADSL1 action=masquerade

add chain=srcnat out-interface=ADSL2 action=masquerade

More Related Content

Viewers also liked

FreeNAS Platform Binnaris 2014
FreeNAS Platform Binnaris 2014FreeNAS Platform Binnaris 2014
FreeNAS Platform Binnaris 2014Patricio Ghirardi
 
Scrip configura hora nt cliente
Scrip configura hora nt clienteScrip configura hora nt cliente
Scrip configura hora nt clienteMarco Arias
 
Scrip queue tree
Scrip queue treeScrip queue tree
Scrip queue treeMarco Arias
 
Ip firewall mangle
Ip firewall mangleIp firewall mangle
Ip firewall mangleMarco Arias
 
Ethical hacking a plataformas Elastix
Ethical hacking a plataformas ElastixEthical hacking a plataformas Elastix
Ethical hacking a plataformas ElastixPaloSanto Solutions
 
Configuración de mikro tik para thundercache
Configuración de mikro tik para thundercacheConfiguración de mikro tik para thundercache
Configuración de mikro tik para thundercacheMarco Arias
 

Viewers also liked (6)

FreeNAS Platform Binnaris 2014
FreeNAS Platform Binnaris 2014FreeNAS Platform Binnaris 2014
FreeNAS Platform Binnaris 2014
 
Scrip configura hora nt cliente
Scrip configura hora nt clienteScrip configura hora nt cliente
Scrip configura hora nt cliente
 
Scrip queue tree
Scrip queue treeScrip queue tree
Scrip queue tree
 
Ip firewall mangle
Ip firewall mangleIp firewall mangle
Ip firewall mangle
 
Ethical hacking a plataformas Elastix
Ethical hacking a plataformas ElastixEthical hacking a plataformas Elastix
Ethical hacking a plataformas Elastix
 
Configuración de mikro tik para thundercache
Configuración de mikro tik para thundercacheConfiguración de mikro tik para thundercache
Configuración de mikro tik para thundercache
 

Similar to Scrip balanceo mikrotik

Balanceo con 2 wan
Balanceo con 2 wanBalanceo con 2 wan
Balanceo con 2 wanrodolfin007
 
Balanceo con 2 wan
Balanceo con 2 wanBalanceo con 2 wan
Balanceo con 2 wanrodolfin007
 
Load balancing + squid
Load balancing + squidLoad balancing + squid
Load balancing + squidYan To
 
3 queue firewall
3 queue firewall3 queue firewall
3 queue firewallmaster 82
 
Basic command to configure mikrotik
Basic command to configure mikrotikBasic command to configure mikrotik
Basic command to configure mikrotikTola LENG
 

Similar to Scrip balanceo mikrotik (6)

Balanceo con 2 wan
Balanceo con 2 wanBalanceo con 2 wan
Balanceo con 2 wan
 
Balanceo con 2 wan
Balanceo con 2 wanBalanceo con 2 wan
Balanceo con 2 wan
 
Load balancing + squid
Load balancing + squidLoad balancing + squid
Load balancing + squid
 
Speedtest
SpeedtestSpeedtest
Speedtest
 
3 queue firewall
3 queue firewall3 queue firewall
3 queue firewall
 
Basic command to configure mikrotik
Basic command to configure mikrotikBasic command to configure mikrotik
Basic command to configure mikrotik
 

More from Marco Arias

Manual de instalacion de servidor zentyal 3
Manual de instalacion de servidor zentyal 3Manual de instalacion de servidor zentyal 3
Manual de instalacion de servidor zentyal 3Marco Arias
 
Ebox 1-4-abr2010-by-sa-100429155544-phpapp02
Ebox 1-4-abr2010-by-sa-100429155544-phpapp02Ebox 1-4-abr2010-by-sa-100429155544-phpapp02
Ebox 1-4-abr2010-by-sa-100429155544-phpapp02Marco Arias
 
Scrip firewall filter
Scrip firewall filterScrip firewall filter
Scrip firewall filterMarco Arias
 
Manual Mikrotik
Manual Mikrotik Manual Mikrotik
Manual Mikrotik Marco Arias
 
Reglas firewall-regalo1
Reglas firewall-regalo1Reglas firewall-regalo1
Reglas firewall-regalo1Marco Arias
 
Implementacion red con mikrotik
Implementacion red con mikrotikImplementacion red con mikrotik
Implementacion red con mikrotikMarco Arias
 
Ezine #4 comunidad dragon jar
Ezine #4 comunidad dragon jarEzine #4 comunidad dragon jar
Ezine #4 comunidad dragon jarMarco Arias
 
Configurando mikrotik
Configurando mikrotikConfigurando mikrotik
Configurando mikrotikMarco Arias
 
Manual zentyal completo-2-0
Manual zentyal completo-2-0Manual zentyal completo-2-0
Manual zentyal completo-2-0Marco Arias
 
Zentyal administradores ejemplo_servicio_proxy_http
Zentyal administradores ejemplo_servicio_proxy_httpZentyal administradores ejemplo_servicio_proxy_http
Zentyal administradores ejemplo_servicio_proxy_httpMarco Arias
 
Curso de mantenimiento de computadoras 2013
Curso de mantenimiento de computadoras 2013Curso de mantenimiento de computadoras 2013
Curso de mantenimiento de computadoras 2013Marco Arias
 

More from Marco Arias (11)

Manual de instalacion de servidor zentyal 3
Manual de instalacion de servidor zentyal 3Manual de instalacion de servidor zentyal 3
Manual de instalacion de servidor zentyal 3
 
Ebox 1-4-abr2010-by-sa-100429155544-phpapp02
Ebox 1-4-abr2010-by-sa-100429155544-phpapp02Ebox 1-4-abr2010-by-sa-100429155544-phpapp02
Ebox 1-4-abr2010-by-sa-100429155544-phpapp02
 
Scrip firewall filter
Scrip firewall filterScrip firewall filter
Scrip firewall filter
 
Manual Mikrotik
Manual Mikrotik Manual Mikrotik
Manual Mikrotik
 
Reglas firewall-regalo1
Reglas firewall-regalo1Reglas firewall-regalo1
Reglas firewall-regalo1
 
Implementacion red con mikrotik
Implementacion red con mikrotikImplementacion red con mikrotik
Implementacion red con mikrotik
 
Ezine #4 comunidad dragon jar
Ezine #4 comunidad dragon jarEzine #4 comunidad dragon jar
Ezine #4 comunidad dragon jar
 
Configurando mikrotik
Configurando mikrotikConfigurando mikrotik
Configurando mikrotik
 
Manual zentyal completo-2-0
Manual zentyal completo-2-0Manual zentyal completo-2-0
Manual zentyal completo-2-0
 
Zentyal administradores ejemplo_servicio_proxy_http
Zentyal administradores ejemplo_servicio_proxy_httpZentyal administradores ejemplo_servicio_proxy_http
Zentyal administradores ejemplo_servicio_proxy_http
 
Curso de mantenimiento de computadoras 2013
Curso de mantenimiento de computadoras 2013Curso de mantenimiento de computadoras 2013
Curso de mantenimiento de computadoras 2013
 

Recently uploaded

Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 

Recently uploaded (20)

Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 

Scrip balanceo mikrotik

  • 1. / ip address add address=192.168.37.1/24 network=192.168.37.0 broadcast=192.168.37.255 interface=LAN add address=19.74.30.2/24 network=19.74.30.0 broadcast=19.74.30.255 interface=ADSL2 add address=12.25.20.2/24 network=12.25.20.0 broadcast=12.25.20.255 interface=ADSL1 / ip firewall mangle add chain=input in-interface=ADSL1 action=mark-connection new-connection-mark=ADSL1_conn add chain=input in-interface=ADSL2 action=mark-connection new-connection-mark=ADSL2_conn add chain=output connection-mark=ADSL1_conn action=mark-routing new-routing- mark=to_ADSL1 add chain=output connection-mark=ADSL2_conn action=mark-routing new-routing- mark=to_ADSL2 add chain=prerouting dst-address=19.74.30.0/24 action=accept in-interface=LAN add chain=prerouting dst-address=12.25.20.0/24 action=accept in-interface=LAN add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both- addresses:2/0 action=mark-connection new-connection-mark=ADSL1_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-classifier=both- addresses:2/1 action=mark-connection new-connection-mark=ADSL2_conn passthrough=yes add chain=prerouting connection-mark=ADSL1_conn in-interface=LAN action=mark-routing new- routing-mark=to_ADSL1 add chain=prerouting connection-mark=ADSL2_conn in-interface=LAN action=mark-routing new- routing-mark=to_ADSL2 / ip route add dst-address=0.0.0.0/0 gateway=19.74.30.1 routing-mark=to_ADSL1 check-gateway=ping
  • 2. add dst-address=0.0.0.0/0 gateway=12.25.20.1 routing-mark=to_ADSL2 check-gateway=ping add dst-address=0.0.0.0/0 gateway=19.74.30.1 distance=1 check-gateway=ping add dst-address=0.0.0.0/0 gateway=12.25.20.1 distance=2 check-gateway=ping / ip firewall nat add chain=srcnat out-interface=ADSL1 action=masquerade add chain=srcnat out-interface=ADSL2 action=masquerade