当前位置: 代码迷 >> Wireless >> 高手们,请问ppp拨号路由的有关问题
  详细解决方案

高手们,请问ppp拨号路由的有关问题

热度:7416   发布时间:2013-02-26 00:00:00.0
高手们,请教ppp拨号路由的问题
本人通过pppd2.4.4在linux下对TD-SCDMA模块拨号,按照defaultroute获取IP信息
ppp0 Link encap:Point-Point Protocol  
  inet addr:10.233.25.191 P-t-P:192.168.0.1 Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
  RX packets:234 errors:0 dropped:0 overruns:0 frame:0
  TX packets:13602 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3 
  RX bytes:14629 (14.2 KiB) TX bytes:5910650 (5.6 MiB)

Destination Gateway Genmask Flags Metric Ref USE Iface
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0

我现在想把Gateway修改成10.233.25.191,如何做呢?

------解决方案--------------------------------------------------------
先route del -net 192.168.0.1 netmask 255.255.255.255
然后route add -net 192.168.0.1 gw 10.233.25.191 netmask 255.255.255.255 dev ppp0
  相关解决方案