Android 4.4.2 Pptp VPN route&ifconfig ---SUCCESS (LG Nexus)

来源:互联网 发布:淘宝寄拍模特价格 编辑:程序博客网 时间:2024/05/27 20:46
Android 4.4.2 Pptp VPN route&ifconfig ---SUCCESS (LG Nexus)

1. root phone, can use "su"

root@mako:/system/xbin # ll
-rw-r----- root     root            0 2014-02-21 08:44 abc.txt
-rwxr-xr-x root     root      1847668 2014-02-21 08:51 busybox
-rwxr-xr-x root     shell       59816 2013-12-10 02:41 dexdump
-rw-r--r-- root     root           41 2008-08-01 12:00 ksud
-rwsr-sr-x root     root        30864 2008-08-01 12:00 ku.sud
-rwsr-sr-x root     root        30864 2008-08-01 12:00 su

2. remount

   mount -w -o remount /dev/block/platform/msm_sdcc.1/by-name/system /system

3. adb push toolbox


root@mako:/ # toolbox 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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

p2p0      Link encap:Ethernet  HWaddr 02:11:22:97:F4:7F 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:192.168.9.14  P-t-P:192.168.9.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1388  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:124 (124.0 B)  TX bytes:344 (344.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:11:22:97:F4:7F 
          inet addr:192.168.28.163  Bcast:192.168.29.255  Mask:255.255.254.0
          inet6 addr: fe80::211:22ff:fe97:f47f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:781 errors:0 dropped:0 overruns:0 frame:0
          TX packets:191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:141520 (138.2 KiB)  TX bytes:20960 (20.4 KiB)




root@mako:/ # toolbox route                                                   
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.28.1    0.0.0.0         UG    0      0        0 wlan0
192.168.9.1     *               255.255.255.255 UH    0      0        0 ppp0
192.168.28.0    *               255.255.254.0   U     0      0        0 wlan0
192.168.28.0    *               255.255.254.0   U     0      0        0 wlan0
192.168.28.1    *               255.255.255.255 UH    0      0        0 wlan0



0 0
原创粉丝点击