hcip的mgre和ospf实验

题目

在这里插入图片描述

拓扑图

在这里插入图片描述

一、配置环回和IP地址

R1

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 64.1.1.1 24
Aug 4 2023 18:56:07-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r1-GigabitEthernet0/0/1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 14.1.1.1 24
Aug 4 2023 18:56:27-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]q
[r1]int lo
[r1]int LoopBack 0
[r1-LoopBack0]ip add 1.1.1.1 24

R2

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 24.1.1.1 24
Aug 4 2023 18:56:56-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-GigabitEthernet0/0/0]q
[r2]int lo
[r2]int LoopBack 0
[r2-LoopBack0]ip add 2.2.2.2 24

R3

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 34.1.1.1 24
Aug 4 2023 18:57:15-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r3-GigabitEthernet0/0/0]q
[r3]int lo
[r3]int LoopBack 0
[r3-LoopBack0]ip add 3.3.3.3 24

R4

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r4
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 44.1.1.1 24
Aug 4 2023 18:57:38-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]q
[r4]int lo
[r4]int LoopBack 0
[r4-LoopBack0]ip add 4.4.4.4 24

R5

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r5
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 54.1.1.1 24
Aug 4 2023 18:58:00-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r5-GigabitEthernet0/0/0]q
[r5]int lo
[r5]int LoopBack 0
[r5-LoopBack0]ip add 5.5.5.5 24

R6

< Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r6
[r6]int g2/0/0
[r6-GigabitEthernet2/0/0]ip add 34.1.1.2 24
Aug 4 2023 18:58:28-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet2/0/0 has entered the UP state.
[r6-GigabitEthernet2/0/0]int g0/0/0
[r6-GigabitEthernet0/0/0]ip add 14.1.1.2 24
Aug 4 2023 18:58:45-08:00 r6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r6-GigabitEthernet0/0/0]int g0/0/1
[r6-GigabitEthernet0/0/1]ip add 64.1.1.2 24
[r6-GigabitEthernet0/0/1]
Aug 4 2023 18:59:23-08:00 r6 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r6-GigabitEthernet0/0/1]int g0/0/2
[r6-GigabitEthernet0/0/2]ip add 24.1.1.2 24
[r6-GigabitEthernet0/0/2]
Aug 4 2023 18:59:35-08:00 r6 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[r6-GigabitEthernet0/0/2]int g4/0/0
[r6-GigabitEthernet4/0/0]ip add 54.1.1.2 24
[r6-GigabitEthernet4/0/0]
Aug 4 2023 18:59:56-08:00 r6 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
on the interface GigabitEthernet4/0/0 has entered the UP state.
[r6-GigabitEthernet4/0/0]int g3/0/0
[r6-GigabitEthernet3/0/0]ip add 44.1.1.2 24
[r6-GigabitEthernet3/0/0]
Aug 4 2023 19:00:10-08:00 r6 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP
on the interface GigabitEthernet3/0/0 has entered the UP state.
[r6]int lo
[r6]int LoopBack 0
[r6-LoopBack0]ip add 6.6.6.6 24

二、配置缺省

R1

[r1]ip rou
[r1]ip route
[r1]ip route-static 0.0.0.0 0 14.1.1.2
[r1]ip route-static 0.0.0.0 0 64.1.1.2

R2

[r2]ip rou
[r2]ip route
[r2]ip route-static 0.0.0.0 0 24.1.1.2

R3

[r3]ip rou
[r3]ip route
[r3]ip route-static 0.0.0.0 0 34.1.1.2

R4

[r4]ip rou
[r4]ip route
[r4]ip route-static 0.0.0.0 0 44.1.1.2

R5

[r5]ip rou
[r5]ip route
[r5]ip route-static 0.0.0.0 0 54.1.1.2

星型拓扑结构

R1

[r1]int tu
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 192.168.4.1 24
[r1-Tunnel0/0/0]tun
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]sou
[r1-Tunnel0/0/0]source 14.1.1.1
Aug 4 2023 19:54:53-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]
[r1-Tunnel0/0/0]nhrp en
[r1-Tunnel0/0/0]nhrp entry mu
[r1-Tunnel0/0/0]nhrp entry multicast dy
[r1-Tunnel0/0/0]nhrp entry multicast dynamic

R2

[r2]int tun
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ip add 192.168.4.2 24
[r2-Tunnel0/0/0]tun
[r2-Tunnel0/0/0]tunnel-protocol gre
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]sour
[r2-Tunnel0/0/0]source g0/0/0
Aug 4 2023 19:56:36-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]
[r2-Tunnel0/0/0]nh
[r2-Tunnel0/0/0]nhrp en
[r2-Tunnel0/0/0]nhrp entry 192.168.4.1 14.1.1.1 re
[r2-Tunnel0/0/0]nhrp entry 192.168.4.1 14.1.1.1 register
[r2-Tunnel0/0/0]

R3

[r3]int tun
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ip add 192.168.4.3 24
[r3-Tunnel0/0/0]tun
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]s
[r3-Tunnel0/0/0]sou
[r3-Tunnel0/0/0]source g0/0/0
Aug 4 2023 19:58:08-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]
[r3-Tunnel0/0/0]nh
[r3-Tunnel0/0/0]nhrp en
[r3-Tunnel0/0/0]nhrp entry 192.168.4.1 14.1.1.1 re
[r3-Tunnel0/0/0]nhrp entry 192.168.4.1 14.1.1.1 register
[r3-Tunnel0/0/0]

MGRE全连拓扑

R1

[r1]int tun
[r1]int Tunnel 0/0/1
[r1-Tunnel0/0/1]ip add 192.168.5.1 24
[r1-Tunnel0/0/1]tun
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]sou
[r1-Tunnel0/0/1]source 64.1.1.1
Aug 4 2023 21:49:24-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the DOWN state.
[r1-Tunnel0/0/1]
[r1-Tunnel0/0/1]
Aug 4 2023 21:49:24-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r1-Tunnel0/0/1]nh
[r1-Tunnel0/0/1]nhrp en
[r1-Tunnel0/0/1]nhrp entry mu
[r1-Tunnel0/0/1]nhrp entry multicast dy
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nh
[r1-Tunnel0/0/1]nhrp en
[r1-Tunnel0/0/1]nhrp entry 192.168.5.2 44.1.1.1 re
[r1-Tunnel0/0/1]nhrp entry 192.168.5.2 44.1.1.1 register
[r1-Tunnel0/0/1]nhrp entry 192.168.5.3 54.1.1.1 register
[r1-Tunnel0/0/1]

R4

[r4]int tun
[r4]int Tunnel 0/0/1
[r4-Tunnel0/0/1]nh
[r4-Tunnel0/0/1]nhrp en
[r4-Tunnel0/0/1]ip add 192.168.5.2 24
[r4-Tunnel0/0/1]tun
[r4-Tunnel0/0/1]tunnel-protocol gre p2mp
[r4-Tunnel0/0/1]sou
[r4-Tunnel0/0/1]source 44.1.1.1
Aug 4 2023 21:53:12-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r4-Tunnel0/0/1]nhrp entry multicast dynamic
[r4-Tunnel0/0/1]nh
[r4-Tunnel0/0/1]nhrp en
[r4-Tunnel0/0/1]nhrp entry 192.168.5.1 64.1.1.1 re
[r4-Tunnel0/0/1]nhrp entry 192.168.5.1 64.1.1.1 register
Info: This peer protocol address conflicts with hub register peer protocol addre
ss.
[r4-Tunnel0/0/1]nhrp entry 192.168.5.3 54.1.1.1 register
[r4-Tunnel0/0/1]

R5

[r5]
[r5]int tun
[r5]int Tunnel 0/0/1
[r5-Tunnel0/0/1]ip add 192.168.5.3 24
[r5-Tunnel0/0/1]tun
[r5-Tunnel0/0/1]tunnel-protocol gre p2mp
[r5-Tunnel0/0/1]sou
[r5-Tunnel0/0/1]source 54.1.1.1
Aug 4 2023 21:54:27-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r5-Tunnel0/0/1]nhrp entry multicast dynamic
[r5-Tunnel0/0/1]nh
[r5-Tunnel0/0/1]nhrp en
[r5-Tunnel0/0/1]nhrp entry 192.168.5.1 64.1.1.1 re
[r5-Tunnel0/0/1]nhrp entry 192.168.5.1 64.1.1.1 register
[r5-Tunnel0/0/1]nhrp entry 192.168.5.2 44.1.1.1 register
Info: This peer protocol address conflicts with hub register peer protocol addre
ss.
[r5-Tunnel0/0/1]

ospf配置

R1

[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]network 192.168.5.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0]network 192.168.4.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0

R2

[r2]ospf 1 rou
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]ar
[r2-ospf-1]area 0
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 192.168.4.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]q
[r2-ospf-1]q
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ospf network-type broadcast
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospf dr-priority 0

R3

[r3]ospf 1 rou
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]ar
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]net
[r3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]network 192.168.5.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]network 192.168.4.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]q
[r3-ospf-1]q
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ospf network-type broadcast
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ospf dr-priority 0

R4

[r4]ospf 1 rou
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]ar
[r4-ospf-1]area 0
[r4-ospf-1-area-0.0.0.0]net
[r4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[r4-ospf-1-area-0.0.0.0]network 192.168.5.2 0.0.0.0
[r4-ospf-1-area-0.0.0.0]q
[r4-ospf-1]q
[r4]int Tunnel 0/0/1
[r4-Tunnel0/0/1]ospf network-type broadcast

R5

[r5]ospf 1 rou
[r5]ospf 1 router-id 5.5.5.5
[r5-ospf-1]ar
[r5-ospf-1]area 0
[r5-ospf-1-area-0.0.0.0]net
[r5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[r5-ospf-1-area-0.0.0.0]network 192.168.5.3 0.0.0.0
[r5-ospf-1-area-0.0.0.0]q
[r5-ospf-1]q
[r5]int Tunnel 0/0/1
[r5-Tunnel0/0/1]ospf network-type broadcast

检验,用R1去ping R2,R3,R4,R5的环回,能ping通则成功
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
ping R6的环回也成功
在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/53196.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【2023年电赛国一必备】E题报告模板--可直接使用

创作不易&#xff0c;麻烦关注CSDN【技术交流、免费报告资料】 通过百度网盘分享的文件&#xff1a;https://pan.baidu.com/s/1aXzYwLMLx_b59abvplUiYw?pwddn71 提取码:dn71 复制这段内容打开「百度网盘APP 即可获取」 任务 图1 任务内容 要求 图2 基本要求内容 图3 发挥部…

Hadoop学习指南:探索大数据时代的重要组成——HDFS(下)

TOC HDFS的读写流程&#xff08;面试重点&#xff09; HDFS 写数据流程 1.1 剖析文件写入 &#xff08;1&#xff09;客户端通过Distributed FileSystem 模块向NameNode 请求上传文件&#xff0c;NameNode检查目标文件是否已存在&#xff0c;父目录是否存在。 &#xff08;…

P25LED透明屏:在商业广告中,透明显示效果怎么样?

P25LED透明屏是一种新型的显示屏技术&#xff0c;它具有高透明度和高亮度的特点&#xff0c;可以实现透明显示效果。 P25LED透明屏广泛应用于商业广告、展览展示、户外广告等领域&#xff0c;具有很大的市场潜力。 P25LED透明屏采用了先进的LED显示技术&#xff0c;具有高亮度…

Kafka的配置和使用

目录 1.服务器用docker安装kafka 2.springboot集成kafka实现生产者和消费者 1.服务器用docker安装kafka ①、安装docker&#xff08;docker类似于linux的软件商店&#xff0c;下载所有应用都能从docker去下载&#xff09; a、自动安装 curl -fsSL https://get.docker.com | b…

VMware虚拟机开机状态动态增加内存和CPU

实验环境&#xff1a;一台虚拟机 1、右击虚拟机&#xff0c;点击“编辑设置”&#xff0c; 2、在“选项”中&#xff0c;找到“内存/cpu热插拔”这一项&#xff0c;把“为此虚拟机启动内存热添加”和“仅为此虚拟机启动CPU热添加”打钩&#xff0c;点击 “确定”。 注意&#x…

通过nvm工具快捷切换node.js版本、以及nvm的安装

使用nvm可以实现多个Node.js版本之间切换 步骤目录&#xff1a; 先卸载掉本系统中原有的node版本 去github上下载nvm安装包 安装node 常用的一些nvm命令 1、先卸载掉本系统中原有的node版本 2、去github上下载nvm安装包 https://github.com/coreybutler/nvm-windows/re…

idea添加翻译插件并配置有道翻译

1、安装Translation插件 2、 创建有道云应用 有道智云控制台 3、设置idea 4、效果&#xff08;选中文本右键翻译&#xff0c;默认快捷键CtrlShiftY&#xff09;

Python web实战之 Django 的模板语言详解

关键词&#xff1a; Python、web开发、Django、模板语言 概要 作为 Python Web 开发的框架之一&#xff0c;Django 提供了一套完整的 MVC 模式&#xff0c;其中的模板语言为开发者提供了强大的渲染和控制前端的能力。本文介绍 Django 的模板语言。 1. Django 模板语言入门 Dj…

Wavefront .OBJ文件格式解读【3D】

OBJ&#xff08;或 .OBJ&#xff09;是一种几何定义文件格式&#xff0c;最初由 Wavefront Technologies 为其高级可视化器动画包开发。 该文件格式是开放的&#xff0c;已被其他 3D 图形应用程序供应商采用。 OBJ 文件格式是一种简单的数据格式&#xff0c;仅表示 3D 几何体&…

FTP使用教程

FTP使用教程 目录 一&#xff0e;FTP简介二&#xff0e;FTP搭建三&#xff0e;FTP使用 一&#xff0e;FTP简介 FTP中文为文件传输协议&#xff0c;简称为文传协议。它也是一个应用程序&#xff0c;不同的操作系统有不同的FTP应用程序&#xff0c;这些应用程序都遵守同一种协议以…

Node.js爬虫只会Cheerio?来试试Puppeteer!

简介 上篇文章我们学习了如何通过 Cheerio 来爬取静态页面&#xff0c;但是我们没有办法处理动态渲染页面的数据 关于 Cheerio 的学习请查看 都 2023 年了还不会 Node.js 爬虫&#xff1f;快学起来&#xff01; 今天我们学习如何使用 Puppeteer 来轻松地完成我们解决不了的爬虫…

python算法指南程序员经典,python算法教程pdf百度云

大家好&#xff0c;小编来为大家解答以下问题&#xff0c;你也能看懂的python算法书 pdf&#xff0c;python算法教程这本书怎么样&#xff0c;现在让我们一起来看看吧&#xff01; 给大家带来的一篇关于算法相关的电子书资源&#xff0c;介绍了关于算法、详解、算法基础方面的内…