G
G
gr8den2016-05-30 12:32:44
Mikrotik
gr8den, 2016-05-30 12:32:44

Distribute Internet from several providers via VLAN?

There is a Mikrotik CCR1009-8G-1S 1 port - LAN with
VLANs 1,2,3,4
2,3 ports - Internet via PPPOE
3 WAN ports

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2016-05-30
@gr8den

For example:

/ip firewall mangle add chain=prerouting in-interface=vlan1,vla
n2 action=mark-routing new-routing-mark=2
/ip firewall mangle add chain=prerouting in-interface=vlan3,vla
n4 action=mark-routing new-routing-mark=3

/ip route add routing-mark=2 gateway=wan2
/ip route add routing-mark=3 gateway=wan3

Oh, and don't forget the masqurade.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question