当前位置:首页 > 实用技巧 >

动态路由的详细说明(动态路由是怎么生成的)

来源:原点资讯(www.yd166.com)时间:2023-06-27 02:27:43作者:YD166手机阅读>>

在上一篇文章《华为路由器实验演示:如何配置和使用动态路由协议OSPF》中,整理了关于ospf 的单区域配置,本文将对ospf 的多区域进行配置,有需要的友友可以参考下。

本实验配置思路:


1、基本配置(路由器和PC主机的ip地址)

2、配置骨干区域路由器ospf

3、配置非骨干区域路由器ospf

4、配置边界路由器 ospf

5、测试连通性

网络拓扑:


动态路由的详细说明,动态路由是怎么生成的(1)

详细配置如下:


1、基本配置

AR1

The device is running! <Huawei> <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]undo inf [Huawei]undo info-center en Info: Information center is disabled. [Huawei]int [Huawei]interface gi [Huawei]interface GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add [Huawei-GigabitEthernet0/0/0]ip address 10.0.12.1 24 [Huawei-GigabitEthernet0/0/0]int gi 0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 10.0.13.1 24 [Huawei-GigabitEthernet0/0/1]int gi 0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.0.15.1 24 [Huawei-GigabitEthernet0/0/2]q [Huawei] [Huawei]

AR2

The device is running! <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]undo inf [Huawei]undo info-center en Info: Information center is disabled. [Huawei]in gi [Huawei]int [Huawei]interface gi [Huawei]interface GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.0.12.2 24 [Huawei-GigabitEthernet0/0/0]int [Huawei-GigabitEthernet0/0/0]int gi [Huawei-GigabitEthernet0/0/0]int gi 0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 10.0.24.2 24 [Huawei-GigabitEthernet0/0/1]int gi 0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.0.26.2 24 [Huawei-GigabitEthernet0/0/2]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>

AR3

The device is running! <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]undo in [Huawei]undo info-center en Info: Information center is disabled. [Huawei] [Huawei] [Huawei]int gi [Huawei]int GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.0.34.3 24 [Huawei-GigabitEthernet0/0/0]int gi 0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 10.0.13.3 24 [Huawei-GigabitEthernet0/0/1]int gi 0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.0.35.3 24 [Huawei-GigabitEthernet0/0/2]int gi 4/0/0 [Huawei-GigabitEthernet4/0/0]ip add 10.0.3.254 24 [Huawei-GigabitEthernet4/0/0]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>

AR4

The device is running! <Huawei> <Huawei>SYS Enter system view, return user view with Ctrl Z. [Huawei]undo inf [Huawei]undo info-center en Info: Information center is disabled. [Huawei] [Huawei]int gi [Huawei]int GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.0.34.4 24 [Huawei-GigabitEthernet0/0/0]int gi 0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 10.0.24.4 24 [Huawei-GigabitEthernet0/0/1]int gi 0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.0.46.4 24 [Huawei-GigabitEthernet0/0/2]int et [Huawei-GigabitEthernet0/0/2]int eth 4/0/0 [Huawei-Ethernet4/0/0]ip add 10.0.4.254 24 [Huawei-Ethernet4/0/0]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>

AR5

The device is running! <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]undo inf [Huawei]undo info-center en Info: Information center is disabled. [Huawei] [Huawei]int [Huawei]interface gi [Huawei]interface GigabitEthernet 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.0.15.5 24 [Huawei-GigabitEthernet0/0/0]int gi 0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 10.0.35.5 24 [Huawei-GigabitEthernet0/0/1]int gi 0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.0.1.254 24 [Huawei-GigabitEthernet0/0/2] [Huawei-GigabitEthernet0/0/2]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>

动态路由的详细说明,动态路由是怎么生成的(2)

AR6

The device is running! <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]undo inf [Huawei]undo info-center en Info: Information center is disabled. [Huawei]int gi 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 10.0.26.6 24 [Huawei-GigabitEthernet0/0/0]int gi 0/0/1 [Huawei-GigabitEthernet0/0/1]ip add 10.0.46.6 24 [Huawei-GigabitEthernet0/0/1]int gi 0/0/2 [Huawei-GigabitEthernet0/0/2]ip add 10.0.2.254 24 [Huawei-GigabitEthernet0/0/2] [Huawei-GigabitEthernet0/0/2]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>

测试各直连的连通性

动态路由的详细说明,动态路由是怎么生成的(3)

2、骨干区域路由器配置

AR1

<Huawei> <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]ospf 1 [Huawei-ospf-1]area [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]net [Huawei-ospf-1-area-0.0.0.0]network [Huawei-ospf-1-area-0.0.0.0]network 10.0.12.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]netw [Huawei-ospf-1-area-0.0.0.0]network 10.0.13.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei> <Huawei>

AR2

<Huawei> <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]osp [Huawei]ospf 1 [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]netw [Huawei-ospf-1-area-0.0.0.0]network 10.0.12.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]ntet [Huawei-ospf-1-area-0.0.0.0]net [Huawei-ospf-1-area-0.0.0.0]network 10.0.24.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0] [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei> <Huawei>

AR3

<Huawei> <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]osp [Huawei]ospf 1 [Huawei-ospf-1]are [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]netw [Huawei-ospf-1-area-0.0.0.0]network 10.0.13.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]net [Huawei-ospf-1-area-0.0.0.0]network 10.0.34.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]netw [Huawei-ospf-1-area-0.0.0.0]network 10.0.3.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>

AR4

<Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]osp [Huawei]ospf 1 [Huawei-ospf-1]are [Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]netw [Huawei-ospf-1-area-0.0.0.0]network 10.0.24.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]netw [Huawei-ospf-1-area-0.0.0.0]network 10.0.34.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0]netw [Huawei-ospf-1-area-0.0.0.0]network 10.0.4.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.0] [Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]q [Huawei]q <Huawei>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:y It will take several minutes to save configuration file, please wait....... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>

测试

测试骨干区域的两台主机间的连通性

动态路由的详细说明,动态路由是怎么生成的(4)

首页 123下一页

栏目热文

动态路由简介(动态路由有哪些)

动态路由简介(动态路由有哪些)

路由协议是路由(三层)之间信息交互的一种语言,它共享网络状态和网络可达信息,定义了路由之间通信时的使用规则,维护路由表提...

2023-06-27 02:09:35查看全文 >>

动态路由可以嵌套动态路由吗(怎么既有静态路由又有动态路由)

动态路由可以嵌套动态路由吗(怎么既有静态路由又有动态路由)

前言:在前一篇文章中,我们说了怎样开发动态路由和动态菜单,但是之前的项目缺乏对嵌套路由的一个支持。嵌套路由是路由中提供了...

2023-06-27 02:32:43查看全文 >>

动态路由能自动获取吗(路由器静态和自动获取哪个好)

动态路由能自动获取吗(路由器静态和自动获取哪个好)

硬货分享:路由信息获取方式有哪些(3)?路由信息获取方式有哪些?动态路由就不需要人工去添加路由。动态路由是什么?动态路由...

2023-06-27 01:58:18查看全文 >>

举例说明如何实现动态路由

举例说明如何实现动态路由

动态路由是一个常用的功能,根据后台返回的路由json表,前端动态显示可跳转的路由项,下面来讲解一下具体的实现方式:大致业...

2023-06-27 02:41:55查看全文 >>

coc跑团完结合集(coc跑团有哪些)

coc跑团完结合集(coc跑团有哪些)

大家好,这里是宅胖看书,今天给大家介绍的是克苏鲁元素的诸天无限流小说。本来是想搞个克苏鲁大合集的,但是数量太多,只能一个...

2023-06-27 02:22:34查看全文 >>

静态路由加动态路由(静态路由怎么ping动态路由)

静态路由加动态路由(静态路由怎么ping动态路由)

我是把静态路由跟动态路由连在一起来做的一,静态路由的配置 1,首先,先给上图中ar7,ar8 ,ar9分配IP地址,命令...

2023-06-27 02:24:57查看全文 >>

怎么做静态路由(路由器怎么配置静态路由)

怎么做静态路由(路由器怎么配置静态路由)

弱电学习圈VIP群已经建立,欢迎大家进群后讨论技术问题,设计方案,投标、施工,工程合作,产品对接等方面,都可以。其中VI...

2023-06-27 02:45:55查看全文 >>

浮动动态路由如何实现

浮动动态路由如何实现

一、浮动路由1、浮动路由指的是配置两条静态路由,默认选取链路质量优(带宽大的)作为主路径,当主路径出现故障时,由带宽较小...

2023-06-27 02:26:06查看全文 >>

定义动态路由获取动态参数(动态路由配置详细教程不用打代码)

定义动态路由获取动态参数(动态路由配置详细教程不用打代码)

我们经常需要把某种模式匹配到的所有路由,全都映射到同个组件,例如,我们有一个 User组件,对于所有 ID 各不相同的用...

2023-06-27 02:33:57查看全文 >>

动态路由代码(动态路由是怎么生成的)

动态路由代码(动态路由是怎么生成的)

最近做一个新项目,用到了Gateway考虑到之后开发环境的的路由和线上的肯定不一致,而且后续可能会涉及到修改和新增路由信...

2023-06-27 01:58:15查看全文 >>

文档排行