OSPF实验
1.拓扑图
2.需求分析
先进行IP划分,再启动OSPF进行配置
3.步骤
R1
GigabitEthernet0/0/0 192.168.1.1/27 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 192.168.1.97/27 up up(s)
NULL0 unassigned up up(s)
[Huawei]ospf 1 router-id 1.1.1.1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.31
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.96 0.0.0.31
R2
GigabitEthernet0/0/0 192.168.1.2/27 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 192.168.1.129/27 up up(s)
NULL0 unassigned up up(s)
[Huawei]ospf 1 router-id 2.2.2.2
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.31
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.128 0.0.0.31
R3
GigabitEthernet0/0/0 192.168.1.3/27 up up
GigabitEthernet0/0/1 192.168.1.33/27 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
[Huawei]ospf 1 router-id 3.3.3.3
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.31
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.32 0.0.0.31
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 123456
R4
GigabitEthernet0/0/0 192.168.1.34/27 up up
GigabitEthernet0/0/1 192.168.1.65/27 up up
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
[Huawei]ospf 1 router-id 4.4.4.4
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.32 0.0.0.31
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.64 0.0.0.31
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode md5 1 cipher 123456
R5
GigabitEthernet0/0/0 192.168.1.66/27 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 192.168.1.129/25 up up(s)
NULL0 unassigned up up(s)
[Huawei]ospf 1 router-id 5.5.5.5
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.64 0.0.0.31
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
4.验证