I’m trying - but failing - to assign my TK1 a fixed IP address for the RNDIS interface.
Firstly, when I enable the RNDIS gadget and connect it to a Windows machine:
echo rndis > /sys/class/android_usb/android0/functions echo 1 > /sys/class/android_usb/android0/enable
It gets assigned a 169.254.x.x fallback address.
What I would ideally like is for the TK1 to assign itself a 192.168.11.1 static IP address.
Having attempted to update the /etc/network/interfaces file with the following configuration:
iface rndis0 inet static address 192.168.11.1 netmask 255.255.255.0
Upon reboot, nothing seems to change and the fallback address continues to be used.
Also what I’m trying to achieve is SSH access via the RNDIS interface. Unfortunately if I attempt to connect PuTTY (for example) to the fallback IP address on port 22, connections are always refused.
There is probably a very simple and obvious solution to both the above.