免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3067 | 回复: 4
打印 上一主题 下一主题

linux pptpd客户端使用问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-06-29 14:19 |只看该作者 |倒序浏览
本人在linux下使用pptd客户端,可以顺利拨通,获取地址,但是实际访问的路由没有任何改变。
具体如下:
环境:centos 5的客户端 ,centos 5的pptp服务器,windows用户正常使用。
初始路由情况
[root@FJF ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
拨号后
[root@FJF ~]# pppd call pptpd
[root@FJF ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0F:B0:EF:F4:CC
          inet addr:192.168.1.25  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:b0ff:feef:f4cc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:104208 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65904 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:41173497 (39.2 MiB)  TX bytes:7966708 (7.5 MiB)
          Interrupt:50
ppp0      Link encapoint-to-Point Protocol
          inet addr:172.16.0.200  P-t-P:172.16.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:7 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:60 (60.0 b)  TX bytes:66 (66.0 b)
[root@FJF ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.16.0.1      0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
22.11.11.11     192.168.1.1     255.255.255.255 UGH   0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@FJF ~]# vim /var/log/messages
Jun 29 14:10:03 localhost pppd[8383]: CHAP authentication succeeded
Jun 29 14:10:04 localhost pppd[8383]: local  IP address 172.16.0.200
Jun 29 14:10:04 localhost pppd[8383]: remote IP address 172.16.0.1
Jun 29 14:11:03 localhost pptp[8401]: anon log[logecho:pptp_ctrl.c:677]: Echo Reply received.
[root@FJF ~]# traceroute 222.128.250.1
traceroute to 222.128.250.1 (222.128.250.1), 30 hops max, 40 byte packets
1  * * *
2  123.145.120.1 (123.145.120.1)  14.827 ms  16.619 ms  18.375 ms
3  221.5.255.83 (221.5.255.83)  20.930 ms  22.461 ms  24.576 ms
4  221.5.253.205 (221.5.253.205)  26.439 ms  28.294 ms  30.726 ms
5  221.5.218.198 (221.5.218.19  32.537 ms  34.617 ms  36.076 ms
6  221.5.218.61 (221.5.218.61)  38.236 ms  25.961 ms  24.503 ms
7  219.158.12.221 (219.158.12.221)  58.661 ms  57.858 ms  60.369 ms
8  202.96.12.62 (202.96.12.62)  62.155 ms  61.766 ms  62.376 ms
9  61.148.156.18 (61.148.156.1  61.933 ms  61.718 ms  61.377 ms
10  61.148.7.194 (61.148.7.194)  56.629 ms * *

感觉拨号认证应该没有问题了,只是路由没有改变而已,应该怎么更改,
谢谢 大家帮忙  !

论坛徽章:
0
2 [报告]
发表于 2009-06-29 15:32 |只看该作者
使用route add 增加需要的路由即可
man route 看看命令的具体帮助

论坛徽章:
0
3 [报告]
发表于 2009-06-29 15:36 |只看该作者

回复 #2 jinl 的帖子

添加过,还是有问题,不知道应该具体怎么添加了,能不能发一下

论坛徽章:
0
4 [报告]
发表于 2009-06-29 17:20 |只看该作者
服务端是否开启转发了?

论坛徽章:
0
5 [报告]
发表于 2009-06-29 17:41 |只看该作者

回复 #4 rhlei 的帖子

开启了,所有windows 用户使用pptp 拨号客户端均正常
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP