要求:
- 全网可达
- R4的环回不能被宣告
- R2 R3 R4各有两个环回需要汇总
- 保证更新安全
- 加快收敛速度
配置路由端口IP地址:
R1:
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 123.1.1.1 24
R2;
r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 123.1.1.2 24
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.2 24
R3:
r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 123.1.1.2 24
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.2 24
R4:
r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 123.1.1.2 24
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.2 24
R5
r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 123.1.1.2 24
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.2 24
配置环回地址:
R2:
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 192.168.1.1 25
[r2]interface LoopBack 1
[r2-LoopBack1]ip address 192.168.1.129 25
R3:
[r3]interface LoopBack 0
[r3-LoopBack0]ip address 192.168.2.1 25
[r3]interface LoopBack 1
[r3-LoopBack1]ip address 192.168.2.129 25
R4:
[r4]interface LoopBack 0
[r4-LoopBack0]ip address 192.168.3.1 25
[r4]interface LoopBack 1
[r4-LoopBack1]ip address 192.168.3.129 25
[r4]interface LoopBack 2
[r4-LoopBack2]ip address 100.1.1.1 24
Rip协议配置:
R1:
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 123.0.0.0
R2:
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]network 123.0.0.0
[r2-rip-1]network 23.0.0.0
[r2-rip-1]network 192.168.1.0
R3:
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]network 23.0.0.0
[r3-rip-1]network 34.0.0.0
[r3-rip-1]network 192.168.2.0
R4:
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]network 34.0.0.0
[r4-rip-1]network 45.0.0.0
[r4-rip-1]network 192.168.3.0
R5:
[r5]rip 1
[r5-rip-1]version 2
[r5-rip-1]network 45.0.0.0
[r5-rip-1]network 123.0.0.0
R4不能被宣告,则配置缺省:
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]default-route originate
环回路由汇总:
R2:
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.0
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]rip summary-address 192.168.1.0 255.255.255.0
R3:
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]rip summary-address 192.168.2.0 255.255.255.0
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]rip summary-address 192.168.2.0 255.255.255.0
R4:
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]rip summary-address 192.168.3.0 255.255.255.0
[r4]interface g0/0/1
[r4-GigabitEthernet0/0/1]rip summary-address 192.168.3.0 255.255.255.0
空接口防环路由:
R2:
[r2]ip route-static 192.168.1.0 24 NULL 0
R3:
[r3]ip route-static 192.168.2.0 24 NULL 0
R4:
[r4]ip route-static 192.168.3.0 24 NULL 0
手工认证:
R1:
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]rip authentication-mode simple huaweiR2:
R2:
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]rip authentication-mode simple huawei
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]rip authentication-mode simple huawei
R3:
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]rip authentication-mode simple huawei
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]rip authentication-mode simple huawei
R4:
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]rip authentication-mode simple huawei
[r4]interface g0/0/1
[r4-GigabitEthernet0/0/1]rip authentication-mode simple huawei
R5:
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]rip authentication-mode simple huawei
[r5]interface g0/0/1
[r5-GigabitEthernet0/0/1]rip authentication-mode simple huawei
加快收敛配置:
R1:
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]timers rip 15 90 60
R2:
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]timers rip 15 90 60
R3:
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]timers rip 15 90 60
R4:
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]timers rip 15 90 60
R5:
[r5]rip 1
[r5-rip-1]version 2
[r5-rip-1]timers rip 15 90 60