I put more than 4000 routes of which the gateway address is got from PPPOE into the "main" routing table. As a result, I have to update more then 4000 routes everytime when the pppoe address is changed. Is there any solution to avoid this happening? Thank you.
The background is the access to ip in my country is throuth the 4000 routes, the access to other countries in the world is through several vpn tunnels. I have tried below:
1、Use address list and mangle table to mark routing, but the cpu load is relatively high for matching 4000 addresses frequently.
2、Use 4000 routing rules instead of routes,such as /routing rule add action=lookup table=xxtable dst-address=x.x.x.x. I really wonder is this a perfect solution.