锐捷配置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上查看路由表

相关推荐
wanhengidc3 分钟前
云手机的硬件依赖性如何?
运维·服务器·智能手机·云计算
piaoroumi8 分钟前
UVC调试
linux·运维·前端
VekiSon14 分钟前
Linux系统编程——标准IO
linux·运维·服务器
kaikaile199521 分钟前
LDPC编解码与未编码信息的误码率比较
网络
爱吃土豆的马铃薯ㅤㅤㅤㅤㅤㅤㅤㅤㅤ39 分钟前
aspect实现请求校验,但是WebSocket 端点类不能被 AOP 代理解决方案
网络·websocket·网络协议
Evan芙1 小时前
DNS服务器类型,解析答案,正反解析域,资源记录定义总结
运维·服务器
wanhengidc1 小时前
巨椰 云手机办公便利性高
运维·服务器·安全·智能手机·云计算
数字护盾(和中)1 小时前
从边界突破到物理破坏:APT 工控攻击链路与防御闭环
网络
Saniffer_SH1 小时前
【每日一题】PCIe答疑 - 接大量 GPU 时主板不认设备或无法启动和MMIO的可能关系?
运维·服务器·网络·人工智能·驱动开发·fpga开发·硬件工程
大白的编程日记.1 小时前
【计算网络学习笔记】Socket编程UDP实现简单聊天室
网络·笔记·学习