一、搭建拓扑
二、规划ip
R1的IP
R2的IP
R3的IP
通过R2测试
三、RIP V2
1、RIP V2基础配置
RIP V2 R1
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]undo summary # 不要汇总
[r1-rip-1]network 192.168.1.0
[r1-rip-1]
RIP V2 R2
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]undo summary
[r2-rip-1]network 192.168.1.0
RIP V2 R3
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]undo summary
[r3-rip-1]network 192.168.1.0
查看R1的路由表
查看R3的路由表
R3pingR1的环回
2、RIP V2扩展配置
R3写一条缺省路由
[r3]rip
[r3-rip-1]default-route originate
查看R2的路由表
查看R1的路由表
R1pingR3的环回
此时,全网可达
保障更新安全
[r1-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher huawei
[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher huawei
[r2-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher huawei
[r3-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher huawei
注:R1与R2间的密码一致,R2与R3的密码一致
减少路由条目数量
[r1-GigabitEthernet0/0/1]rip summary-address 192.168.1.64 255.255.255.192
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
查看R3的路由表
Destination/Mask Proto Pre Cost Flags NextHop Interface
192.168.1.0/30 RIP 100 1 D 192.168.1.5 GigabitEthernet0/0/0
192.168.1.64/26 RIP 100 2 D 192.168.1.5 GigabitEthernet0/0/0
192.168.1.128/26 RIP 100 1 D 192.168.1.5 GigabitEthernet0/0/0
RIP routing table status : <Inactive>
Destinations : 0 Routes : 0
<r3>
避免环路
[r1]ip route-static 192.168.1.64 26 NULL 0
[r2]ip route-static 192.168.1.128 26 NULL 0