区块链技术博客
www.b2bchain.cn

OSPF+RIP+stub网络测试

这篇文章主要介绍了OSPF+RIP+stub网络测试的讲解,通过具体代码实例进行17604 讲解,并且分析了OSPF+RIP+stub网络测试的详细步骤与相关技巧,需要的朋友可以参考下https://www.b2bchain.cn/?p=17604

本文实例讲述了2、树莓派设置连接WiFi,开启VNC等等的讲解。分享给大家供大家参考文章查询地址https://www.b2bchain.cn/7039.html。具体如下:

目录

  • OSPF+RIP+stub网络测试
    • ● 测试目的
    • ● 拓扑图
    • ● 测试设备配置
    • ● 测试步骤
      • 1、路由器AR1配置
      • 2、路由器AR2配置
      • 3、路由器AR3配置
      • 4、路由器AR4配置
      • 5、路由器AR5配置
      • 6、路由器AR6配置
    • ● 测试验证
    • ● 测试总结

OSPF+RIP+stub网络测试

● 测试目的

实现OSPF+RIP+stub不同网段之间的互通

● 拓扑图

OSPF+RIP+stub网络测试

● 测试设备配置

配置六台路由器分别为:AR1、AR2、AR3、AR4、AR5、AR6

● 测试步骤

1、路由器AR1配置

<Huawei>undo terminal monitor  Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysname AR1 [AR1]user-in  [AR1]user-interface co  [AR1]user-interface console 0 [AR1-ui-console0]id  [AR1-ui-console0]idle-timeout 0 0 [AR1-ui-console0]q [AR1]int g0/0/0 [AR1-GigabitEthernet0/0/0]undo sh  [AR1-GigabitEthernet0/0/0]undo shutdown  Info: Interface GigabitEthernet0/0/0 is not shutdown. [AR1-GigabitEthernet0/0/0]ip add 10.1.0.1 16 [AR1-GigabitEthernet0/0/0]int loop0 [AR1-LoopBack0]ip add 1.1.1.1 32 [AR1-LoopBack0]q [AR1]ospf 1 ro  [AR1]ospf 1 router-id 1.1.1.1 [AR1-ospf-1]area 3 [AR1-ospf-1-area-0.0.0.3]network 10.1.0.0 0.0.255.255 [AR1-ospf-1-area-0.0.0.3]network 1.1.1.1 0.0.0.0 [AR1-ospf-1-area-0.0.0.3]q [AR1-ospf-1]q [AR1]ospf [AR1-ospf-1]area 3 [AR1-ospf-1-area-0.0.0.3]stub [AR1-ospf-1-area-0.0.0.3]q [AR1-ospf-1]q [AR1] 

2、路由器AR2配置

<Huawei>undo terminal monitor  Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysname AR2 [AR2]use-i  [AR2]user-o  [AR2]user-i  [AR2]user-interface co  [AR2]user-interface console 0 [AR2-ui-console0]id  [AR2-ui-console0]idle-timeout 0 0  [AR2-ui-console0]q [AR2]int g0/0/0 [AR2-GigabitEthernet0/0/0]undo sh  [AR2-GigabitEthernet0/0/0]undo shutdown  Info: Interface GigabitEthernet0/0/0 is not shutdown. [AR2-GigabitEthernet0/0/0]ip add 10.1.0.2 16 [AR2-GigabitEthernet0/0/0]int loop0 [AR2-LoopBack0]ip add 2.2.2.2 32 [AR2-LoopBack0]int g0/0/1 [AR2-GigabitEthernet0/0/1]undo sh  [AR2-GigabitEthernet0/0/1]undo shutdown  Info: Interface GigabitEthernet0/0/1 is not shutdown. [AR2-GigabitEthernet0/0/1]ip add 10.0.0.2 16 [AR2-GigabitEthernet0/0/1]q [AR2]ospf 1 ro  [AR2]ospf 1 router-id 2.2.2.2 [AR2-ospf-1]area 3 [AR2-ospf-1-area-0.0.0.3]network 10.1.0.0  0.0.255.255 [AR2-ospf-1-area-0.0.0.3]network 2.2.2.2   0.0.255.255 [AR2-ospf-1-area-0.0.0.3]area 1 [AR2-ospf-1-area-0.0.0.1]network 10.0.0.0  0.0.255.255  [AR2-ospf-1-area-0.0.0.1]q [AR2-ospf-1]q [AR2]ospf [AR2-ospf-1]area 1 [AR2-ospf-1-area-0.0.0.1]vl  [AR2-ospf-1-area-0.0.0.1]vlink-peer 3.3.3.3 [AR2-ospf-1-area-0.0.0.1]q [AR2-ospf-1]q [AR2]ospf [AR2-ospf-1]area 3 [AR2-ospf-1-area-0.0.0.3]stub no-  [AR2-ospf-1-area-0.0.0.3]stub no-summary  [AR2-ospf-1-area-0.0.0.3]q [AR2-ospf-1]q [AR2] 

3、路由器AR3配置

<Huawei>undo terminal monitor  Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysname AR3 [AR3]user-in  [AR3]user-interface co  [AR3]user-interface console 0 [AR3-ui-console0]id  [AR3-ui-console0]idle-timeout 0 0  [AR3-ui-console0]int g0/0/0 [AR3-GigabitEthernet0/0/0]undo sh  [AR3-GigabitEthernet0/0/0]undo shutdown  Info: Interface GigabitEthernet0/0/0 is not shutdown. [AR3-GigabitEthernet0/0/0]ip add 10.0.0.3                                           ^ Error:Incomplete command found at '^' position. [AR3-GigabitEthernet0/0/0]ip add 10.0.0.3 16 [AR3-GigabitEthernet0/0/0]int g0/0/1 [AR3-GigabitEthernet0/0/1]undo sh  [AR3-GigabitEthernet0/0/1]undo shutdown  Info: Interface GigabitEthernet0/0/1 is not shutdown. [AR3-GigabitEthernet0/0/1]ip add 10.56.0.3 16 [AR3-GigabitEthernet0/0/1]int loop0 [AR3-LoopBack0]ip add 3.3.3.3 32 [AR3-LoopBack0]int loop1 [AR3-LoopBack1]ip add 100.100.100.100 32 [AR3-LoopBack1]q [AR3]ospf 1 ro  [AR3]ospf 1 router-id 3.3.3.3 [AR3-ospf-1]area 1 [AR3-ospf-1-area-0.0.0.1]network 10.0.0.0 0.0.255.255 [AR3-ospf-1-area-0.0.0.1]area 0 [AR3-ospf-1-area-0.0.0.0]network 10.56.0.0 0.0.255.255 [AR3-ospf-1-area-0.0.0.0]network 100.100.100.100 0.0.0.0 [AR3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0 [AR3-ospf-1-area-0.0.0.0]q [AR3-ospf-1]q [AR3]ospf [AR3-ospf-1]area 1 [AR3-ospf-1-area-0.0.0.1]vl  [AR3-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2 [AR3-ospf-1-area-0.0.0.1]q [AR3-ospf-1]q

4、路由器AR4配置

<Huawei>undo terminal monitor  Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysname AR4 [AR4]user-in  [AR4]user-interface co  [AR4]user-interface console 0 [AR4-ui-console0]id  [AR4-ui-console0]idle-timeout 0 0 [AR4-ui-console0]q [AR4]int g0/0/0 [AR4-GigabitEthernet0/0/0]undo sh Info: Interface GigabitEthernet0/0/0 is not shutdown. [AR4-GigabitEthernet0/0/0]ip add 10.56.0.4 16 [AR4-GigabitEthernet0/0/0]int g0/0/1 [AR4-GigabitEthernet0/0/1]ip add 10.2.0.4 16 [AR4-GigabitEthernet0/0/1]int loop0 [AR4-LoopBack0]ip add 4.4.4.4 32 [AR4-LoopBack0]q [AR4]ospf 1 ro  [AR4]ospf 1 router-id 4.4.4.4 [AR4-ospf-1]area 0 [AR4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0 [AR4-ospf-1-area-0.0.0.0]network 10.56.0.0 0.0.255.255 [AR4-ospf-1-area-0.0.0.0]area 2 [AR4-ospf-1-area-0.0.0.2]network 10.2.0.0 0.0.255.255 [AR4-ospf-1-area-0.0.0.2]nssa no-summary  [AR4-ospf-1-area-0.0.0.2]q

5、路由器AR5配置

<Huawei>undo terminal monitor  Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysname AR5 [AR5]user-in  [AR5]user-interface co  [AR5]user-interface console 0 [AR5-ui-console0]id  [AR5-ui-console0]idle-timeout 0 0 [AR5-ui-console0]q [AR5]int g0/0/0 [AR5-GigabitEthernet0/0/0]undo sh  [AR5-GigabitEthernet0/0/0]undo shutdown  Info: Interface GigabitEthernet0/0/0 is not shutdown. [AR5-GigabitEthernet0/0/0]ip add 10.2.0.5 16 [AR5-GigabitEthernet0/0/0]int loop 0 [AR5-LoopBack0]ip add 5.5.5.5 32 [AR5-LoopBack0]int g0/0/1 [AR5-GigabitEthernet0/0/1]undo sh  [AR5-GigabitEthernet0/0/1]undo shutdown  Info: Interface GigabitEthernet0/0/1 is not shutdown. [AR5-GigabitEthernet0/0/1]ip add 172.16.24.5 24 [AR5-GigabitEthernet0/0/1]q [AR5]ospf 1 ro  [AR5]ospf 1 router-id 5.5.5.5 [AR5-ospf-1]area 2 [AR5-ospf-1-area-0.0.0.2]network 10.2.0.0 0.0.255.255 [AR5-ospf-1-area-0.0.0.2]network 5.5.5.5 0.0.0.0 [AR5-ospf-1-area-0.0.0.2]q [AR5-ospf-1]rip [AR5-rip-1]ve  [AR5-rip-1]vers  [AR5-rip-1]version 2 [AR5-rip-1]un  [AR5-rip-1]undo su  [AR5-rip-1]undo summary  [AR5-rip-1]network 172.0.0.0 [AR5-rip-1]q [AR5]ospf 1 ro  [AR5]ospf 1 router-id 5.5.5.5 [AR5-ospf-1]im  [AR5-ospf-1]import-route rip 1 c  [AR5-ospf-1]import-route rip 1 cost 10 [AR5-ospf-1]rip [AR5-rip-1]im  [AR5-rip-1]import-route ospf 1 c  [AR5-rip-1]import-route ospf 1 cost 0 [AR5-rip-1]rip [AR5-rip-1]network 172.16.0.0 [AR5-rip-1]q [AR5]rip [AR5-rip-1]de  [AR5-rip-1]default-r  [AR5-rip-1]default-route o  [AR5-rip-1]default-route originate c  [AR5-rip-1]default-route originate cost 0 [AR5-rip-1]q [AR5]ospf [AR5-ospf-1]area 2 [AR5-ospf-1-area-0.0.0.2]nssa [AR5-ospf-1-area-0.0.0.2]q [AR5-ospf-1]q 

6、路由器AR6配置

<Huawei>undo terminal monitor  Info: Current terminal monitor is off. <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]sysname AR6 [AR6]user-in  [AR6]user-interface co  [AR6]user-interface console 0 [AR6-ui-console0]id  [AR6-ui-console0]idle-timeout 0 0 [AR6-ui-console0]int g0/0/0 [AR6-GigabitEthernet0/0/0]undo sh  [AR6-GigabitEthernet0/0/0]undo shutdown  Info: Interface GigabitEthernet0/0/0 is not shutdown. [AR6-GigabitEthernet0/0/0]ip add 172.16.24.6 24 [AR6-GigabitEthernet0/0/0]int loop0 [AR6-LoopBack0]ip add 6.6.6.6 32 [AR6-LoopBack0]q [AR6]rip [AR6-rip-1]ver  [AR6-rip-1]vers  [AR6-rip-1]version 2 [AR6-rip-1]undo s  [AR6-rip-1]undo su  [AR6-rip-1]undo summary  [AR6-rip-1]network 6.0.0.0 [AR6-rip-1]network 172.0.0.0 [AR6-rip-1]q [AR6]rip [AR6-rip-1]undo network 172.0.0.0 [AR6-rip-1]network 172.16.0.0 [AR6-rip-1]q 

● 测试验证

AR1可以ping通AR6(如下图)
OSPF+RIP+stub网络测试
AR5可以ping通AR2(如下图)
OSPF+RIP+stub网络测试

● 测试总结

本次测试要实现不同网段的互通,里面涉及到RIP和stub区域,里面要运用到:
重分发技术(在AR5上完成)
虚链路技术,从一个非骨干区域跨越一个非骨干区域,帮助这个非骨干区域获得完整的LSDB(分别在AR2和AR3上完成)
最后实现全网互通

本文转自互联网,侵权联系删除OSPF+RIP+stub网络测试

赞(0) 打赏
部分文章转自网络,侵权联系删除b2bchain区块链学习技术社区 » OSPF+RIP+stub网络测试
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

b2b链

联系我们联系我们