An example is better than 1000 words. Sorry for delaying informations.
and show finnaly
ip ro sh ta balance
[root@mail ~]# ip ro sh ta balance
default
nexthop via 192.168.71.1 dev eth2 weight 1
nexthop via 192.168.61.1 dev eth1 weight 4
so we could use IF and lookup main and balanced ip routing
and it is not so balanced weight 4 vs 1 like 90% vs 10 % for outgoing traffic so
ip route get 8.8.8.8 | awk ’ NR==1 {print $3}’
And I found BUG
ppp couldnot be added to the Providers
i see it fixed try to update
It could be used for determine GW on each interface
ip route get 8.8.8.8 oif ppp0 | awk ’ NR==1 {print $3}’
ip route get 8.8.8.8 oif eth0 | awk ’ NR==1 {print $3}’