当前位置:网站首页>MGRE综合实验
MGRE综合实验
2022-07-21 05:17:00 【Xcgouge0972】
目录
一,实验要求。
1,R5为ISP,只能进行IP地址配置;其所有地址均配为公有IP地址
2,R1和R5间使用PPP的PAP认证,R5为主认证方;R2于R5之间使用PPP的chap认证,R5为主认证方;R3于R5之间使用HDLC封装。
3,R1/R2/R3构建一个MGRE环境,R1为中心站点;R1、R4间为点到点的GRE。
4,整个私有网络基于RIP全网可达
5,所有Pc设置私有IP为源IP,可以访问R5环回。
二,实验思路。
1,先根据要求,划分网段。
R1,R2,R3,R4私网部分按192.168.1.0/24;192.168.2.0/24;192.168.3.0/24;192.168.4.0/24划分。公网R1与R5 之间:15.0.0.0/24;R2与R5之间:25.0.0.0/24;R1,R2,R3之间分配192.168.5.0/24
以R1为例,配置ip
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[r1-GigabitEthernet0/0/0]int s1/0/0
[r1-Serial1/0/0]ip add 15.0.0.1 24
[r1-Serial1/0/0]
[r1]ip route-static 0.0.0.0 0 15.0.0.2
验证
2,在R5上创建用户,便于各路由器之间做认证
[isp]aaa
[isp-aaa]local-user admin password cipher 123456
[isp-aaa]local-user admin service-type ppp ---定义服务类型
开启pap认证
[isp]int s1/0/0
[isp-Serial1/0/0]ppp authentication-mode pap
在R1
[r1]int s1/0/0
[r1-Serial1/0/0]ppp pap local-user admin password cipher 123456
[r1-Serial1/0/0]shutdown
[r1-Serial1/0/0]undo shutdown
认证成功
开启chap认证
R5上
[isp]int s1/0/1
[isp-Serial1/0/1]ppp authentication-mode chap
R2上
[r2-Serial1/0/0]ppp chap user admin
[r2-Serial1/0/0]ppp chap password cipher 123456
[r2-Serial1/0/0]shutdown
[r2-Serial1/0/0]undo shutdown
认证成功
使用HDRC封装
R3
[r3]int s2/0/0
[r3-Serial2/0/0]link-protocol hdlc
R5
[isp]int s2/0/0
[isp-Serial2/0/0]link-protocol hdlc
封装成功
3,R1,R2,R3之间搭建MGRE环境
R1中心站点
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 192.168.5.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 15.0.0.1
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]nhrp entry multicast dynamic ---开启伪广播
R2
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ip add 192.168.5.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp ---定义封装类型
[r2-Tunnel0/0/0]source Serial 1/0/0
[r2-Tunnel0/0/0]nhrp network-id 100 ---加入nhrp域
[r2-Tunnel0/0/0]nhrp entry 192.168.5.1 15.0.0.1 register ---找中心注册
R3同上
搭建完成
4,R1,R4搭建GRE环境
R1
[r1]interface Tunnel 0/0/1
[r1-Tunnel0/0/1]ip add 192.168.6.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre
[r1-Tunnel0/0/1]source 15.0.0.1
[r1-Tunnel0/0/1]destination 45.0.0.1
R4
[r4]int t 0/0/0
[r4-Tunnel0/0/0]ip add 192.168.6.2 24
[r4-Tunnel0/0/0]tunnel-protocol gre
[r4-Tunnel0/0/0]source 45.0.0.1
[r4-Tunnel0/0/0]destination 15.0.0.1
5,运行RIP
R1
[r1]rip
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 192.168.5.0
[r1-rip-1]network 192.168.6.0
R2,R3,R4同上
删除水平分割
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]undo rip split-horizon
查看结果
6,做地址转换 ---NAT
在每个pc端的边界路由器上配置
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1-acl-basic-2000]q
[r1]int Serial 1/0/0
[r1-Serial1/0/0]nat outbound 2000
边栏推荐
猜你喜欢
随机推荐
FXS and FXO: what is the difference and how it works
HCIP OSPF综合实验
Directx-- draw hexagon (entity type)
基于Unity的Hololens2与服务器进行Json、模型以及视频流传输实战(个人Hololens2进阶开发总结)
MySQL installation
阿里IM技术分享(七):闲鱼IM的在线、离线聊天数据同步机制优化实践
Day 3 homework
Function and application of LAN telephone software system
unity 模型从相机外进入相机 没有播放指定动作
力扣记录:动态规划4股票问题——121,122,123,188 ,309,714买卖股票的最佳时机(I,II,III,IV,含冷冻期,含手续费)
力扣记录:动态规划5子序列问题(1)——300 最长上升子序列,1143 最长公共子序列,1035 不相交的线,674 最长连续递增序列,718 最长重复子数组,53 最大子序和
[oops framework] supporting game configuration data generation + data object code generator plug-in
OK外呼中心配置的电话系统规则
Force deduction record: dynamic programming 1 basic topic - 509 Fibonacci number, 70 climbing stairs, 746 climbing stairs with minimum cost, 62 different paths, 63 different paths II, 343 integer spli
Use and configuration method of eyebeam telephone calling software
VOS网络电话如何注册IMS
二叉树之查找树的C#实现
开源 Cocos Creator 3.x 游戏框架 oops-framework
VOIP软交换与选线路之间的对比
力扣记录:动态规划2背包问题(2)完全背包——518 零钱兑换II,377 组合总和IV,70 爬楼梯,322零钱兑换,279 完全平方数,139 单词拆分