I want to use different gateways for my two instance of PPPoE server. I try many tutorials available in Internet but still all the traffic is going through first Gateway only. I am using 2 different /20 pools for those PPPoE servers.
I want to route traffic from PPPoE server 1 to interface 172.16.11.89/24 and PPPoE server 2 to interface 172.16.10.89/24
I want to route traffic from PPPoE server 1 to interface 172.16.11.89/24 and PPPoE server 2 to interface 172.16.10.89/24
Hope the image and the above description is enough understanding the question.
The problem is, whatever I do, all the traffic is going through the first interface (172.16.10.89/24). I can’t route the traffic through the second interface.
You need to create a separate profile per PPPoE Server with a unique gateway in the “local address” field. After that PPPoE Client behind each PPPoE Server will get unique gateway and can talk to each other without going to layer 2.
Thankyou for your reply, But my requirement is something different.
I want to route two instances of PPPoE server into two upstream providers. At present, I can’t do it. All traffic are going through first upstream provider only. Hope the attached file help you further to understand my requirement.
Paste this on terminal and use this as start point. I hope I’ve wroted it correctly.
Each line is a failover for the other, if for some reason one of the two ISP go down.
Thanks for your reply. Can you do one more thing for me.
I do not want to failover. First upstream provider is fully loaded (1G). So I want to route second instance of PPPoE to another upstream provider. I do not want to failover.
I can’t set routing mark in mangle or it’s not properly working. Please post proper mangle rule also
I do not see any firewall rules, is a test or you are kidding?
It’s a heavily edited version. I delete all those lines I think unnecessary for public view.