实验目标
ip分配
AR1配置
//接口ip配置
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ip address 192.168.1.1 27
[AR1-GigabitEthernet0/0/0]q
[AR1]interface LoopBack 0
[AR1-LoopBack0]ip address 192.168.1.65 27
[AR1-LoopBack0]q
[AR1]interface LoopBack 1
[AR1-LoopBack1]ip address 192.168.1.97 27
[AR1-LoopBack1]q
//rip配置
[AR1]rip 1 //使用进程1
[AR1-rip-1]version 2 //设置版本为v2
[AR1-rip-1]network 192.168.1.0 //宣告主类的ip地址//手工认证
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456//防止环路
[AR1]ip route-static 192.168.1.64 26 NULL 0
//手工汇总
[AR1-GigabitEthernet0/0/0]rip summary-address 192.168.1.64 255.255.255.192
[AR1-GigabitEthernet0/0/0]q//加快收敛
[AR1]rip 1
[AR1-rip-1]timers rip 10 60 100
AR2配置
//配置接口ip
[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]ip address 192.168.1.33 27
[AR2-GigabitEthernet0/0/0]q[AR2]interface GigabitEthernet 0/0/1
[AR2-GigabitEthernet0/0/1]ip address 192.168.1.2 27
[AR2-GigabitEthernet0/0/1]q
[AR2]interface LoopBack 0
[AR2-LoopBack0]ip address 192.168.1.129 27
[AR2-LoopBack0]q[AR2]interface LoopBack 1
[AR2-LoopBack1]ip address 192.168.1.161 27
[AR2-LoopBack1]q
//rip配置
[AR2]rip 1
[AR2-rip-1]version 2
[AR2-rip-1]network 192.168.1.0
[AR2-rip-1]q
//手工认证
[AR2]interface GigabitEthernet 0/0/1
[AR2-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher 123456
[AR2-GigabitEthernet0/0/1]q[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123456
[AR2-GigabitEthernet0/0/0]q//防止环路
[AR2]ip route-static 192.168.1.128 26 NULL 0
//手工汇总
[AR2]interface GigabitEthernet 0/0/1
[AR2-GigabitEthernet0/0/1]rip summary-address 192.168.1.128 255.255.255.192
[AR2-GigabitEthernet0/0/1]q[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[AR2-GigabitEthernet0/0/0]q
//加快收敛
[AR2]rip 1
[AR2-rip-1]timers rip 10 60 100
AR3配置
//配置接口ip
[AR3]interface GigabitEthernet 0/0/1
[AR3-GigabitEthernet0/0/1]ip address 192.168.1.34 27
[AR3-GigabitEthernet0/0/1]q[AR3]interface LoopBack 0
[AR3-LoopBack0]ip address 3.3.3.1 24
[AR3-LoopBack0]q//rip配置
[AR3]rip 1
[AR3-rip-1]version 2
[AR3-rip-1]network 192.168.1.0
[AR3-rip-1]q//手工认证
[AR3]interface GigabitEthernet 0/0/1
[AR3-GigabitEthernet0/0/1]rip authentication-mode md5 usual cipher 123456
[AR3-GigabitEthernet0/0/1]q//缺省路由
[AR3]rip 1
[AR3-rip-1]default-route originate//加快收敛
[AR3-rip-1]timers rip 10 60 100