I am trying to setup reverse tethering between Sony Xperia 4.0.4(rooted) and Linux 12.04. I'm following steps from Matthew Read's answer on this post, How to set up reverse tethering over USB?
All steps work but when I execute "su netcfg usb0 dhcp" in root shell of phone then I get message "Unknown id: netcfg".
130|root@android:/ # su netcfg usb0 dhcp
Unknown id: netcfg
I'm not sure what this message means and how to fix it. I could not find anything related in Google search. Can anyone please guide me about it.
netcfg
command was renamed/removed meanwhile. Try replacing it byifconfig
(i.e.su ifconfig usb0 dhcp
and see if that works (pointer taken from here). In the worst case, that might throw another error message. You could also check whether there's a similarly named executable (e.g. by typingnet
followed by a "<tab>", if your terminal/keyboard supports that – or by walking through the/system/bin
,/system/xbin
etc. directories).su -c "netcfg usb0 dhcp"
(first non-option parameter tosu
is the user to switch to; with-c
you rather advice it to execute the command).