My hikey is running Android + OPTEE. The branch I am building has some issue using wifi, so I get internet through Ethernet. I want to modify the gateway IP to my proxy server (192.168.0.104). Android support modifying gateway IP through Setting app if it is a wifi connection but I did not find similar options in Setting app for ethernet connection.
I run the following command to manually set gateway IP:
ip route add default via 192.168.0.104 dev eth0
The ip route shows following:
Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 192.168.0.104 0.0.0.0 UG 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Looks like the gateway is added. However, when I run any apps and monitor the wireshark on my proxy server, the hikey does not forward any traffic to proxy.
Any advice where I did wrong? Any other suggestion how should I set up static gateway IP on Hikey?
Thanks for the assistance.