MGRE综合实验
创始人
2024-06-01 18:56:44
0

实验拓扑及相关要求:

 

IP地址配置:

ip规划如该拓扑上可视

缺省路由:

[r1]ip route-static 0.0.0.0 0 15.0.0.2
[r2]ip route-static 0.0.0.0 0 25.0.0.2
[r3]ip route-static 0.0.0.0 0 35.0.0.2

[r4]ip route-static 0.0.0.0 0 45.0.0.2

公网内部均可通讯:

 

R1和R5之间使用PPP的PAP认证,R5为主认证方
[isp] aaa    
[isp-aaa]local-user admin password cipher 123456
[isp-aaa]local-user admin service-type ppp
[isp-aaa]int s1/0/0
[isp-Serial1/0/0]ppp authentication-mode pap
 

[r1-Serial1/0/0]ppp pap    
[r1-Serial1/0/0]ppp pap local admin password cipher 123456

验证(将r1的串线接口shutdown,然后在ping 15.0.0.2,再undo shutdown该串口,在测试):

 

R2和R5之间使用PPP的chap认证
[isp]int s 2/0/0   
[isp-Serial2/0/0]ppp authentication-mode  chap

   
[r2-Serial2/0/0]ppp chap user admin
[r2-Serial2/0/0]ppp chap password cipher 123456

 

R5为主认证方R3和R5之间使用HDLc封装

[r3-Serial3/0/0]link-protocol hdlc 

[isp-Serial3/0/0]link-protocol hdlc 

 

MGRE 环境:

[r1-Tunnel0/0/0]ip ad 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 entry multicast dynamic 

[r2]int t 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 s2/0/0
[r2-Tunnel0/0/0]nhrp  entry 192.168.5.1 15.0.0.1 register 
 

[r3]int t 0/0/0
[r3-Tunnel0/0/0]ip ad 192.168.5.3 24  
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source s 3/0/0
[r3-Tunnel0/0/0]nhrp entry 192.168.5.1 15.0.0.1 register 
 

[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
 

[r1-Tunnel0/0/0]int t0/0/1
[r1-Tunnel0/0/1]ip ad 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
 

rip宣告配置

[r1]rip 1
[r1-rip-1]v 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]rip 1
[r2-rip-1]v 2
[r2-rip-1]net    
[r2-rip-1]network 192.168.2.0
[r2-rip-1]network 192.168.5.0
 

[r3]rip 1
[r3-rip-1]v 2
[r3-rip-1]ne    
[r3-rip-1]network 192.168.3.0
[r3-rip-1]network 192.168.5.0

[r4]rip 1
[r4-rip-1]v 2
[r4-rip-1]ne    
[r4-rip-1]network 192.168.4.0
[r4-rip-1]network 192.168.6.0

 

 

 

 

所有Pc设置私有P为源IP,可以访问R5环回

[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 s1/0/0   
[r1-Serial1/0/0]nat outbound 2000
在其他每个私网路由器上都配置对应的nat抓取对应流量

 

相关内容

热门资讯

监控摄像头接入GB28181平... 流程简介将监控摄像头的视频在网站和APP中直播,要解决的几个问题是:1&...
Windows10添加群晖磁盘... 在使用群晖NAS时,我们需要通过本地映射的方式把NAS映射成本地的一块磁盘使用。 通过...
protocol buffer... 目录 目录 什么是protocol buffer 1.protobuf 1.1安装  1.2使用...
在Word、WPS中插入AxM... 引言 我最近需要写一些文章,在排版时发现AxMath插入的公式竟然会导致行间距异常&#...
【PdgCntEditor】解... 一、问题背景 大部分的图书对应的PDF,目录中的页码并非PDF中直接索引的页码...
修复 爱普生 EPSON L4... L4151 L4153 L4156 L4158 L4163 L4165 L4166 L4168 L4...
Fluent中创建监测点 1 概述某些仿真问题,需要创建监测点,用于获取空间定点的数据࿰...
educoder数据结构与算法...                                                   ...
MySQL下载和安装(Wind... 前言:刚换了一台电脑,里面所有东西都需要重新配置,习惯了所...
MFC文件操作  MFC提供了一个文件操作的基类CFile,这个类提供了一个没有缓存的二进制格式的磁盘...