SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Downloaden Sie, um offline zu lesen
/ 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

Weitere Àhnliche Inhalte

Andere mochten auch (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
 

Ähnlich wie 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
 

Mehr von 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
 

KĂŒrzlich hochgeladen

KĂŒrzlich hochgeladen (20)

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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
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...
 
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
 
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...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

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