Why I could not get any thing using adb shell ifconfig?

2,364 views
Skip to first unread message

Looong

unread,
Dec 18, 2010, 11:04:17 AM12/18/10
to android-...@googlegroups.com
I want to look current network config using adb shell ifconfig, but I got null, why?


C:\>adb shell ifconfig

C:\>adb shell iwconfig
iwconfig: not found

C:\>

Thanks in advance.

Raymond.Wen

unread,
Dec 18, 2010, 7:48:34 PM12/18/10
to android-...@googlegroups.com
The ifconfig command on android requires you specify an interface name explicitly. Without argument, it doesn't show all interfaces.
To find out all interfaces on the device, you can use adb shell ls /sys/class/net command.

Best Regards,
Raymond Wen

http://rxwen.blogspot.com



--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

ashutosh deshmukh

unread,
Dec 20, 2010, 11:03:41 AM12/20/10
to android-...@googlegroups.com
Try with explicitly specifying the name of the interface.
For Example: adb shell ifconfig eth0

Hope this helps,

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.



--
Ashutosh A Deshmukh
Mobile: 91-9867686886
Reply all
Reply to author
Forward
0 new messages