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

首页 > 实用技巧 > 作者:YD1662023-06-27 02:27:43

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

AR5

<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 1 [Huawei-ospf-1-area-0.0.0.1]netw [Huawei-ospf-1-area-0.0.0.1]network 10.0.15.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.1]net [Huawei-ospf-1-area-0.0.0.1]network 10.0.35.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.1] [Huawei-ospf-1-area-0.0.0.1]netw [Huawei-ospf-1-area-0.0.0.1]network 10.0.1.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.1] [Huawei-ospf-1-area-0.0.0.1]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、配置边界路由器

在边界路由AR1和AR3上创建并进入区域1 视图,并对与AR5 相连接的接口进行通告

AR1

<Huawei> <Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei] [Huawei]ops [Huawei]os [Huawei]ospf 1 [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]netw [Huawei-ospf-1-area-0.0.0.1]network 10.0.15.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.1]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]os [Huawei]ospf 1 [Huawei-ospf-1]are [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]netw [Huawei-ospf-1-area-0.0.0.1]network 10.0.35.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.1]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>

查看AR5路由器通过OSPF学习到邻居状态

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

可以看到,现在AR5 与 AR1和A R3 的OSPF邻居关系建立正常,都为full状态。

查看AR5路由表中的路由条目

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

可以观察到,除了OSPF区域2内的路由之外,其他相关的OSPF路由条目已经获取到了。在该拓扑中,R1和R3这两台连接不同区域的路由器被称为ABR(Area Border Router),也就是区域边界路由器。ABR具备同时属于两个或多个区域的能力,但其中至少一个端口必须位于骨干区域内。ABR的作用是连接骨干区域和非骨干区域,这种连接可以是物理上的链路,也可以是逻辑上的关联。

查看R5的OSPF链路状态数据库信息

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

同理对 非骨干区域B 的路由器AR6和相应的边界路由器AR2和AR4进行配置

AR6

<Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]osp [Huawei]ospf 1 [Huawei-ospf-1]area 2 [Huawei-ospf-1-area-0.0.0.2]netw [Huawei-ospf-1-area-0.0.0.2]network 10.0.26.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.2]net [Huawei-ospf-1-area-0.0.0.2]network 10.0.46.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.2]netw [Huawei-ospf-1-area-0.0.0.2]network 10.0.2.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.2] [Huawei-ospf-1-area-0.0.0.2] [Huawei-ospf-1-area-0.0.0.2]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>sys Enter system view, return user view with Ctrl Z. [Huawei]os [Huawei]ospf 1 [Huawei-ospf-1]are [Huawei-ospf-1]area 2 [Huawei-ospf-1-area-0.0.0.2]net [Huawei-ospf-1-area-0.0.0.2]network 10.0.26.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.2] [Huawei-ospf-1-area-0.0.0.2]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> <Huawei>

AR4

<Huawei>sys Enter system view, return user view with Ctrl Z. [Huawei]os [Huawei]ospf 1 [Huawei-ospf-1]are [Huawei-ospf-1]area 2 [Huawei-ospf-1-area-0.0.0.2]netw [Huawei-ospf-1-area-0.0.0.2]network 10.0.46.0 0.0.0.255 [Huawei-ospf-1-area-0.0.0.2] [Huawei-ospf-1-area-0.0.0.2]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>

查看AR6的OSPF路由条目

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

上一页123下一页

栏目热文

文档排行

本站推荐

Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.