Ifconfig command in Adb shell

16,564 views
Skip to first unread message

Joe Petruchi

unread,
Mar 7, 2009, 3:50:01 AM3/7/09
to android-d...@googlegroups.com, android-...@googlegroups.com, android-framework, android-internals, android-kernel
Is the if config command working in Android emulator or target ?
 
When i type ifconfig inside the shell of the emulator using adb it doesnot show any network Interface ?
 
My Android based phone also doesnot shows any output for ifconfig eventhough it has a GPRS connection over which it sends and receives data for browser application ?
 
Does anybody knows why the ifconfig command is not working or is there any alternate method to know the network interfaces and their IP address ?
 
Thanks
Joe

dimi...@android.com

unread,
Mar 7, 2009, 6:54:58 PM3/7/09
to Android Linux Kernel Development
Android ifconfig has very limited functionality.
To check interfaces you can use 'netcfg' command.

Joe Petruchi

unread,
Mar 9, 2009, 1:28:48 AM3/9/09
to android...@googlegroups.com
Thanks a lot all

netcfg works fine for me. it displays all the interfaces

regards
joe

Adrian Caceres

unread,
Mar 16, 2009, 2:36:48 PM3/16/09
to android...@googlegroups.com
The android version of ifconfig is not standard linux. Try netcfg
Reply all
Reply to author
Forward
0 new messages