Please help me to separate vpn and wan traffic via two different ethernet ports

I used following solution to get internet working on my second vlan. ip route add default via table 10 ip rule add from table 10

Could you please explain to my how to add it to startup section?

Also when I tried to enter whole subnet ip rule add from table 10, my console hang and Luci didn’t respond.

Should I use solution mention above or use policy based solution?