I want to get Mangoh red [wp76xx] board interface on another platform other than PC.
Currently, i have tested the R12 release image on the MangoH red board with PC.
Now i want to get the interface up on another platform. Can you guide me on what all interfaces or changes needs to be done at the MangoH source end.
On the MangoH red board : [ All steps go through - No errors ]
iptables -t nat -A POSTROUTING --out-interface rmnet_data0 -j MASQUERADE
iptables -A FORWARD -o ecm0 -i rmnet_data0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i ecm0 -o rmnet_data0 -j ACCEPT
iptables -t nat -A POSTROUTING --out-interface rmnet_data0 -j MASQUERADE
iptables -A FORWARD -o bridge0 -i rmnet_data0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i bridge0 -o rmnet_data0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
On the customized hardware running Android :
ifconfig usb0 192.168.2.3
which one loses the IP?
PC or module?
If PC loses the IP, you can type “sudo ifconfig usb0 192.168.2.3”
If module loses the IP, you can type “ifconfig ecm0 192.168.2.2”