R5:
interface Virtual-Template1 //C、进入模板就和配置PPP一样了,配置IP,和封装。
ip address 25.0.0.5 255.255.255.0
ppp authentication chap
!
interface Serial0 //A、在接口封装FR,并且打开接口(no sh)
no ip address
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial0.1 point-to-point //B、创建子接口,再启用一个模板
frame-relay interface-dlci 602 ppp Virtual-Template1
R2:
interface Virtual-Template1
ip address 25.0.0.2 255.255.255.0
ppp authentication chap
!
interface Serial0
no ip address
encapsulation frame-relay
no frame-relay inverse-arp
!
interface Serial0.1 point-to-point
frame-relay interface-dlci 206 ppp Virtual-Template1
!
=======================RIP AUTH==========================
R2:
key chain cisco //A、定义一个明文的key,
key 1
key-string cisco
interface Virtual-Template1
ip address 25.0.0.2 255.255.255.0
ip rip authentication key-chain cisco //调用key,完成rip的认证
ppp authentication chap
!
router rip //启动rip路由协议,version 2,(version 1 没有认证)
version 2
passive-interface Loopback0
.network 2.0.0.0
network 25.0.0.0
neighbor 25.0.0.5
no auto-summary
R5:
key chain cisco
key 1
key-string cisco
interface Virtual-Template1
ip address 25.0.0.5 255.255.255.0
ip rip authentication key-chain cisco
ppp authentication chap
!
router rip
version 2
passive-interface Loopback0
network 5.0.0.0
network 25.0.0.0
neighbor 25.0.0.2
no auto-summary
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073