配置IP:

r1

[r1]int s 4/0/0
[r1-Serial4/0/0]ip ad 15.0.0.1 24
[r1-Serial4/0/0]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip ad 192.168.1.1 24

r2

[r2]int  s 4/0/0
[r2-Serial4/0/0]ip ad 25.0.0.1 24
[r2-Serial4/0/0]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip ad 192.168.2.1 24

r3

[r3]int s 4/0/0
[r3-Serial4/0/0]ip ad 35.0.0.1 24
[r3-Serial4/0/0]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip ad 192.168.3.1 24

r4

[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip ad 45.0.0.1 24
Jan 11 2022 11:19:54-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]int g  0/0/1
[r4-GigabitEthernet0/0/1]ip ad 192.168.4.1 24

ISP

[isp]int s 3/0/0
[isp-Serial3/0/0]ip ad 15.0.0.2 24
[isp-Serial3/0/0]int s 3/0/1
[isp-Serial3/0/1]ip ad 25.0.0.2 24
[isp-Serial3/0/1]int g 0/0/0
[isp-GigabitEthernet0/0/0]ip ad 45.0.0.2 24
[isp-GigabitEthernet0/0/0]int s 4/0/0
[isp-Serial4/0/0]ip ad 35.0.0.2 24
[isp-Serial4/0/0]int l0
[isp-LoopBack0]ip ad 5.5.5.5 24

每个路由器配置指向isp的缺省路由

[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和r5pap认证:

[isp-aaa]local-user r1 password cipher 123456
Info: Add a new user.
[isp-aaa]local-user r1 service-type ppp
[isp-aaa]int s 3/0/0
[isp-Serial3/0/0]ppp authentication-mode  p    
[isp-Serial3/0/0]ppp authentication-mode  pap

[r1-Serial4/0/0]ppp pap local-user r1 password cipher 123456

r2和r5之间使用chap认证:

[isp-aaa]local-user r2 password cipher 123456
Info: Add a new user.
[isp-aaa]local-user r1 service-type ppp
[isp-aaa]int s 3/0/1 
[isp-Serial3/0/1]ppp authentication-mode chap

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

r3和r5之间使用HDLC封装:

因为华为设备默认使用ppp封装,所以要到对应的接口更改为HDLC封装

两边对端接口都要进行配置,配置完成后接口双up

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

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

r1,r2和r3构建MGRE:

[r1]int t 0/0/0                                                                                   ----------创建隧道接口
[r1-Tunnel0/0/0]ip address 192.168.5.1 24                                        -----------创建IP地址
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp                                           ------选择封装方式
[r1-Tunnel0/0/0]source 15.0.0.1                                                        ---------定义ip源
Jan 11 2022 12:31:09-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r1-Tunnel0/0/0]nhrp network-id 100                                -----------通过NHRP获取目标iIP

[r1-Tunnel0/0/0]nhrp entry multicast dynamic    -------------开启沩广播

[r2]int t 0/0/0
[r2-Tunnel0/0/0]ip ad 192.168.5.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r2-Tunnel0/0/0]source s 4/0/0
Jan 11 2022 12:36:14-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state.

[r2-Tunnel0/0/0]nhrp entry 192.168.5.1 15.0.0.1 register

[r3-Tunnel0/0/0]t    
[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     
[r3-Tunnel0/0/0]source Serial 4/0/0
Jan 11 2022 12:38:23-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nh    
[r3-Tunnel0/0/0]nhrp entry 192.168.5.1 15.0.0.1 register

r1和r4点到点gre:

[r1]int t 0/0/1
[r1-Tunnel0/0/1]ip ad 192.168.6.1 24
[r1-Tunnel0/0/1]source 15.0.0.1
[r1-Tunnel0/0/1]destination 45.0.0.1

[r4-Tunnel0/0/1]ip ad 192.168.6.2 24

[r4-Tunnel0/0/1]tunnel-protocol gre

[r4-Tunnel0/0/1]source 45.0.0.1
[r4-Tunnel0/0/1]destination 15.0.0.1

整个私有网络基于rip全网可达

要在整个私有路由器上都要运行rip

由于mgre环境下,虽然做了沩广播,由于rip水平分割机制的存在,导致r1发送给r2和r3发送的内容不全所以----------去中心r1的对应的int t 0/0/0接口关闭对应的水平分割

[r1-Tunnel0/0/0]undo rip split-horizon

所有pc设置私有ip

可以访问r5环回:

私网访问公网网段,每个 边界路由器的出接口都要进行配置,因为每个路由器已经有指向r5的缺省就不能再写缺省指向r1(中心),

[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255--抓取1.0网段的ip

[r1-Serial4/0/0]nat outbound 2000

[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2-acl-basic-2000]int s 4/0/0
[r2-Serial4/0/0]n    
[r2-Serial4/0/0]nat o    
[r2-Serial4/0/0]nat outbound 2000

MGRE综合实验作业相关推荐

  1. 【计算机网络】思科实验(4):综合实验作业之办公室的跨VLAN通信

    系列文章目录 [计算机网络]思科实验(1):交换机的VLAN划分 [计算机网络]思科实验(2):交换机间的VLAN通信 [计算机网络]思科实验(3):使用三层交换机实现跨VLAN间的通信 [计算机网络 ...

  2. 计算机动画火柴人作业,(Flash期末作品综合实验报告.doc

    (Flash期末作品综合实验报告 "回家过节不容易"动漫小品制作简介 Flash动画制作综合设计性实验报告 年级专业:2012级 6班 指导教师: 学号姓名(组长排名第一) 一.& ...

  3. 基于eNSP中大型校园/企业网络规划与设计_ensp综合大作业(ensp综合实验)

    作者:BSXY_19计科_陈永跃 BSXY_信息学院 注:未经允许禁止转发任何内容 基于eNSP中大型校园/企业网络规划与设计_综合大作业(ensp综合实验) 前言及技术/资源下载说明( **未经允许 ...

  4. MGRE网络的chap认证--ppp认证--tunnel 隧道综合实验

    MGRE网络的chap认证--ppp认证--tunnel 隧道综合实验 一.要求: 1.R5为Ips只能配置地址. 2.R1--R3建立MGRE环境且用EIGRP学习各自环回. 3.R4 可以正常访问 ...

  5. 大学计算机实践教程4.3综合作业,2020年下学期西安电子科技大学《基础实验》综合大作业.docx...

    学习中心/函授站 _ 姓 名 学 号 西安电子科技大学网络与继续教育学院 2020 学年下学期 <基础实验>期末考试试题 (综合大作业) 题号 一 总分 题分 100 得分 考试说明: 1 ...

  6. 网络与继续教育学院2022 学年上学期《基础实验》期末考试试题(综合大作业)

    一.逻辑门测试实验 与门测试原理图见图 1(a)所示,参考此图连接测试电路进行实验(可参阅[实验教程] 实验 4.2) . 1.在答题卡的 图 1(b)中给出了输入信号 A.B 之值,请在图 1(b) ...

  7. 基于eNSP的IPv4加IPv6的企业/校园网络规划设计(综合实验/大作业)

    作者:BSXY_19计科_陈永跃 BSXY_信息学院_名片v位于结尾处 注:未经允许禁止转发任何内容 基于eNSP的IPv4加IPv6的企业/校园网络规划设计_综合实验/大作业 前言及技术/资源下载说 ...

  8. eNSP综合实验合集(eNSP综合大作业合集)_可先收藏

    作者:BSXY_19计科_陈永跃 BSXY_信息学院 注:未经允许禁止转发任何内容 **注:在该文章中就只对ensp综合实验做一个总结和归纳,只给出相应的topo图和需求说明和对应的文章的连接.有什么 ...

  9. java作业:类设计与实现综合实验

    类设计与实现综合实验 实验内容: 请替宠物医院设计并完成一个宠物信息系统,现有完成系统的的类的uml图,及部分类的部分实现代码,和一个测试类P3main.java及main方法的标准输出.总体要求如下 ...

最新文章

  1. 其他算法-两大随机采样方法简介
  2. 企业管理,难的是什么?
  3. php 时间戳 时区,PHP时间函数 时间戳 设置时区
  4. 表情转html,PHP转换emoji表情为HTML字符实体
  5. keycode对照表(键码对照表)
  6. SendInput代替了keybd_event
  7. 文本分类--普通分类
  8. 《Python Cookbook 3rd》笔记(3.2):执行精确的浮点数运算
  9. 20190914:(leetcode习题)验证二叉搜索树
  10. JavaScript中的(字符串,数字型,布尔型)是如何实现类型转换的?
  11. 2014-7 Andrew Ng 自动化所报告听后感
  12. 计算机上硬盘驱动器,什么是计算机硬盘驱动器?它有什么作用?如何维护?
  13. 拼多多狂砸百亿补贴的iphone是真的吗?
  14. 我有200台摄像机4MB/s,后端防火墙吞吐量多少G够用?应用层1G够用吗?
  15. 在EXCEL中的第二列如何排出第一列的名次
  16. 软件工程导论—总体设计
  17. Android 安装第三方远程协助APP无法控制屏幕
  18. android自定义曲线控件,Android自定义折线图(可拖动显示)
  19. 实现轮播图,仅需3步
  20. FileZilla的安装及使用

热门文章

  1. 计算机审计中级培训体会,2019年计算机审计中级培训心得体会-穆超
  2. 该选国企,外企还是私企?
  3. WPS文件格式如何进行转换 et格式转换word
  4. Car-eye JT/T1078 视频服务器开发过程中的音频处理
  5. 计算机文化基础授课计划,计算机文化基础授课计划表
  6. 数据和数据库定义是什么?
  7. 基于stomp协议的websocket
  8. 什么是向量指令和标量指令?
  9. PTA乙级 1069 微博转发抽奖——20分
  10. 经验分享——教育管理系统如何操作学员转班教程资源