SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
/ 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

Contenu connexe

En vedette

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
 

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 

Dernier (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

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