MGRE综合实验

一、实验拓扑

二、实验要求

1、R5为ISP,只能进行IP地址配置,其所有地址均配为公有IP地址;

2、R1和R5间使用PPP的PAP认证,R5为主认证方;

R2与R5之间使用ppp的CHAP认证,R5为主认证方;

R3与R5之间使用HDLC封装;

3、R1、B2、R3构建一个MGRE环境,R1为中心站点,R1、R4间为点到点的GRE;

4、 整个私有网络基本RIP全网可达;

5 、所有PC设置私有IP为源IP,可以访问R5环回。

三、实验步骤及结果

1.首先配置路由器和PC的IP地址(仅展示R5各个接口的地址以及PC1地址,网关地址均以254结尾)

2.在R1、R2、R3、R4路由器上配置静态路由,以达到公网通

R1\]ip route-static 0.0.0.0 0 15.1.1.5 \[R2\]ip route-static 0.0.0.0 0 25.1.1.5 \[R3\]ip route-static 0.0.0.0 0 35.1.1.5 \[R4\]ip route-static 0.0.0.0 0 45.1.1.5 测试公网各个接口是否能ping通 ![](https://i-blog.csdnimg.cn/direct/8c56dcd03b4044d5bc17bec32ea1b882.png) ![](https://i-blog.csdnimg.cn/direct/6b1e3737af5146899903bac295bb2625.png) ![](https://i-blog.csdnimg.cn/direct/89d52e6ce2b54700bffa574e8d4b18f2.png) 3.R1和R5间使用PPP的PAP认证,R5为主认证方(实验要求2第一条) 在主认证方下创建被验证方用于登录的用户名和密码 R5-aaa\]local-user wangdaye password cipher wdy12345 privilege level 15 设置服务类型 \[R5-aaa\]local-user wangdaye service-type ppp 设置客户端登录验证的方式 \[R5-Serial4/0/1\]ppp authentication-mode pap 进入被验证方,告诉用户名,密码以及验证方式 \[R1-Serial4/0/0\]ppp pap local-user wangdaye password cipher wdy12345 验证(在UNDO SHUTDOWN之后出现PPP的两个up,则配置成功) \[R1-Serial4/0/0\]shutdown \[R1-Serial4/0/0\]undo shutdown ![](https://i-blog.csdnimg.cn/direct/1fd9f23d4b9e4eeda7b6ad33321f054c.png) 4.R2与R5之间使用ppp的CHAP认证,R5为主认证方(实验要求2第二条) 继续使用上一条配置的用户名和密码,只需设置认证方式 \[R5-Serial3/0/1\]ppp authentication-mode chap 告知R2 \[R2-Serial4/0/0\]ppp chap user wangdaye \[R2-Serial4/0/0\]ppp chap password cipher wdy12345 验证(shutdown和undo shutdown) ![](https://i-blog.csdnimg.cn/direct/25e6f163cd97492abd5c559b5a61c692.png) 5.R3与R5之间使用HDLC封装; ![](https://i-blog.csdnimg.cn/direct/81d95e1c1be64011b7d8a59a53a9b910.png) ![](https://i-blog.csdnimg.cn/direct/ec50f271fd6646b3bea964acbf298e60.png) 6.构建R1.R4间点到点的GRE \[R1\]int Tunnel 0/0/0(随便哪个接口都行) \[R1-Tunnel0/0/0\]ip ad 10.1.1.1 24 \[R1-Tunnel0/0/0\]tunnel-protocol gre \[R1-Tunnel0/0/0\]source 15.1.1.1 \[R1-Tunnel0/0/0\]destination 45.1.1.4 \[R4\]int Tunnel 0/0/0 \[R4-Tunnel0/0/0\]ip ad 10.1.1.4 24 \[R4-Tunnel0/0/0\]source 45.1.1.4 \[R4-Tunnel0/0/0\]destination 15.1.1.1 7.构建MGRE \[R1\]int Tunnel 0/0/1 \[R1-Tunnel0/0/1\]tunnel-protocol gre p2mp \[R1-Tunnel0/0/1\]source 15.1.1.1 \[R1-Tunnel0/0/1\]nhrp network-id 100 \[R2\]int Tunnel 0/0/1 \[R2-Tunnel0/0/1\]ip ad 10.1.2.2 24 \[R2-Tunnel0/0/1\]tunnel-protocol gre p2mp \[R2-Tunnel0/0/1\]nhrp network-id 100 \[R2-Tunnel0/0/1\]nhrp entry 10.1.2.1 15.1.1.1 register \[R3\]int Tunnel 0/0/1 \[R3-Tunnel0/0/1\]ip ad 10.1.2.3 24 \[R3-Tunnel0/0/1\]tunnel-protocol gre p2mp \[R3-Tunnel0/0/1\]nhrp network-id 100 \[R3-Tunnel0/0/1\]nhrp entry 10.1.2.1 15.1.1.1 register ![](https://i-blog.csdnimg.cn/direct/f806f65c8d804b40b45766c693069134.png) ![](https://i-blog.csdnimg.cn/direct/f096d65ff77c4e289a762a62aa710509.png) ![](https://i-blog.csdnimg.cn/direct/ec0460916e9e4dbc8123fc06d9547e9b.png) 7.配置rip ![](https://i-blog.csdnimg.cn/direct/02332da8e6234865b2b10e51a152462d.png)![](https://i-blog.csdnimg.cn/direct/c2cdca30e4a44bbeba9d69e10a35ce52.png) ![](https://i-blog.csdnimg.cn/direct/40e1a739e3ff4d54af57e7744c67bbb7.png)![](https://i-blog.csdnimg.cn/direct/f045da9215244621a670c54762c32a9d.png) 关闭接口水平分割机制,开启中心隧道口的广播功能 ![](https://i-blog.csdnimg.cn/direct/b0b728ac9dd0427a902b3a96a321e769.png) ![](https://i-blog.csdnimg.cn/direct/2d3f307a0ede47678f30ee423f7733cf.png) ![](https://i-blog.csdnimg.cn/direct/6f98073897d04aa88dce8d6f019cc50b.png) 检查 ![](https://i-blog.csdnimg.cn/direct/4e3f00b66de741769fa28c61c26e8d79.png) ![](https://i-blog.csdnimg.cn/direct/3c3fa849db0d4dc5abd2f393b35848f3.png) ![](https://i-blog.csdnimg.cn/direct/bd8f905e2294411fb4a5d35ba5e95237.png) ![](https://i-blog.csdnimg.cn/direct/1bcf209f71a844aea87f8ee6bcd96a4a.png) 测试(仅展示一个,其余都能ping通) ![](https://i-blog.csdnimg.cn/direct/5f195628ba4a4d62b7038148141a61b7.png) 8.配置要求五,配置nat,达到全网通(R1-R4的配置一样,只用换一下source网段) (![](https://i-blog.csdnimg.cn/direct/8fc4160b53314a4981992c075bbceb95.png) 测试(仅展示部分) ![](https://i-blog.csdnimg.cn/direct/c33ee0f213fa4915997a5a53e0727e2c.png) ![](https://i-blog.csdnimg.cn/direct/e47949c190544da786b5c0e2cf1d409b.png) ![](https://i-blog.csdnimg.cn/direct/c394b4d68b04407f83cf65fbdf0b9795.png) 至此,所有要求均已完成。

相关推荐
逻辑留白陈1 小时前
2025年实用大模型工具清单
人工智能·学习方法
iナナ1 小时前
Spring Web MVC入门
java·前端·网络·后端·spring·mvc
驱动探索者1 小时前
find 命令使用介绍
java·linux·运维·服务器·前端·学习·microsoft
li星野2 小时前
打工人日报#20251005
笔记·程序人生·fpga开发·学习方法
半路_出家ren2 小时前
IPTables防火墙
服务器·网络·iptables
合作小小程序员小小店2 小时前
Web渗透之一句话木马
web安全·网络安全·安全威胁分析·安全架构·安全性测试
JJJJ_iii2 小时前
【深度学习01】快速上手 PyTorch:环境 + IDE+Dataset
pytorch·笔记·python·深度学习·学习·jupyter
小晶晶京京2 小时前
day54-Zabbix(第三部分)
linux·运维·服务器·zabbix
数据知道3 小时前
Go基础:用Go语言操作MongoDB详解
服务器·开发语言·数据库·后端·mongodb·golang·go语言
朝新_3 小时前
【EE初阶 - 网络原理】网络通信
java·开发语言·网络·php·javaee