Access through 2nd ISP for port

Hi, I have 2 isps pppoe connections and one lan 88.0 which by defaults goes to internet through pppoe 1 and just need only port5 to be able to go automatically through 2nd ppppoe instead pppoe1, what is the best way to do that? thx.

Hey, easiest would be to define a default routing rule for traffic from eth5 to pppoe2.

/ip route add gateway= routing-mark=pppoe2
/ip route rule add action=lookup-only-in-table src-address= table=pppoe2

Sebastia, thats like asking I would like to colour the water green and you suppy red die! :stuck_out_tongue_winking_eye:
He asked for a physical port and you responded with a source address range.
Why wouldnt the following work??
/ip route
add distance=40 gateway=172.145.34.2 routing-mark=fakeruletest

/ip route rule
add interface=ether4 routing-mark=fakeruletest table=fakeruletest

PS I never thought or saw the use of the IP ROUTE RULE, in the past I had begged people to tell me where the table settings where and I dont mean knives and forks and now I know where it exists LOL. Seems like mark route cheat to me though

I’m not sure if using interface= would work in this case as these are grouped into bridge…

Cleanest solution would be to isolate ether5 (not part of bridge) to own subnet, and forward only to uplink as given in my previous post.

port I need to assign internet for is separated from other ports’ bridge, I could also use addresses’ range if it works well

Hi, no luck with route rules you suggested with interface or src ip, traffic keeps going through pppoe1, I also tried mangle to make routing mark and use it in static route for pppoe2 with extra nat rule for pppoe2, it worked but while working through pppoe2 using mangle for src ip I don’t understand why, but the internet speed is very slow and lagging, is there a better way to use maybe vrf? and yes, port I need to assign is part of lan’s bridge, so it’s ok to use a range of addresses, I just need to put through isp2 only one ip, thx.

Please post your config: “/export hide-sensitive compact”

Don’t know what I did, but just removed all rules I created before for this task and added through the terminal, as you said and then added additional masquerade rule for this ip that I need and voila it did the trick, now it goes through 2nd pppoe automatically! You saved my time, thank you!