routes – Android – How to change ip table permanently on android device?


I have android with two network interface wlan0 and eth0.

Interface eth0 is connected with some private network (without internet).

Interface wlan0 is the source of Internet of my device.

The problem is when activate eth0 ethernet port of the device the internet coming from the wifi stops to work, there are routing problem.

I did some routing configuration command and i am able to solve it.

ip route add table eth0 default via 192.168.100.1 dev wlan0 proto static

The issue when i restart the kiosk the config disappear i have to do it again each time.

Can you tell me how can i change permanently ?

Thank you in advance.