转载请注明出处:

1.使用ENSP 搭建如下拓扑:

数据准备

  为完成此配置例,需准备如下的数据:

设备

Router ID

Process ID

IP地址

DeviceA

1.1.1.1

1

区域0:192.168.0.0/24

区域1:192.168.1.0/24

DeviceB

2.2.2.2

1

区域0:192.168.0.0/24

区域2:192.168.2.0/24

DeviceC

3.3.3.3

1

区域1:192.168.1.0/24、172.16.1.0/24

DeviceD

4.4.4.4

1

区域2:192.168.2.0/24、172.17.1.0/24

DeviceE

5.5.5.5

1

区域1:172.16.1.0/24

DeviceF

6.6.6.6

1

区域2:172.17.1.0/24

2.配置ospf

  DeviceA配置如下:

<Huawei>display current-configuration configuration ospf
#
ospf 1
area 0.0.0.0
network 192.168.0.0 0.0.0.255
area 0.0.0.1
network 192.168.1.0 0.0.0.255
#
return
<Huawei>display current-configuration interface Ethernet 0/0/1
#
interface Ethernet0/0/1
ip address 192.168.1.1 255.255.255.0
#
return
<Huawei>display current-configuration interface Ethernet 0/0/0
#
interface Ethernet0/0/0
ip address 192.168.0.1 255.255.255.0
#
return
<Huawei>

  DeviceB 配置:

<Huawei>display current-configuration configuration ospf
#
ospf 1
area 0.0.0.0
network 192.168.0.0 0.0.0.255
area 0.0.0.2
network 192.168.2.0 0.0.0.255
#
return
<Huawei>display current-configuration interface Ethernet 0/0/0
#
interface Ethernet0/0/0
ip address 192.168.0.2 255.255.255.0
#
return
<Huawei>display current-configuration interface Ethernet 0/0/1
#
interface Ethernet0/0/1
ip address 192.168.2.1 255.255.255.0
#
return
<Huawei>

  DeviceC 配置:

<Huawei>display current-configuration configuration ospf
#
ospf 1
area 0.0.0.1
network 192.168.1.0 0.0.0.255
network 172.16.1.0 0.0.0.255
#
return
<Huawei>display current-configuration interface Ethernet 0/0/0
#
interface Ethernet0/0/0
ip address 192.168.1.2 255.255.255.0
#
return
<Huawei>display current-configuration interface Ethernet 0/0/1
#
interface Ethernet0/0/1
ip address 172.16.1.1 255.255.255.0
#
return
<Huawei>

  DeviceD配置如下:

<Huawei>display current-configuration configuration ospf
#
ospf 1
area 0.0.0.2
network 192.168.2.0 0.0.0.255
network 172.17.1.0 0.0.0.255
#
return
<Huawei>display current-configuration interface Ethernet 0/0/0
#
interface Ethernet0/0/0
ip address 192.168.2.2 255.255.255.0
#
return
<Huawei>display current-configuration interface Ethernet 0/0/1
#
interface Ethernet0/0/1
ip address 172.17.1.1 255.255.255.0
#
return
<Huawei>

  DeviceE配置如下:

<Huawei>display current-configuration configuration ospf
#
ospf 1
area 0.0.0.1
network 172.16.1.0 0.0.0.255
#
return
<Huawei>display current-configuration interface Ethernet 0/0/0
#
interface Ethernet0/0/0
ip address 172.16.1.2 255.255.255.0
#
return
<Huawei>

  DeviceF配置如下:

<Huawei>display current-configuration configuration ospf
#
ospf 1
area 0.0.0.2
network 172.17.1.0 0.0.0.255
#
return
<Huawei>
<Huawei>display current-configuration interface Ethernet 0/0/0
#
interface Ethernet0/0/0
ip address 172.17.1.2 255.255.255.0
#
return
<Huawei>
<Huawei>

3.验证网络是否打通:

  在 DeviceE 设备上ping 另一个边缘区域的DeviceF,并跟踪过程:

4.分别查看每个设备上的路由和ospf路由:

  DeviceA 的路由表和ospf 路由表:

DeviceB 的路由表和ospf 路由表:

  DeviceC 的路由表和ospf 路由表:

  DeviceD 的路由表和ospf 路由表:

  DeviceE 的路由表和ospf 路由表:

  DeviceF 的路由表和ospf 路由表:

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操的更多相关文章

  1. 动态选路、RIP协议&&OSPF协议详解

    动态选路.RIP协议&&OSPF协议详解 概念 当相邻路由器之间进行通信,以告知对方每个路由器当前所连接的网络,这时就出现了动态选路.路由器之间必须采用选路协议进行通信,这样的选路协议 ...

  2. 学习总结---OSPF协议

    总结: 1.ospf协议报文不会泛洪扩散,而是逐级路由器处理后,再从所有ospf启用端口发送出去,也就是说,只能从邻居接收到ospf报文,报文的源ip是邻居的ip地址,目的ip是组播ip. 2.开启o ...

  3. OSPF协议总结

    总结: 1.ospf协议报文不会泛洪扩散,而是逐级路由器处理后,再从所有ospf启用端口发送出去,也就是说,只能从邻居接收到ospf报文,报文的源ip是邻居的ip地址,目的ip是组播ip. 2.开启o ...

  4. 路由器配置——OSPF协议(2)

    一.实验目的:使用OSPF协议达到全网互通的效果 二.拓扑图 三.具体步骤配置 (1)R1路由器配置 Router>enableRouter#configure terminalEnter co ...

  5. 路由器配置——OSPF协议(1)

    一.实验目的:用OSPF协议使全网互通 二.拓扑图 三.具体步骤配置 (1)R1路由器配置 Router>enableRouter#configure terminalEnter configu ...

  6. 利用 VMWare 搭建随机拓扑网络

    这篇文章是计算机网络上机实验课的作业. 实验任务:利用 VMWare 搭建一个由 5 个主机组成的随机拓扑的网络.要求该网络中至少有 2 个子网,两个路由器 .实验的网络拓扑图如下: 网络中有两个路由 ...

  7. 静态路由、RIP、OSPF、BGP

      主要内容包含以下四点:(1)静态路由 (2)动态路由 (3)生成树 (4)VLAN 1.  什么是静态路由? 答:静态路由是管理人员手动配置和管理的路由 2.  静态路由由那些优点? 答:配置简单 ...

  8. H3C路由器配置——动态路由OSPF协议

    一.介绍 1.OSPF协议介绍 (1).OSPF(Open Shortest Path First,开放最短路径优先)路由协议是用于网际协议(IP)网络的链路状态路由协议.是一个被各厂商设备广泛支持的 ...

  9. eNSP——静态路由的基本配置

    原理: 静态路由是指用户或网络管理员手工配置的路由信息.当网络的拓扑结构或链路状态发生改变时,需要网络管理人员手工修改静态路由信息. 相比于动态路由协议,静态路由无需频繁地交换各自的路由表,配置简单, ...

  10. OSPF协议学习以及路由器配置

    OSPF协议学习以及路由器配置 1.实验任务 2,使用eNsp搭建网络拓扑 3.配置路由IP ps:要使用GE(3层口),2层口(E口)需要先配置Vlan才能配置IP地址 4.配置路由器R1的ospf ...

随机推荐

  1. Dev 使用RibbonForm打开多标签窗体,主窗体的Text显示一个

    最近在开发Dev的项目,一般我们主窗体上边只需要显示应用程序的名称就行了,不需要显示打开Tab页签的名称,百度了很久不知道怎么解决,官方文档只说,RibbonForm的标题是一个组合文本,由Ribbo ...

  2. Docker 中的 .NET 异常了怎么抓 Dump

    一:背景 1. 讲故事 有很多朋友跟我说,在 Windows 上看过你文章知道了怎么抓 Crash, CPU爆高,内存暴涨 等各种Dump,为什么你没有写在 Docker 中如何抓的相关文章呢?瞧不上 ...

  3. mybatis 部分符号需转译 及 IF如何正确判断单个数字字符

    mybatis 部分符号需转译 及 IF如何正确判断单个数字字符 1.Mybatis 转译字符如下下法即可: oracle中的日期查询在mybatis中写法可以参考如下:注意提交时间的<号是用特 ...

  4. 在无桌面系统的树莓派上运行QT GUI程序

    背景:需要做一个干净整洁一点的系统来运行一个QT GUI程序. 准备树莓派4B 树莓派的版本为Raspbian GNU/Linux 10 (buster),无桌面系统,制作系统盘的工具为:https: ...

  5. Day05_Java_作业

    A:看程序写结果(写出自己的分析理由),程序填空,改错,看程序写结果. 1.看程序写结果 class Demo { public static void main(String[] args) { i ...

  6. Swift函数调用方式浅析

    函数的调用机制   函数的调用机制是在函数调用时通过那种路径走到最终调用函数地址的机制. 在编程语言中,函数的调用机制有三种 1.静态调用:编译期就确定了函数内存地址,执行效率最高,还可以使用编译器优 ...

  7. Nginx配置Https缺少SSL模块(已解决)

    1.Linux下Nginx配置https nginx下载和安装此处就忽略,可自行百度 1.1.配置https 打开nginx配置文件 vim /usr/local/nginx/conf/nginx.c ...

  8. debezium之mysql配置

    实验环境 全部部署于本地虚拟机 1 mysql 参考 官方文档 和 根据官方示例镜像(debezium/example-mysql,mysql版本为8.0.32) 1.1 创建用户 官方镜像里一共有三 ...

  9. 【MAUI Blazor踩坑日记】3.Windows标题栏自定义颜色,运行时改变颜色

    目录 修改默认颜色 修改运行时颜色 效果图 MAUI中Windows默认的标题栏颜色是灰色的,有一点丑. 如果去掉默认的标题栏,自己画一个,可能会出现问题,也比较麻烦. 想要自定义默认标题栏的颜色,官 ...

  10. zabbix 中 net.if.out 值来源及persecond的计算

    使用脚本记录每秒的net.if.out值,与zabbix中的lastdata值做对比,发现对不上. #!/bin/bash dev=eth0 get_dev_net_speed() { dev_inf ...