高手们,请教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