/ip firewall mangle
add action=mark-connection chain=prerouting comment=
“Mark every 2. new connection for pppoe-out1” connection-state=new disabled=no
in-interface=ether1 new-connection-mark=pppoe-out1 nth=2,1 passthrough=yes
add action=mark-routing chain=prerouting comment=
“Mark all packets in conn pppoe-out1 with routing mark pppoe-out1”
connection-mark=pppoe-out1 disabled=no in-interface=ether1
new-routing-mark=pppoe-out1 passthrough=no
add action=mark-connection chain=prerouting comment=
“Mark the rest of new connections for pppoe-out2” connection-state=new
disabled=no in-interface=ether1 new-connection-mark=pppoe-out2 nth=2,2
passthrough=yes
add action=mark-routing chain=prerouting comment=
“Mark all packets in conn pppoe-out2 with routing mark pppoe-out2”
connection-mark=pppoe-out2 disabled=no in-interface=ether1
new-routing-mark=pppoe-out2 passthrough=no
just add more pppoe-out3 and out4
/ip route
0 A S 0.0.0.0/0 pppoe-out2 1
1 A S 0.0.0.0/0 pppoe-out1 1
2 A S 0.0.0.0/0 pppoe-out1 2
3 S 0.0.0.0/0 pppoe-out2 2
4 ADC 192.168.1.0/24 192.168.1.1 ether1 0
Will PCC work correctly with two different WAN but from the same provider having the same Gateway? Also having the IP address in the same range if having the same gateway.
if you use PP* (pptp, pppoe, etc) to connect to your provider - then just set ‘gateway=your-ppp-client’
if you use ethernet - then via CLI set ‘gateway=IP%Interface’ and don’t edit this route with WinBox (CLI only). in v3 you will need to install ‘routing-test’ package
Hi, thanks for the quick reply. I use static IP address, routerOS 3.30 and have the routing-test installed, but not the routing package, Do I need both?
Could you explain me a little more the CLI configuration? I want to understand what I am doing. I’ve never used “gateway=IP%Interface”
Chupaka, thanks for this information, but my 4 adsl WAN give me DHCP valid dinamic IP, sometimes 2 wan have the same gateway, sometimes not and sometimes 3 of them have the same gateway, it’s really the same provider but sometimes dont use the same gateway, how i can fight with this? thanks