ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

ospf伤筋动骨实验配置

2021-05-14 14:05:32  阅读:128  来源: 互联网

标签:r4 r5 area 0.0 实验 interface 伤筋动骨 ospf


在这里插入图片描述

配置路由地址:
R1:
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 1.1.1.1 24
[r1]interface s4/0/0
[r1-Serial4/0/0]ip address 12.1.1.1 24
R2:
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 2.2.2.2 24
[r2]interface s4/0/0
[r2-Serial4/0/0]ip address 12.1.1.2 24
[r2-Serial4/0/0]
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 123.1.1.2 24
R3:
[r3]interface LoopBack 0
[r3-LoopBack0]ip address 3.3.3.3 24
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip address 123.1.1.3 24
[r3]interface s4/0/0
[r3-Serial4/0/0]ip address 34.1.1.3 24
R4:
[r4]interface LoopBack 0
[r4-LoopBack0]ip address 4.4.4.4 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 address 45.1.1.4 24
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip address 123.1.1.4 24
R5:
[r5]interface LoopBack 0
[r5-LoopBack0]ip address 5.5.5.5 24
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ip address 123.1.1.5 24
[r5]interface s4/0/0
[r5-Serial4/0/0]ip address 45.1.1.5 24

Ospf路由配置:
R1:
[r1]ospf 1 router-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:
[r2]ospf 1 router-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.0.0.1]network 2.2.2.2 0.0.0.0
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 123.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 123.1.1.0 0.0.0.255
[r3-ospf-1]area 2
[r3-ospf-1-area-0.0.0.2]network 2.2.2.2 0.0.0.0
[r3-ospf-1-area-0.0.0.2]network 34.1.1.0 0.0.0.255
R4:
[r4]ospf 1 router-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 4.4.4.4 0.0.0.0
[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 45.1.1.0 0.0.0.255
R5:
[r5]ospf 1 router-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下方缺省:
[r5]ip route-static 0.0.0.0 0 LoopBack 0
[r5]ospf 1
[r5-ospf-1]default-route-advertise
或者:
[r5]ospf 1
[r5-ospf-1]default-route-advertise always

设置R2为DR,修改优先级:
R3:
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ospf dr-priority 0
R4:
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ospf dr-priority 0
R5:
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ospf dr-priority 0

R1-R2做接口认证:
R1:
[r1]interface s4/0/0
[r1-Serial4/0/0]ospf authentication-mode simple huawei
R2:
[r2]interface s4/0/0
[r2-Serial4/0/0]ospf authentication-mode simple huawei
区域2做认证:
R3:
[r3]ospf 1
[r3-ospf-1]area 2
[r3-ospf-1-area-0.0.0.2]authentication-mode simple huawei
R4:
[r4]ospf 1
[r4-ospf-1]area 2
[r4-ospf-1-area-0.0.0.2]authentication-mode simple huawei
R5:
[r5]ospf 1
[r5-ospf-1]area 2
[r5-ospf-1-area-0.0.0.2]authentication-mode simple huawei

加快收敛速度:
R1:
[r1]interface s4/0/0
[r1-Serial4/0/0]ospf timer hello 5
R2:
[r2]interface s4/0/0
[r2-Serial4/0/0]ospf timer hello 5
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ospf timer hello 5
R3:
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ospf timer hello 5
[r3]interface s4/0/0
[r3-Serial4/0/0]ospf timer hello 5
R4:
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ospf timer hello 5
[r4]interface s4/0/0
[r4-Serial4/0/0]ospf timer hello 5
[r4]interface s4/0/1
[r4-Serial4/0/1]ospf timer hello 5
R5:
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ospf timer hello 5
[r5]interface s4/0/0
[r5-Serial4/0/0]ospf timer hello 5

给所有路由器修改参考带宽:
ospf 1
bandwidth-reference 10000

标签:r4,r5,area,0.0,实验,interface,伤筋动骨,ospf
来源: https://blog.51cto.com/u_15200479/2775382

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有