实验要求:
1.按图配置ospf区域
2.area1配置成stub区域,area3配置为nssa区域
3.R6配置静默接口,R7做路由汇总
[R1]int g0/0/0 [R1-GigabitEthernet0/0/0]ip add 10.0.0.1 24 [R1]int LoopBack 0 [R1-LoopBack0]ip add 1.1.1.1 32 [R1]ospf 1 router-id 1.1.1.1 [R1-ospf-1]area 1 [R1-ospf-1-area-0.0.0.1]network 10.0.0.0 0.0.0.255 [R1-ospf-1-area-0.0.0.1]network 1.1.1.1 0.0.0.0 [R1]ospf [R1-ospf-1]import-route direct [R1-ospf-1]stub 配置stub区域 [R2]int g0/0/0 [R2-GigabitEthernet0/0/0]ip add 10.0.0.2 24 [R2-GigabitEthernet0/0/0]int g0/0/1 [R2-GigabitEthernet0/0/1]ip add 23.0.0.1 24 [R2-GigabitEthernet0/0/1]int g0/0/2 [R2-GigabitEthernet0/0/2]ip add 70.0.0.2 24 [R2]ospf 1 router-id 2.2.2.2 [R2-ospf-1]area 1 [R2-ospf-1-area-0.0.0.1]network 10.0.0.0 0.0.0.255 [R2-ospf-1-area-0.0.0.1]area 4 [R2-ospf-1-area-0.0.0.4]network 70.0.0.0 0.0.0.255 [R2-ospf-1-area-0.0.0.4]area 0 [R2-ospf-1-area-0.0.0.0]network 23.0.0.0 0.0.0.255 [R2]ospf [R2-ospf-1]stub 配置stub区域 [R3]int g0/0/0 [R3-GigabitEthernet0/0/0]ip add 23.0.0.2 24 [R3-GigabitEthernet0/0/0]int g0/0/1 [R3-GigabitEthernet0/0/1]ip add 40.0.0.1 24 [R3]ospf 1 router-id 3.3.3.3 [R3-ospf-1]area 0 [R3-ospf-1-area-0.0.0.0]network 23.0.0.0 0.0.0.255 [R3-ospf-1-area-0.0.0.0]area 2 [R3-ospf-1-area-0.0.0.2]network 40.0.0.0 0.0.0.255 [R3-ospf-1-area-0.0.0.2]vlink-peer 4.4.4.4 配置虚连接 [R4-GigabitEthernet0/0/0]IP ADD 40.0.0.2 24 [R4-GigabitEthernet0/0/0]INT G0/0/1 [R4-GigabitEthernet0/0/1]IP ADD 50.0.0.1 24 [R4]ospf 1 router-id 4.4.4.4 [R4-ospf-1]area 3 [R4-ospf-1-area-0.0.0.3]network 50.0.0.0 0.0.0.255 [R4-ospf-1-area-0.0.0.3]area 2 [R4-ospf-1-area-0.0.0.2]network 40.0.0.0 0.0.0.255 [R4-ospf-1-area-0.0.0.2]vlink-peer 3.3.3.3 配置虚连接 [R5]int g0/0/0 [R5-GigabitEthernet0/0/0]ip add 50.0.0.2 24 [R5-GigabitEthernet0/0/0]int g0/0/1 [R5-GigabitEthernet0/0/1]ip add 100.0.0.1 24 [R5]ospf 1 router-id 5.5.5.5 [R5-ospf-1]area 3 [R5-ospf-1-area-0.0.0.3]network 50.0.0.0 0.0.0.255 [R5-ospf-1-area-0.0.0.3]rip 1 [R5-rip-1]version 2 [R5-rip-1]network 100.0.0.0 [R5]ospf 1 [R5-ospf-1]import-route rip 1 type 2 cost 1 ospf和rip互相注入 [R5-ospf-1]rip 1 [R5-rip-1]import-route ospf 1 [R6]int g0/0/0 [R6-GigabitEthernet0/0/0]ip add 100.0.0.2 24 [R6-GigabitEthernet0/0/0]int g0/0/1 [R6-GigabitEthernet0/0/1]ip add 192.168.1.254 24 [R6]rip 1 [R6-rip-1]version 2 [R6-rip-1]network 100.0.0.0 [R6-rip-1]network 192.168.1.0 [R6]rip 1 [R6-rip-1]silent-interface g0/0/1 配置静默接口 [R7-LoopBack6]int g0/0/0 [R7-GigabitEthernet0/0/0]ip add 70.0.0.1 24 [R3-ospf-1]area 4 [R3-ospf-1-area-0.0.0.4]network 70.0.0.0 0.0.0.255 [R3-ospf-1]asbr-summary 192.168.0.0 255.255.0.0 配置路由汇总 [R7]int LoopBack 0 [R7-LoopBack0]ip add 192.168.1.1 24 [R7-LoopBack0]int LoopBack 1 [R7-LoopBack1]ip add 192.168.2.1 24 [R7-LoopBack1]int LoopBack 2 [R7-LoopBack2]ip add 192.168.3.1 24 [R7-LoopBack2]int LoopBack 3 [R7-LoopBack3]ip add 192.168.4.1 24 [R7-LoopBack3]int LoopBack 4 [R7-LoopBack4]ip add 192.168.5.1 24 [R7-LoopBack4]int LoopBack 5 [R7-LoopBack5]ip add 192.168.6.1 24 [R7-LoopBack5]int LoopBack 6 [R7-LoopBack6]ip add 192.168.7.1 24
审核编辑:刘清
全部0条评论
快来发表一下你的评论吧 !