首先配IP
【R1】interface s4/0/0
[R1-serial4/0/0]ip address 12.1.1.1 24
[R1]interface loopback 1.1.1.1 24
[R2】interface s4/0/0
[R2-serial4/0/0]ip address 12.1.1.2 24
【R2】interface g0/0/0
[R2]IP address 123.1.1.2 24
[R2]interface loopback 2.2.2.2 24
[R3】interface s4/0/0
[R3-serial4/0/0]ip address 34.1.1.3 24
【R3】interface g0/0/0
[R3]IP address 123.1.1.3 24
[R3]interface loopback 3.3.3.3 24
[R4】interface s4/0/0
[R4-serial4/0/0]ip address 34.1.1.4 24
[R4】interface s4/0/1
[R4-serial4/0/1]ip address45.1.1.4 24
【R4】interface g0/0/0
[R4]IP address 123.1.1.4 24
[R4]interface loopback 4.4.4.4 24
[R5】interface s4/0/0
[R5-serial4/0/0]ip address 45.1.1.5 24
【R5】interface g0/0/0
[R5]IP address 123.1.1.5 24
[R5]interface loopback 5.5.5.5 24
之后
[R1]ospf 1router-id 1.1.1.1
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.1]network 12.1.1.0 0.0.0.255
[R2]ospf 1router-id 2.2.2.2
[R2-ospf-1]area 1
[R2-ospf-1-area-0.0.0.1]network 12.1.1.0 0.0.0.255
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[R3]ospf 1router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 123.1.1.0 0.0.0.255
[R3-ospf-1]area 2
[R3-ospf-1-area-0.0.0.2]network 34.1.1.0 0.0.0.255
[R3-ospf-1-area-0.0.0.2]network 3.3.3.3 0.0.0.0
[R4]ospf 1router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 123.1.1.0 0.0.0.255
[R4-ospf-1]area 2
[R4-ospf-1-area-0.0.0.2]network 34.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.2]network 4.4.4.4 0.0.0.0
[R5]ospf 1router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 123.1.1.0 0.0.0.255
[R5-ospf-1]area 2
[R5-ospf-1-area-0.0.0.2]network 45.1.1.0 0.0.0.255
然后
[R5]ip route-static 0.0.0.0 loopback0
[R5]default-route-advertise
全部输入reset ospf process
[R3-GigabitEthernet 0/0/0]ospf dr-priority 0
[R4-GigabitEthernet 0/0/0]ospf dr-priority 0
[R5-GigabitEthernet 0/0/0]ospf dr-priority 0
区域认证
[R3]ospf 1
[R3-ospf-1]area 2
[R3-ospf-1-area-0.0.0.2]authentication-mode simple huawei
[R4]ospf 1
[R4-ospf-1]area 2
[R4-ospf-1-area-0.0.0.2]authentication-mode simple huawei
[R5]ospf 1
[R5-ospf-1]area 2
[R5-ospf-1-area-0.0.0.2]authentication-mode simple huawei
接口认证
【R1】interface s4/0/0
[R1-serial4/0/0]ospf authentication-mode simple huawei
【R2】interface s4/0/0
[R2-serial4/0/0]ospf authentication-mode simple huawei
加快收敛速度
【R1】interface s4/0/0
[R1-serial4/0/0]ospf timer hello 5
【R2】interface s4/0/0
[R2-serial4/0/0]ospf timer hello 5
【R3】interface s4/0/0
[R3-serial4/0/0]ospf timer hello 5
2021-01-20
最新推荐文章于 2023-01-09 14:23:37 发布