第七章 Point-to-Point Protocol

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

第七章Point-to-Point Protocol
Q确定应用是否需要PPP
Q PPP的原理
Q在AIX上配置和使用PPP
PPP 特性
Q在串行链路中压缩IP数据报
Q在单点连接时支持多协议
Q Dynamic negotiation of IP address, Authentication, compression
Q More sophisticated then SLIP
Q Consists of:
g link control protocol(LCP)
g network control protocol(NCP)
g encapsulation/framing technique
Q Protocol (PPP). A point-to-point connection is a link between two specific interfaces, while PPP is a protocol used to
communicate over the link.
------------------------------------------------------------------------------------
AIX PPP Features
IBM Called System
IBM Calling System -Demand connections -PAP/CHAP security
*PAP:Password Authentication Protocol
*CHAP:Challenge Handshake Authentication Protocol
------------------------------------------------------------------------------------
有关PPP的命令和守护进程
pppcontrold -pppauthd pppattachd -pppdial
pppcontrold
-pppauthd
pppattachd
-pppdial PPP connection
Calling System Called System
#startsrc-s pppcontrold $pppattchd client tty0 connect “pppdial-f chatfile”#startsrc-s pppcontrold $pppattchd server
------------------------------------------------------------------------------------
安装和配置步骤
Q安装.ppp
Q创建TTY设备
Q配置MODEM
Q创建PPP连接控制配置
Q Add IP Interfaces for PPP(server only)
Q Define PAP/CHAP authentication
Q启动PPP子系统(pppcontrold/pppauthd)
Q Accessed via smit ppp
------------------------------------------------------------------------------------
创建一个TTY的准备
Q通过smit maktty完成
g在server中将Enable Login 设置为enable
g在clien中将Enable Login 设置为disable
g设置baud rate 和MODEM 的速率一样
g设置flow control 属性为rts
Q在/etc/uucp/Devices文件中加入
g Direct tty# -bandrate direct
------------------------------------------------------------------------------------
SERVER -Create Link Control Configuration
#smit addlcp
LINK Configuration
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
PPP subsystem name [xbppp]
max server connections [1] #
max client connections [0] #
max demand connections [0] #
max ip interfaces [1] #
max async hdlc attachments [1] #
mru [] #
async character map [] X
transmit async character map [] X
negotiate MRU yes +
negotiate magic number yes +
negotiate async map yes +
negotiate protocol compression yes +
[MORE...8]
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
------------------------------------------------------------------------------------
Server-PPP Interfaces
#smit addpppserver
PPP IP Configuration
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Local IP address [192.132.0.1]
Starting Remote IP address [192.132.0.2]
Number of addresses [1] #
Netmask [255.255.255.0]
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
------------------------------------------------------------------------------------
Server -Final Setup Step
Q设置一个PPP login的帐户
g Primary group : uucp
g Group Set: uucp
g Administrative Groups: uucp
g Another user can su to user: false
g Su Groups : Nogroup
g User can Login Remotely: flase
Q在相应的.profile中加入
g exec /usr/sbin/pppattachd server 2 > /dev/null
Q设置参数ipforwarding为1
Q Start PPP subsystem
------------------------------------------------------------------------------------
Client Setup -Create Link
Control Configuration
#smit addlcp
LINK Configuration
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
PPP subsystem name [xbpppclient]
max server connections [0] #
max client connections [2] #
max demand connections [0] #
max ip interfaces [2] #
max async hdlc attachments [2] #
mru [] #
async character map [] X
transmit async character map [] X
negotiate MRU yes +
negotiate magic number yes +
negotiate async map yes +
negotiate protocol compression yes +
[MORE...8]
F1=Help F2=Refresh F3=Cancel F4=List
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Image
Esc+9=Shell Esc+0=Exit Enter=Do
------------------------------------------------------------------------------------
Client Setup -Start PPP Subsystem #smit startppp
Start PPP
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields
* START PPP now, on system restart or both both
F1=Help F2=Refresh F3=Cancel F4=Lis
Esc+5=Reset Esc+6=Command Esc+7=Edit Esc+8=Imag
Esc+9=Shell Esc+0=Exit Enter=Do
------------------------------------------------------------------------------------
Client -建立连接
Q通过行命令pppattachd完成
g$pppattachd client tty0 connect
“pppdial-f chatfile”
------------------------------------------------------------------------------------
“Chatfile”实例
Q内容详解
g‘’
g atdt[电话号码]
g CONNECT
g\d\n
g ogin
g[PPP用户名]
g ssword
g[PPP用户密码]
Q例子在/etc/ppp/dial_out.example中
------------------------------------------------------------------------------------
拨入Modem的配置
Q#pdisable tty0
Q#cu -dml tty0
g$AT
g$ATS0=1
g$AT&W F1
g$~.
Q#penable tty0
------------------------------------------------------------------------------------。

相关文档
最新文档