192.168.1.0/24 子网划分2²=4
192.168.1.00 000000/26 192.168.1.0/26 骨干 192.168.1.0/27 —192.168.1.32/27
192.168.1.01 000000/26 192.168.1.64/26 R1——192.168.1.010 00000 192.168.1.64/27
192.168.1.011 00000 192.168.1.96/27
192.168.1.10 000000/26 192.168.1.128/26 R2——192.168.1.100 00000 192.168.1.128/27
192.168.1.160/27
192.168.1.11 000000/26 192.168.1.192/26 R3——192.168.1.110 00000 192.168.1.192/27
192.168.1.111 00000 192.168.1.224/27
1.建立环回
R1
[r1-LoopBack0]ip address 192.168.1.65 27
[r1-LoopBack1]ip address 192.168.1.97 27
R2
[r2-LoopBack0]ip address 192.168.1.129 27
[r2-LoopBack1]ip address 192.168.1.161 27
R3
[r3]int lo0
[r3-LoopBack0]ip address 3.3.3.3 24
2.写路由接口
R1
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 27
R2
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 27
[r2-GigabitEthernet0/0/1]ip address 192.168.1.33 27
R3
[r3-GigabitEthernet0/0/0]ip add
[r3-GigabitEthernet0/0/0]ip address 192.168.1.34 27
整个网络使用RIPV2,全网可达,路由表汇总,放置环路,保障更新安全,加快收敛速度
3.配rip协议(写宣告)
R1
[r1]display ip interface brief ——先查看
GigabitEthernet0/0/0 192.168.1.1/27 up up
LoopBack0 192.168.1.65/27 up up(s)
LoopBack1 192.168.1.97/27 up up(s)
[r1]rip 1 1——为进程号
[r1-rip-1]version 2
[r1-rip-1]network 192.168.1.0
R2
[r2]rip 1
[r2-rip-1]version 2
[r2-rip-1]network 192.168.1.0
R3
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]network 192.168.1.0
4.全网可达
<r1>ping 192.168.1.34
PING 192.168.1.34: 56 data bytes, press CTRL_C to break
Request time out
Reply from 192.168.1.34: bytes=56 Sequence=2 ttl=254 time=60 ms
Reply from 192.168.1.34: bytes=56 Sequence=3 ttl=254 time=20 ms
Reply from 192.168.1.34: bytes=56 Sequence=4 ttl=254 time=30 ms
Reply from 192.168.1.34: bytes=56 Sequence=5 ttl=254 time=30 ms
<r3>ping 192.168.1.2
PING 192.168.1.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=10 ms
5.
6.