PPP(点到点协议)
PPP;点到点协协,
,基本念,概
,PPP是点协点协路上行的据协路协协协。运数
,PPP只是物理协和据协路协的协范。数
,PPP包括,
1、LCP;协路控制协协,,建立协协协据协路协接。并数
LCP配置协协,
1.协协
2.协协
3.协协协协
4.多协路(Multilink)
5.PPP回叫2、NCP;协控制协协,,允协在点到点协接上使用多协协协协协;被协路由协协,。网网
1.NCP包括IPCP、IPXCP等协协
2.IPCP协协协商协协
IP地址协商
TCP/IP协协协
,PPP的协点,
1.支持同步或步串行协路的协协异
2.支持多协协协协协网
3.支持协协协协
4.支持协协的地址协商网
5.支持用协协协
6.允协协行据协协数
,PPP协协方法,
1、PAP ;口令协协协协,
1.协协次握手协协协程两
2.由被协协方协起协协
3.协送明文密协
主协协方,
r1(config)#username user password 123
r1(config)#int s0/0
r1(config-if)#encapsulation pppr1(config-if)#ppp authentication pap ;此协主协协方,
被协协方,
r2(config)#int s0/0
r2(config-if)#encapsulation pppr2(config-if)#ppp pap sent-username user password 123
2、CHAP;协答握手协协协协,
1.协协三次握手协协协程
2.由主协协方协起协协
3.不协送明文密协~协送Hash协
CHAP协协;1,
主协协方,
r1(config)#username user1 password 123r1(config)#int s0/0
r1(config-if)#encapsulation pppr1(config-if)#ppp authentication chap;此协主协协方,r1(config-if)#ppp chap hostname user2被协协方,
r2(config)#username user2 password 123;方用协名要不一协~但密协需一直,双
r2(config)#int s0/0
r2(config-if)#encapsulation pppr2(config-if)#ppp chap hostname user1CHAP协协;2,
如果CHAP协协协程中不指定协送的用协名~协路由器默协协送自己的名字协协方。主协协方,
r1(config)#username r2 password 123;协方路由器名字~密协需一直,
r1(config)#int s0/0
r1(config-if)#encapsulation pppr1(config-if)#ppp authentication chap;此协主协协方,被协协方,
r2(config)#username r1 password 123r2(config)#int s0/0
r2(config-if)#encapsulation ppp
IP地址协商,
使被协协方通协协商~主协协方协取从IP地址。
主协协方,
r1(config)#int s0/0
r1(config-if)#peer default ip address 192.168.1.10
;定协可分配协协方的IP,
被协协方,
r2(config)#int s0/0
r2(config-if)#ip address negotiated
协路协协,
主协协方和被协协方都需配置协协才能生效。
主协协方,
r1(config)#int s0/0
r1(config-if)#compress stac被协协方,
r2(config)#int s0/0
r2(config-if)compress stac协看协协的命令,
show compress
IP地址协商协路协协~在与PAP、CHAP下都可以做。