dengwen3 发表于 2018-6-28 06:15:23

linux下连接windows2003 ppoe 服务器

  1,在CentOS6.3下用
  /usr/sbin/pppdpty "/usr/sbin/pptp publicip --nolaunchpppd" file /etc/ppp/options.pptp user user1 password password1
  再用tail -f /var/log/messages看到log如下
  Oct8 03:25:41 localhost pppd: pppd 2.4.5 started by root, uid 0
  Oct8 03:25:41 localhost pppd: Using interface ppp0
  Oct8 03:25:41 localhost pppd: Connect: ppp0 <--> /dev/pts/2
  Oct8 03:25:41 localhost pptp: anon log: The synchronous pptp option is NOT activated
  Oct   8 03:25:41 localhost pptp: anon log:Sent control packet type is 1 'Start-Control-Connection-Request'
  Oct8 03:25:41 localhost pptp: anon log: Received Start Control Connection Reply
  Oct8 03:25:41 localhost pptp: anon log: Client connection established.
  Oct8 03:25:42 localhost pptp: anon log: Sent control packet type is 7 'Outgoing-Call-Request'
  Oct8 03:25:42 localhost pptp: anon log: Received Outgoing Call Reply.

  Oct   8 03:25:42 localhost pptp: anon log:Outgoing call established (call>  Oct8 03:25:45 localhost pptp: anon log: PPTP_SET_LINK_INFO received from peer_callid 0
  Oct8 03:25:45 localhost pptp: anon log:   send_accm is 00000000, recv_accm is FFFFFFFF
  Oct   8 03:25:45 localhost pptp: anon warn:Non-zero Async Control Character Maps are not supported!
  Oct8 03:25:45 localhost pppd: CHAP authentication succeeded
  Oct8 03:25:45 localhost pppd: LCP terminated by peer (tM-+)^R^@<M-Mt^@^@^BM-f)
  Oct8 03:25:45 localhost pptp: anon log: PPTP_SET_LINK_INFO received from peer_callid 0
  Oct8 03:25:45 localhost pptp: anon log:   send_accm is FFFFFFFF, recv_accm is FFFFFFFF
  Oct   8 03:25:45 localhost pptp: anon warn:Non-zero Async Control Character Maps are not supported!
  Oct8 03:25:45 localhost pptp: anon log: Received Call Clear Request.
  Oct8 03:25:48 localhost pppd: Connection terminated.
  Oct8 03:25:48 localhost pppd: Modem hangup
  Oct8 03:25:48 localhost pptp: anon warn: short read (-1): Input/output error
  Oct8 03:25:48 localhost pptp: anon warn: pppd may have shutdown, see pppd log
  Oct8 03:25:48 localhost pptp: anon log: Closing connection (unhandled)
  Oct8 03:25:48 localhost pptp: anon log: Sent control packet type is 12 'Call-Clear-Request'
  Oct8 03:25:48 localhost pptp: anon log: Closing connection (call state)
  Oct8 03:25:48 localhost pppd: Exit.
  2,google查资料得到修改下面这个文件
  cat /etc/ppp/options
  require-mppe
  require-mppe-128
  mppe-stateful
  CentOS6.3中默认是lock,我把这个删除了,加上上面的内容,问题解决
  3,重新拨号log信息如下
  Oct 10 08:09:39 localhost kernel: PPP generic driver version 2.4.2
  Oct 10 08:09:39 localhost pppd: pppd 2.4.5 started by root, uid 0
  Oct 10 08:09:39 localhost pptp: anon log: The synchronous pptp option is NOT activated
  Oct 10 08:09:39 localhost pppd: Using interface ppp0
  Oct 10 08:09:39 localhost pppd: Connect: ppp0 <--> /dev/pts/2
  Oct10 08:09:39 localhost pptp: anon log:Sent control packet type is 1 'Start-Control-Connection-Request'
  Oct 10 08:09:39 localhost pptp: anon log: Received Start Control Connection Reply
  Oct 10 08:09:39 localhost pptp: anon log: Client connection established.
  Oct 10 08:09:40 localhost pptp: anon log: Sent control packet type is 7 'Outgoing-Call-Request'
  Oct 10 08:09:40 localhost pptp: anon log: Received Outgoing Call Reply.

  Oct10 08:09:40 localhost pptp: anon log:Outgoing call established (call>  Oct 10 08:09:43 localhost pptp: anon log: PPTP_SET_LINK_INFO received from peer_callid 0
  Oct 10 08:09:43 localhost pptp: anon log:   send_accm is 00000000, recv_accm is FFFFFFFF
  Oct10 08:09:43 localhost pptp: anonwarn: Non-zero Async Control Character Mapsare not supported!
  Oct 10 08:09:43 localhost pppd: CHAP authentication succeeded
  Oct 10 08:09:43 localhost kernel: PPP MPPE Compression module registered
  Oct 10 08:09:43 localhost pppd: MPPE 128-bit stateless compression enabled
  Oct 10 08:09:45 localhost pppd: localIP address 10.0.0.4
  Oct 10 08:09:45 localhost pppd: remote IP address 10.0.0.1
  后来这个问题在Debian 6.0中同样出现了,用同样的方法解决
页: [1]
查看完整版本: linux下连接windows2003 ppoe 服务器