锐捷配置nssa区域

一、实验拓扑


二、实验目的


在运行OSPF协议的网络中,配置NSSA区域可以减少路由器的路由条目,减小路由器的压力,有效提高路由器的性能。

三、实验配置


第一步:全局配置OSPF

R1

ruijie>enable

R1#conf terminal

R1(config)#hostname R1

R1(config)#interface gigabitEthernet 0/1

R1(config-if-GigabitEthernet 0/1)#no switchport

R1(config-if-GigabitEthernet 0/1)#ip address 10.1.1.1 255.255.255.0

R1(config-if-GigabitEthernet 0/1)#exit

R1(config)#interface loopback 1

R1(config-if-Loopback 1)#ip address 1.1.1.1 255.255.255.0

R1(config-if-Loopback 1)#exit

R1(config)#route ospf 10

R1(config-router)#router-id 1.1.1.1

R1(config-router)#network 10.1.1.1 0.0.0.0 area 1

R1(config-router)#exit

R1(config)#exit

R1#

R2

ruijie>enable

R2#conf terminal

R2(config)#hostname R2

R2(config)#interface gigabitEthernet 0/1

R2(config-if-GigabitEthernet 0/1)#no switchport

R2(config-if-GigabitEthernet 0/1)#ip address 10.1.1.2 255.255.255.0

R2(config-if-GigabitEthernet 0/1)#exit

R2(config)#interface gigabitEthernet 0/0

R2(config-if-GigabitEthernet 0/0)#no switchport

R2(config-if-GigabitEthernet 0/0)#ip address 10.2.2.1 255.255.255.0

R2(config-if-GigabitEthernet 0/0)#exit

R2(config)#interface loopback 1

R2(config-if-Loopback 1)#ip address 2.2.2.2 255.255.255.0

R2(config-if-Loopback 1)#exit

R2(config)#route ospf 10

R2(config-router)#router-id 2.2.2.2

R2(config-router)#network 10.1.1.2 0.0.0.0 area 1

R2(config-router)#network 10.2.2.1 0.0.0.0 area 0

R2(config-router)#exit

R2(config)#exit

R2#

R3

ruijie>enable

R3#conf terminal

R3(config)#hostname R3

R3(config)#interface gigabitEthernet 0/1

R3(config-if-GigabitEthernet 0/1)#no switchport

R3(config-if-GigabitEthernet 0/1)#ip address 10.3.3.1 255.255.255.0

R3(config-if-GigabitEthernet 0/1)#exit

R3(config)#interface gigabitEthernet 0/0

R3(config-if-GigabitEthernet 0/0)#no switchport

R3(config-if-GigabitEthernet 0/0)#ip address 10.2.2.2 255.255.255.0

R3(config-if-GigabitEthernet 0/0)#exit

R3(config)#interface loopback 1

R3(config-if-Loopback 1)#ip address 3.3.3.3 255.255.255.0

R3(config-if-Loopback 1)#exit

R3(config)#route ospf 10

R3(config-router)#router-id 3.3.3.3

R3(config-router)#network 10.3.3.1 0.0.0.0 area 2

R3(config-router)#network 10.2.2.2 0.0.0.0 area 0

R3(config-router)#exit

R3(config)#exit

R3#

R4

ruijie>enable

R4#conf terminal

R4(config)#hostname R4

R4(config)#interface gigabitEthernet 0/1

R4(config-if-GigabitEthernet 0/1)#no switchport

R4(config-if-GigabitEthernet 0/1)#ip address 10.3.3.2 255.255.255.0

R4(config-if-GigabitEthernet 0/1)#exit

R4(config)#interface loopback 1

R4(config-if-Loopback 1)#ip address 4.4.4.4 255.255.255.0

R4(config-if-Loopback 1)#exit

R4(config)#route ospf 10

R4(config-router)#router-id 4.4.4.4

R4(config-router)#network 10.3.3.2 0.0.0.0 area 0

R4(config-router)#exit

R4(config)#exit

R4#

第二步:将R3和R4连接的area 2区域配置为OSPF nssa模式

R3

R3(config)#route ospf 10

R3(config-router)#area 2 nssa default-information-originate

R3(config-router)#exit

R3(config)#route ospf 10

R4

R4(config)#route ospf 10

R4(config-router)#area 2 nssa default-information-originate

R4(config-router)#exit

R4(config)#route ospf 10

四、验证


在R4上查看路由表

相关推荐
kuroomi15 小时前
Docker 与容器基础
linux·运维·docker
_itgo21 小时前
意图识别落地方案
运维·docker·容器
mengge.cloud21 小时前
0909华为云计算类综合服务小白实验教程
linux·运维·服务器·网络·华为云·云计算
QYR-分析1 天前
蓝海赛道高速扩容!全球小型观察ROV市场格局、细分场景与发展趋势分析
大数据·运维·云计算
陈皮糖..1 天前
从零搭建一个简易 AI 运维问答机器人(RAG + LangChain + Streamlit)
运维·人工智能·ai·langchain·机器人
制造业的搬运工1 天前
AI服务器背板与传统背板差异:三大设计升级解析
运维·服务器·人工智能·科技·制造·pcb工艺
制冷技术咨询与服务1 天前
某纯电牵引车整车CAN网络
网络·汽车·can·某纯电牵引车整车can网络
zhengqweasd1 天前
Linux网络(一):服务器数据包从网卡到应用程序,完整收包流程详解
linux·服务器·网络
顶点多余1 天前
仿muduo库实现高并发服务器项目
运维·服务器
脚踏实地,坚持不懈!1 天前
Linux 6.18.7 内存分配与回收 —— 代码梳理
linux·运维·网络