实验要求
1.R3环回3.3.3.0/24,不宣告
2.其它网段基于192.168.1.0/24划分
3.R1与R2均存在两个环回
4.全网运行ripv2
5.全网可达,保证更新安全,减少路由条目
实验拓补
实验思路
- 基于192.168.1.0/24划分6个网段
先给骨干线路划分1个大网段
再给R1和R2的环回分别给一个大网段
192.168.1.0000 0000---192.168.1.0/26(骨干1)
192.168.1.0100 0000---192.168.1.64/26(骨干2)
192.168.1.1000 0000----192.168.1.128/26(R1环回)
L0192.168.1.1000 0000----192.168.1.128/27
L1192.168.1.1010 0000----192.168.1.160/27
192.168.1.1100 0000-----192.168.1.192/26(R2环回)
L0192.168.1.1100 0000-----192.168.1.192/27
L1192.168.1.1110 0000-----192.168.1.224/27
实验步骤
配IP地址和环回
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 26
[R1-GigabitEthernet0/0/0]int l0
[R1-LoopBack0]ip add 192.168.1.129 27
[R1-LoopBack0]int l1
[R1-LoopBack1]ip add 192.168.1.161 27
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.1.2 26
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 192.168.1.65 26
[R2-GigabitEthernet0/0/1]int l0
[R2-LoopBack0]ip add 192.168.1.193 27
[R2-LoopBack0]int l1
[R2-LoopBack1]ip add 192.168.1.225 27
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.1.66 26
[R3-GigabitEthernet0/0/0]int l0
[R3-LoopBack0]ip add 3.3.3.3 24
配路由协议(RIP协议按自然分类宣告直链网段)
[R1]rip 1
[R1-rip-1]version 2
[R1-rip-1]undo summary
[R1-rip-1]network 192.168.1.0
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]undo summary
[R2-rip-1]network 192.168.1.0
[R3]rip 1
[R3-rip-1]version 2
[R3-rip-1]undo summary
[R3-rip-1]network 192.168.1.0
自动下发缺省路由
[R3]rip 1
[R3-rip-1]default-route originate
保证更新安全(给接口认证,密码必须相同)
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher hhy
[R2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher hhy
汇总(减少路由条目)
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[R2-GigabitEthernet0/0/0]rip summary-address 192.168.1.192 255.255.255.192
[R2-GigabitEthernet0/0/1]rip summary-address 192.168.1.192 255.255.255.192
防环
[R1]ip route-static 192.168.1.128 26 null 0
[R2]ip route-static 192.168.1.192 26 null 0
实验测试(全网可通)