HCIP——RIP综合实验

本文档详细介绍了在HCIP认证中进行的RIPv2配置实验,包括IP地址设置、路由配置、确保RIP路由的正确传播、R3通过R2访问R1环回接口的安全策略实施,以及减少路由条目和增强网络安全性。同时,解决了R6、R7无法学习到R1环回路由的问题,并实现了全网可达性,模拟了R1作为外网,R2作为边界设备的情景。
摘要由CSDN通过智能技术生成

一、配置IP地址和环回

[R1]display ip interface brief
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.0.0.1/24          up         up        
GigabitEthernet0/0/1              14.0.0.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         1.1.1.1/24           up         up(s)     
LoopBack1                         172.16.1.1/24        up         up(s)     
LoopBack2                         172.16.2.1/24        up         up(s)     
LoopBack3                         172.16.3.1/24        up         up(s)     
NULL0                             unassigned           up         up(s)     
[R2]display ip interface brief
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.0.0.2/24          up         up        
GigabitEthernet0/0/1              23.0.0.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         2.2.2.2/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[R3]display ip interface brief
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              23.0.0.2/24          up         up        
GigabitEthernet0/0/1              34.0.0.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         3.3.3.3/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[R4]display ip interface brief
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              14.0.0.2/24          up         up        
GigabitEthernet0/0/1              34.0.0.2/24          up         up        
GigabitEthernet0/0/2              45.0.0.1/24          up         up        
GigabitEthernet4/0/0              46.0.0.1/24          up         up        
LoopBack0                         4.4.4.4/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[R5]display ip interface brief
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              45.0.0.2/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         5.5.5.5/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[R6]display ip int b
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              46.0.0.2/24          up         up        
GigabitEthernet0/0/1              67.0.0.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         6.6.6.6/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[R7]dis ip int b
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              67.0.0.2/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         7.7.7.7/24           up         up(s)     
NULL0                             unassigned           up         up(s)     

二、配置路由

[R1]rip
[R1-rip-1]v 2
[R1-rip-1]network 12.0.0.0
[R1-rip-1]network 14.0.0.0
[R1-rip-1]network 1.0.0.0
[R1-rip-1]network 172.16.0.0
[R2]rip
[R2-rip-1]v 2
[R2-rip-1]network 12.0.0.0
[R2-rip-1]network 23.0.0.0
[R2-rip-1]network 2.0.0.0
[R3]rip
[R3-rip-1]v 2
[R3-rip-1]network 23.0.0.0
[R3-rip-1]network 34.0.0.0
[R3-rip-1]network 3.0.0.0
[R4]rip 
[R4-rip-1]v 2
[R4-rip-1]network 34.0.0.0
[R4-rip-1]network 45.0.0.0
[R4-rip-1]network 14.0.0.0
[R4-rip-1]network 46.0.0.0
[R4-rip-1]network 4.0.0.0
[R5]rip
[R5-rip-1]v 2
[R5-rip-1]network 45.0.0.0
#任务五要求R5的环回为模拟运营商,不能宣告
[R6]rip 
[R6-rip-1]v 1
[R6-rip-1]network 46.0.0.0
[R6-rip-1]network 67.0.0.0
[R6-rip-1]network 6.0.0.0
[R7]rip
[R7-rip-1]v 1
[R7-rip-1]network 67.0.0.0
[R7-rip-1]network 7.0.0.0

此时检查RIP是否正常获取到路由

#以R1为例:5.0.0.0没有宣告,没有获取到;6.0.0.0和7.0.0.0因为RIP版本不同也获取不到。
[R1]display ip routing-table protocol rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing t
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值