玩转CISCO PPP配置


我们知道PPP,点对点协议内容是我们常用到的。那么在很多设备中都有相关的设置。那么这里我们则针对CISCO PPP配置的内容进行一下细致地讲解。那么大家来详细看看其中所涉及的认证配置吧。

CISCO PPP配置1:PPP的PAP认证配置

R1:(主认证方 同样也是 被认证方)

  1. hostname r1  
  2. username r2 password yhp  
  3. int s0/0  
  4. ip add 192.200.10.1 255.255.255.0  
  5. encapsulation ppp  
  6. ppp authentication pap  
  7. ppp pap sent-username r1 password yhp  
  8. no shutdown 

可选项

  1. peer default ip address 192.200.10.2 ---------协商IP  
  2. compress {predictor | stac}  
  3. ip tcp header-compress 

R2:(主认证方 同样也是 被认证方)

  1. hostname r2  
  2. username r1 password yhp  
  3. int s0/0  
  4. ip add 192.200.10.2 255.255.255.0  
  5. encapsulation ppp  
  6. ppp authentication pap  
  7. ppp pap sent-username r2 password yhp  
  8. no shutdown 

可选项

  1. ip address nego-----------------------------------与同另一端一同设置  
  2. compress {predictor | stac}  
  3. ip tcp header-compress 

CISCO PPP配置2:PPP的CHAP认证配置

方法一

R1:(主认证方)

  1. hostname r1  
  2. username r2 pass yhp  
  3. int s0/0  
  4. ip add 192.200.10.1 255.255.255.0  
  5. encapsulation ppp  
  6. ppp authentication chap  
  7. no shutdown 

R2:(被认证方)

  1. hostname r2  
  2. username r1 pass yhp  
  3. int s0/0  
  4. ip add 192.200.10.2 255.255.255.0  
  5. encapsulation ppp  
  6. ppp authentication chap  
  7. no shutdown 

方法二

R1:(主认证方)

  1. hostname r1  
  2. username r2 pass cisco  
  3. int s0/0  
  4. ip add 192.200.10.1 255.255.255.0  
  5. encapsulation ppp  
  6. ppp authentication chap  
  7. no shutdown 

R2:(被认证方)

  1. hostname r2  
  2. username r1 pass cisco  
  3. int s0/0  
  4. ip add 192.200.10.2 255.255.255.0  
  5. encapsulation ppp  
  6. ppp authentication chap  
  7. ppp chap hostname yhp  
  8. no shutdown 

注:如需PPP压缩方法同[PPP的PAP配置],DCE,DTE须另外配

CISCO PPP配置原文地址:http://hi.baidu.com/yhpspace/blog/item/05aa83551784b7c7b645ae59.html

相关内容