欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

OSP单区域通信(骨干区域)

程序员文章站 2022-04-01 23:31:05
第一步设置IP地址R1undo terminal monitor[Huawei]user-interface console 0[Huawei-ui-console0]idle-timeout 0 0[Huawei]sysname R1[R1]int g0/0/0[R1-GigabitEthernet0/0/0]ip address 12.1.1.1 24[R1]interface LoopBack 0[R1-LoopBack0]ip address 1.1.1.1 32R2undo....

OSP单区域通信(骨干区域)
第一步设置IP地址

R1
undo terminal monitor
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei]sysname R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 1.1.1.1 32

R2

undo terminal monitor
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei]sysname R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip address 20.1.1.1 24
[R2]int LoopBack 0
[R2-LoopBack0]ip address 2.2.2.2 23

R3

undo terminal monitor
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei]sysname R3
[R2]int g0/0/0
[R3-GigabitEthernet0/0/0]ip address 20.1.1.2 24
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 3.3.3.3 32

R4

undo terminal monitor
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei]sysname R4
[R2]int g0/0/0
[R4-GigabitEthernet0/0/0]ip address 20.1.1.3 24
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ip address 45.1.1.1 24
[R4]int LoopBack 0
[R4-LoopBack0]ip address 4.4.4.4 32

R5

undo terminal monitor
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0 0
[Huawei]sysname R5
[R2]int g0/0/0
[R5-GigabitEthernet0/0/0]ip address 45.1.1.2 24
[R5]int LoopBack 0
[R5-LoopBack0]ip address 5.5.5.5 32

第二部配置OSPF路由协议

R1

[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255

R2

[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255

R3

[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255

R4

[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]network 45.1.1.0 0.0.0.255

R5

[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1-area-0.0.0.0]network 45.1.1.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0
OSP单区域通信(骨干区域)
使R2的 G0/0/0口为DR
[R2-GigabitEthernet0/0/0]ospf dr-priority 2
reset ospf process 清除OSPF缓存表
Warning: The OSPF process will be reset. Continue? [Y/N]:y

reset ospf process 清除OSPF缓存表
Warning: The OSPF process will be reset. Continue? [Y/N]:y
OSP单区域通信(骨干区域)
OSP单区域通信(骨干区域)
如果想学习骨干区和非骨干区通信下面有参考链接
https://blog.csdn.net/weixin_49226813/article/details/107822566

本文地址:https://blog.csdn.net/weixin_49226813/article/details/107748222