Chinaunix首页 | 论坛 | 博客
  • 博客访问: 663679
  • 博文数量: 779
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 5000
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-27 13:28
文章分类

全部博文(779)

文章存档

2011年(1)

2008年(778)

我的朋友

分类:

2008-10-27 13:36:17


  PPP(Point-to-Point Protocol)是SLIP(Serial Line IP protocol)的继承者,它提供了跨过同步和异步电路实现器到路由器(router-to-router)和主机到网络(host-to-network)的连接。
  
  CHAP(Challenge Handshake Authentication Protocol)和PAP(Password Authentication Protocol) (PAP)通常被用于在PPP封装的串行线路上提供性认证。使用CHAP和PAP认证,每个路由器通过名字来识别,可以防止未经授权的访问。
  
  CHAP和PAP在RFC 1334上有详细的说明。
  
  1.    有关命令
  
  端口设置
  
   
  
  注:1、要使用CHAP/PAP必须使用PPP封装。在与非路由器连接时,一般采用PPP封装,其它厂家路由器一般不支持的HDLC封装。 
  
  2.    举例
  
  路由器Router1和Router2的S0口均封装PPP,采用CHAP做认证,在Router1中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为router2。同时在Router2中应建立一个用户,以对端路由器主机名作为用户名,即用户名应为router1。所建的这两用户的password必须相同。
  
  
  
  设置如下:
  
  Router1:
  
  hostname router1
  
  username router2 password xxx
  
  interface Serial0
  
  ip address 192.200.10.1 255.255.255.0
  
  clockrate 1000000
  
  ppp authentication chap
  
  !
  
  Router2:
  
  hostname router2
  
  username router1 password xxx
  
  interface Serial0
  
  ip address 192.200.10.2 255.255.255.0
  
  ppp authentication chap
  
  
  
【责编:admin】

--------------------next---------------------

阅读(320) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~