pppd拔号完不能上网的问题
本人对linux不熟悉,这几天在android下面linux kernel里面用pppd ttys1拔完号(cmnet),已经显示
I/pppd ( 216): local IP address 10.194.216.202
I/pppd ( 216): remote IP address 192.168.0.1
然后route显示:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.1 * 255.255.255.255 UH 0 0 0 ppp0
ifconfig显示:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
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)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.188.143.104 P-t-P:192.168.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:40 (40.0 B) TX bytes:93 (93.0 B)
ping 202.108.22.142(www.baidu.com)也不通
请教各位有可能是什么原因?
在网上说是必须设置route中的gateway,不知道在linux下面怎么设置gateway?
------解决方案--------------------
route add default gw 网关地址