C:\temp\adb>adb shell
$ su
su
# busybox ifconfig
busybox ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1245 errors:0 dropped:0 overruns:0 frame:0
TX packets:1245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:117956 (115.1 KiB) TX bytes:117956 (115.1 KiB)
usb0 Link encap:Ethernet HWaddr XXXXXXXX
inet addr:192.168.16.2 Bcast:192.168.16.7 Mask:255.255.255.248
inet6 addr: fe80::f8:63ff:fe5f:5571/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1646 errors:24 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:439619 (429.3 KiB) TX bytes:3860 (3.7 KiB)
# busybox ifconfig usb0 192.168.123.2
busybox ifconfig usb0 192.168.123.2
(ip설정)
# route add default gw 192.168.123.1 dev usb0
route add default gw 192.168.123.1 dev usb0
(게이트웨이 설정)
# setprop net.dns1 192.168.123.1
setprop net.dns1 192.168.123.1
(DNS설정)