Monday, February 17, 2014
After plug the network cable using android udhcpc adb shell command is invalid in the
I want to use linux command to dynamically obtain ip address in android, do not know how to do, look advice.
After the android development board after plug the Internet cable into the adb shell command used to dynamically set udhcpc ip, as
# Udhcpc eth0
udhcpc (v1.15.3) started
Sending discover ...
Sending select for 10.10.20.148 ...
Lease of 10.10.20.148 obtained, lease time 432600
But check with ifconfig eth0 ip address command is still manual before setting himself follows:
# Ifconfig eth0
ifconfig eth0
eth0: ip 10.10.10.20 mask 255.0.0.0 flags [up broadcast multicast]
Experts expect answers. Thank you! !<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
The top one, the same problem, solved! ! !
Reply:
I also encountered the same problem, please use: dhcpcd wlan0 or other.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment