1.IP地址划分
将母网段192.168.1.0/24分成三段,骨干和两个用户环回网段,其次主干细分为2个网段供其使用,2个用户网段分别再划分为2个网段给环回使用(注意R1和R2都有2个环回接口)
2.配置IP地址
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 27
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 192.168.1.65 27
[r1-LoopBack0]interface LoopBack 1
[r1-LoopBack1]ip address 192.168.1.97 27
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 27
[r2-GigabitEthernet0/0/0]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]ip address 192.168.1.33 27
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 192.168.1.129 27
[r2-LoopBack0]interface LoopBack 1
[r2-LoopBack1]ip address 192.168.1.161 27
[r3]interface GigabitEthernet 0/0/0
[r3-GigabitEthernet0/0/0]ip address 192.168.1.34 27
[r3]interface l
[r3]interface LoopBack 0
[r3-LoopBack0]ip address 3.3.3.1 24
3.在r1 r2 r3间启动RIPV2协议
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]network 192.168.1.0
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]network 192.168.1.0
[r3-rip-1]default-route originate
4.手工汇总防止环路
[r1]interface GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192
[r1]ip route-static 192.168.1.64 26 null 0
[r2]interface GigabitEthernet 0/0/0
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
[r2]ip route-static 192.168.1.128 26 null 0
5.手工认证保证安全
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]rip authentication-mode md5 usual 123456
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]rip authentication-mode md5 usual 123456
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]rip authentication-mode md5 usual 123456
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]rip a
[r3-GigabitEthernet0/0/0]rip authentication-mode md5 usual 123456
6.修改更新时间,加快收敛速度
[r1-GigabitEthernet0/0/0]rip 1
[r1-rip-1]timers rip 15 90 150
[r2]rip 1
[r2-rip-1]timers rip 15 90 150
[r3]rip 1
[r3-rip-1]timers rip 15 90 150