0% found this document useful (0 votes)
63 views2 pages

Balanceo 3 Adsl Pppoe

This document configures network address translation and routing for multiple ADSL connections. It defines an IP address and network for the LAN interface, marks incoming and outgoing connections on different interfaces with unique IDs, marks the routing for these connections, and sets up routing and NAT for three ADSL connections to provide failover capability.

Uploaded by

Nit_su
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)
63 views2 pages

Balanceo 3 Adsl Pppoe

This document configures network address translation and routing for multiple ADSL connections. It defines an IP address and network for the LAN interface, marks incoming and outgoing connections on different interfaces with unique IDs, marks the routing for these connections, and sets up routing and NAT for three ADSL connections to provide failover capability.

Uploaded by

Nit_su
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/ 2

/ ip address

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


interface=LAN

/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-
mark=ADSL1_conn
add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-
mark=ADSL2_conn
add chain=input in-interface=pppoe-out3 action=mark-connection new-connection-
mark=ADSL3_conn
add chain=output connection-mark=no-mark per-connection-classifier=both-
addresses:3/0 \
action=mark-connection new-connection-mark=ADSL1_conn passthrough=yes
add chain=output connection-mark=no-mark per-connection-classifier=both-
addresses:3/1 \
action=mark-connection new-connection-mark=ADSL2_conn passthrough=yes
add chain=output connection-mark=no-mark per-connection-classifier=both-
addresses:3/2 \
action=mark-connection new-connection-mark=ADSL3_conn passthrough=yes
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=output connection-mark=ADSL3_conn action=mark-routing new-routing-
mark=to_ADSL3
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-
classifier=both-addresses:3/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:3/1 \
action=mark-connection new-connection-mark=ADSL2_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=LAN per-connection-
classifier=both-addresses:3/2 \
action=mark-connection new-connection-mark=ADSL3_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
add chain=prerouting connection-mark=ADSL3_conn in-interface=LAN action=mark-
routing new-routing-mark=to_ADSL3

/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_ADSL1 check-
gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_ADSL2 check-
gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_ADSL3 check-
gateway=ping

###Faillover
/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out3 distance=3 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=pppoe-out2 action=masquerade
add chain=srcnat out-interface=pppoe-out3 action=masquerade

You might also like