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

只愿长相守 提交于 2020-08-04 10:11:17

在这里插入图片描述
第一步设置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
在这里插入图片描述
使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
在这里插入图片描述
在这里插入图片描述


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!