Scrip balanceo mikrotik

571 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
571
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
29
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Scrip balanceo mikrotik

  1. 1. / ip addressadd address=192.168.37.1/24 network=192.168.37.0 broadcast=192.168.37.255 interface=LANadd address=19.74.30.2/24 network=19.74.30.0 broadcast=19.74.30.255 interface=ADSL2add address=12.25.20.2/24 network=12.25.20.0 broadcast=12.25.20.255 interface=ADSL1/ ip firewall mangleadd chain=input in-interface=ADSL1 action=mark-connection new-connection-mark=ADSL1_connadd chain=input in-interface=ADSL2 action=mark-connection new-connection-mark=ADSL2_connadd chain=output connection-mark=ADSL1_conn action=mark-routing new-routing-mark=to_ADSL1add chain=output connection-mark=ADSL2_conn action=mark-routing new-routing-mark=to_ADSL2add chain=prerouting dst-address=19.74.30.0/24 action=accept in-interface=LANadd chain=prerouting dst-address=12.25.20.0/24 action=accept in-interface=LANadd 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=yesadd 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=yesadd chain=prerouting connection-mark=ADSL1_conn in-interface=LAN action=mark-routing new-routing-mark=to_ADSL1add chain=prerouting connection-mark=ADSL2_conn in-interface=LAN action=mark-routing new-routing-mark=to_ADSL2/ ip routeadd dst-address=0.0.0.0/0 gateway=19.74.30.1 routing-mark=to_ADSL1 check-gateway=ping
  2. 2. add dst-address=0.0.0.0/0 gateway=12.25.20.1 routing-mark=to_ADSL2 check-gateway=pingadd dst-address=0.0.0.0/0 gateway=19.74.30.1 distance=1 check-gateway=pingadd dst-address=0.0.0.0/0 gateway=12.25.20.1 distance=2 check-gateway=ping/ ip firewall natadd chain=srcnat out-interface=ADSL1 action=masqueradeadd chain=srcnat out-interface=ADSL2 action=masquerade

×