CCNP实验:CHAP认证、MGRE技术

CCNP实验:CHAP认证、MGRE技术

说明:该实验的拓扑如下所示,R2充当ISP,要求将这3块局域网通过MGRE连接成为一个局域网。具体的实验要求如图所示:
在这里插入图片描述

1、规划IP:

在这里插入图片描述

公网IP12.1.1.1/2423.1.1.1/2434.1.1.1/24
MGRE10.1.1.1/2410.1.1.2/2410.1.1.3/24

2、配置:

(1)底层:

底层就按如图所示的配置,公网IP随便配置,我这里为了方便。

(2)路由:

①配置缺省:
R1(config)#ip route 0.0.0.0 0.0.0.0 12.1.1.2
R3(config)#ip route 0.0.0.0 0.0.0.0 23.1.1.2
R4(config)#ip route 0.0.0.0 0.0.0.0 24.1.1.2
R5(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2
②搭建MGRE环境:
R1(config)#int tunnel 0
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#tunnel source 12.1.1.1
R1(config-if)#tunnel mode gre multipoint 
R1(config-if)#ip nhrp map multicast dynamic 
R1(config-if)#ip nhrp network-id 100
R1(config-if)#no ip split-horizon eigrp 90

R3(config)#int tunnel 0
R3(config-if)#ip add 10.1.1.2 255.255.255.0
R3(config-if)#tunnel source s0/0 
R3(config-if)#tunnel mode gre multipoint 
R3(config-if)#ip nhrp nhs 10.1.1.1
R3(config-if)#ip nhrp map 10.1.1.1 12.1.1.1
R3(config-if)#ip nhrp network-id 100
R3(config-if)#ip nhrp map multicast 12.1.1.1
R4同R3配置
③路由宣告:
R5(config)#router eigrp 90
R5(config-router)#no auto-summary 
R5(config-router)#network 192.168.1.0
R5(config-router)#network 192.168.4.0

R3(config)#router eigrp 90
R3(config-router)#no auto-summary
R3(config-router)#network 192.168.1.0
R3(config-router)#networ 10.0.0.0
R4省略

做到这里就可以MGRE借本上就搭建好了,我们查看一下R4的路由表:
在这里插入图片描述
然后用ping命令进行检测:
在这里插入图片描述

④在R1上做NAT:
R1(config)#access-list 1 permit 192.168.0.0 0.0.255.255

R1(config)#ip nat inside source list 1 int s0/1 overload 

R1(config)#int s0/0
R1(config-if)#ip nat inside 
R1(config-if)#int s0/1
R1(config-if)#ip nat outside 

R5进行检测:
在这里插入图片描述

⑤CHAP认证:
R2(config)#int s0/0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap
R2(config)#username ccnp2 password cisco123

R1(config)#int s0/1
R1(config-if)#encapsulation ppp
R1(config-if)#ppp chap hostname ccnp2
R1(config-if)#ppp chap password cisco123

实验到此就全部完成了,如果有不懂得,除了在后台留言,也可以参考我的这篇文章:
CCNP2:二层技术、PPP、HDLC、GRE(Tunnel)、MGRE技术

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值