RIP协议

实验要求:

1 R3环回为3.3.3.0/24
其他基于192.168.1.0/24 进行划分
3 r1/2 均存在两个环回
4 整个网络运行RIPV2,但不能直接宣告R3的环回
5 全网可达,保障更新安全,减少路由条目数量,避免环路

 为AR1创建回环接口并为所有接口配置ip:

[r1]interface LoopBack 1
[r1-LoopBack1]ip add
[r1-LoopBack1]ip address 192.168.1.1 27
[r1]interface LoopBack 2
[r1-LoopBack2]ip address 192.168.1.33 27
r2]interface g0/0/0 
[r2-GigabitEthernet0/0/0]ip address 192.168.1.129 26
 

 为AR2创建回环接口并为所有接口配置ip:

[r2]interface LoopBack 1
[r2-LoopBack1]ip add
[r2-LoopBack1]ip address 192.168.1.65 27
[r2]interface LoopBack 2
[r2-LoopBack2]ip address 192.168.1.96 27
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.130 26
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.1.193 26
 

 为AR3创建回环接口并为所有接口配置ip:

[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.1.194 26
[r3]interface LoopBack 2
[r3-LoopBack2]ip address 3.3.3.3 24
 

为所有路由器配置动态路由ripv2协议:

[r1]rip------进入rip配置模式

[r1-rip-1]vres    
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0

[r2]rip

[r2-rip-1]vres    
[r2-rip-1]version 2
[r2-rip-1]network 192.168.1.0

[r3]rip

[r3-rip-1]vres    
[r3-rip-1]version 2
[r3-rip-1]network 192.168.1.0

路由缺省设置AR3为边界路由器:

[r3]rip    
[r3-rip-1]default-route originate 
 

结果:全网可达

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值