首页 > 其他分享 >使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操

时间:2023-11-17 15:06:12浏览次数:30  
标签:ensp 0.0 192.168 实操 interface return configuration ospf


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

                          

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_路由表

数据准备

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

设备

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,并跟踪过程:

                    

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_路由表_02

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

  DeviceA 的路由表和ospf 路由表:

                   

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_路由表_03

   DeviceB 的路由表和ospf 路由表:

                   

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_Ethernet_04

   DeviceC 的路由表和ospf 路由表:

                     

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_路由表_05

   DeviceD 的路由表和ospf 路由表:

                     

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_Ethernet_06

   DeviceE 的路由表和ospf 路由表:

                  

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_数据_07

   DeviceF 的路由表和ospf 路由表:

                   

使用ensp搭建路由拓扑,并使用ospf协议实现网络互通实操_路由表_08

 



标签:ensp,0.0,192.168,实操,interface,return,configuration,ospf
From: https://blog.51cto.com/u_15535797/8447573

相关文章

  • 无法安装ensp ?各种报错解决方案(virtualbox无法运行,启动AR失败,错误代码40等)
    安装eNSP。发现软件中路由器无法启动。VirtualBox是华为eNSP使用的必须运行环境,它提供虚拟网卡设备作为服务器为软件提供运行环境。1.提示出现VirtualBoxOracle无法在此项目运行。我根据百度上的方法,重新还原系统。无果。之前计算机中安装VirtualBox版本为6.0,重新下载了5.3版本的......
  • 职场小白必备知识点-RIP&OSPF​路由协议
    路由简介作为网络工程师,你需要为某园区规划网络,预计有路由器若干,网络拓扑如下:规划网络之前,我们先来了解一下路由的相关知识。什么是路由所谓的路由,通俗来说就是路由器后台里,一张由目的地址、子网掩码、下一跳构成的表;它的作用是告知路由器需要如何处理收到的数据包;比如,路由器收到......
  • 【运维实操】TIDB v6.1.1:全量备份、全量恢复和增量备份方法解析
    作者:Fly-bird背景:由于公司要求必须保证数据库的数据安全,我们生产环境的数据库采取全量备份+增量备份+实时同步从库的方式保证数据库的高可用,本文介绍我公司生产环境的数据库备份方式。注意:我们使用实时同步数据到从库的方式保障高可用(使用pump+drainer),同时支持恢复任意时刻数据的......
  • Ospf 认证:
    1、区域认证:区域内所有的接口在区域内配置:area0                       authentication-modesimplexx2、接口认证:只影响当前的接口:intg0/0/0                                                ospf......
  • ospf 聚合,黑洞,虚连接
    聚合:作用:减少核心骨干的路由条目:提升骨干稳定性1、ABR聚合:对象通过network宣告到OSPF的AS内 优先级为10的路由配置:在ABR上配置,聚合哪个区域就在哪个区域里配,abr-summaryx.x.x.x x.x.x.x2、ASBR聚合:对象是通过import引入到ospf的AS外优先级150的路由配置:在ASBR上配置,在OSPF进......
  • 关于OSPF
    作用范围分类(AS)①IGPs(内部网关协议):RIP OSPF  ISIS                                                       只能通过network宣告自己的网段                                  ......
  • 华为eNsp安装常见报错汇总
    一、eNsp路由器AR一直出现###的问题【厦门微思网络】始于2002年,专注IT培训打开控制面板–系统与安全–防火墙,点击我圈地来的地方点击更改设置勾选名称为eNSP有关的专用一列方框,然后点击确认!然后重启ensp,打开有型号的router点击开启,就会发现好了二、启动AR时,如果提示“启动设备AR失......
  • Dijkstra, RIP, OSPF:OSPF算法
    RoutingInformationProtocol(RIP):Adistancevectorprotocolthatuseshopcountasitsmetrictodeterminethebestpathforroutingpackets.OpenShortestPathFirst(OSPF):Alinkstateprotocolthatcalculatesroutesbasedontheshortestpathalgor......
  • Dijkstra, RIP, OSPF:RIP算法
    这部分参考王道bilibili视频:https://www.bilibili.com/video/BV19E411D78Q?p=56&vd_source=63764dd9776224d187bddddb05bf9f3f 例题-1:R6、R4相邻,如左图所示。现在R4的路由表更新为右上表,现在让你写出R6更新后的路由表。  例题-2:这道题中向量6个元素分别代表某个路......
  • OSPF高级配置
    路由重分发从一个AS学习路由,然后向另一个AS广播的路由器上进行配置。路由重分发的考虑①度量值②管理距离重分发到OSPF域中路由的路径类型①类型1的外部路径(E1)②类型2的外部路径(E2)NSSANSSA:非纯末梢区域NSSA非纯末梢区域配置命令配置命令:Router(config-router)#area  area-id  n......