华为路由器OSPF配置实例
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
OSPF上机-1
拓扑图
1、组网和区域划分如上图所示。
2.在S3526-1、AR28-1、AR28-2、S3526-2的互联接口上启用ospf路由协议;并且在每台三层设备上引入直联路由,直联路由引入按照默认的type 2类型,
R1
Info: Current terminal monitor is off.
Enter system view, return user view with Ctrl+Z.
[Huawei]int e0/0/0
[Huawei-Ethernet0/0/0]ip add 172.16.0.1 24
[Huawei-Ethernet0/0/0]int e
[Huawei-Ethernet0/0/0]int
[Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.0.5 30 [Huawei-Ethernet0/0/1]qui
[Huawei]inter
[Huawei]interface loopback 0
[Huawei-LoopBack0]ip add 1.1.1.1 32
[Huawei-LoopBack0]qui
[Huawei]router id 1.1.1.1
[Huawei]ospf
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.0.4 0.0.0.3 [Huawei-ospf-1-area-0.0.0.1]qui
[Huawei-ospf-1]import-route direct
[Huawei-ospf-1]silent-interface loopback 0 [Huawei-ospf-1]
R2
Info: Current terminal monitor is off.
Enter system view, return user view with Ctrl+Z. [Huawei]interface Ethernet0/0/0
[Huawei-Ethernet0/0/0]ip add 192.168.0.6 30
[Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.0.1 30
[Huawei-Ethernet0/0/1]qui
[Huawei]inter loopback 0
[Huawei-LoopBack0]ip add 1.1.1.2 32
[Huawei]router id 1.1.1.2
[Huawei]ospf
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.0.0 0.0.0.3
[Huawei-ospf-1-area-0.0.0.0]network 1.1.1.2 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]qui
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 192.168.0.4 0.0.0.3
[Huawei-ospf-1-area-0.0.0.1]qui
[Huawei-ospf-1]
R3
Info: Current terminal monitor is off.
Enter system view, return user view with Ctrl+Z.
[Huawei-Ethernet0/0/0]ip add 192.168.0.2 30 [Huawei-Ethernet0/0/0]int e0/0/1
[Huawei-Ethernet0/0/1]ip add 192.168.0.9 30 [Huawei-Ethernet0/0/1]qui
[Huawei]inter loop 0
[Huawei-LoopBack0]ip add 1.1.1.3 32
[Huawei-LoopBack0]qui
[Huawei]router id 1.1.1.3
[Huawei]ospf
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 192.168.0.0 0.0.0.3 [Huawei-ospf-1-area-0.0.0.0]network 1.1.1.3 0.0.0.0 [Huawei-ospf-1-area-0.0.0.0]qui
[Huawei-ospf-1]area 2
[Huawei-ospf-1-area-0.0.0.2]network 192.168.0.8 0.0.0.3
R4
Info: Current terminal monitor is off.
Enter system view, return user view with Ctrl+Z.