You are not logged in.
i have added two table names wifi and voda to /etc/iproute2/rt_tables.
255 local
254 main
253 default
0 unspec
1 wifi
2 voda
Now i am trying to add rule to the table voda it giving error.
root# ip route add 10.178.202.42/14 dev wwan0 src 10.178.202.42 table voda
RTNETLINK answers: Invalid argument
can some one help.
did ip dont know that the table voda in listed in the rt_tables file
Last edited by sant527 (2014-03-29 10:42:48)
Offline
Try using the correct network prefix and see what that gives as a result. So that would be:
#ip route add 10.176.0.0/14 dev wwan0 src 10.178.202.42 table voda
Burninate!
Offline
thank you. it worked. how to find which network prefix to use.
Offline
Most online subnet calculators should do. I personally use this one if I run in to a situation where I can't be bothered to calculate myself
Burninate!
Offline