华为OSPF多区域+路由重发布/路由引入
发布日期:2021-05-07 22:54:34 浏览次数:35 分类:精选文章

本文共 1794 字,大约阅读时间需要 5 分钟。

华为OSPF多区域+路由重发布/路由引入

废话多不多上拓扑

拓扑

在这里插入图片描述

先根据拓扑配置好IP地址

AR1

interface GigabitEthernet0/0/0

ip address 10.1.1.1 255.255.255.0

interface GigabitEthernet0/0/1

ip address 14.1.1.1 255.255.255.0

interface LoopBack0

ip address 1.1.1.1 255.255.255.0

ospf 100 router-id 1.1.1.1

area 0.0.0.0

network 1.1.1.1 0.0.0.0

network 10.1.1.1 0.0.0.0

area 0.0.0.1

network 14.1.1.1 0.0.0.0

AR2

interface GigabitEthernet0/0/0

ip address 10.1.1.2 255.255.255.0

interface GigabitEthernet0/0/1

ip address 25.1.1.2 255.255.255.0

interface LoopBack0

ip address 2.2.2.2 255.255.255.0

ospf 100 router-id 2.2.2.2

area 0.0.0.0

network 2.2.2.2 0.0.0.0

network 10.1.1.2 0.0.0.0

area 0.0.0.2

network 25.1.1.2 0.0.0.0

AR3

interface GigabitEthernet0/0/0

ip address 10.1.1.3 255.255.255.0

interface LoopBack0

ip address 3.3.3.3 255.255.255.0

ospf 100 router-id 3.3.3.3

area 0.0.0.0

network 3.3.3.3 0.0.0.0

network 10.1.1.3 0.0.0.0

AR4

interface GigabitEthernet0/0/1

ip address 14.1.1.4 255.255.255.0

interface LoopBack0

ip address 4.4.4.4 255.255.255.0

ospf 100 router-id 4.4.4.4

area 0.0.0.1

network 4.4.4.4 0.0.0.0

network 14.1.1.4 0.0.0.0

AR5

interface GigabitEthernet0/0/0

ip address 56.1.1.5 255.255.255.0

interface GigabitEthernet0/0/1

ip address 25.1.1.5 255.255.255.0

interface LoopBack0

ip address 5.5.5.5 255.255.255.0

ospf 100 router-id 5.5.5.5

import-route rip 100

area 0.0.0.2

network 5.5.5.5 0.0.0.0

network 25.1.1.5 0.0.0.0

rip 100

undo summary

version 2
network 56.0.0.0
import-route ospf 100

AR6

interface GigabitEthernet0/0/0

ip address 56.1.1.6 255.255.255.0

interface LoopBack0

ip address 6.6.6.6 255.255.255.0

rip 100

undo summary

version 2
network 56.0.0.0
network 6.0.0.0

通过display ospf lsdb查看LSA信息

通过display ospf routing查看ospf路由
通过display ip routing-table查看路由信息
通过ping 检查连通性
就这样 拜拜 不知道什么是LSA得 可以查阅我得另一篇博文,OSPF1-5类LSA

上一篇:路由汇总与路由聚合的区别
下一篇:OSPF1-5类LSA

发表评论

最新留言

表示我来过!
[***.240.166.169]2025年03月26日 04时48分20秒