一.实验需求
1.路由器上分别配置环回
2.连接路由器得网段分别为12.1.1.0/24,23.1.1.0/24
3.R1和R3连接的网址分别为192.168.1.0/24,192.168.2.0/24
4.整个网段实验RIP达到全网可达
二.实验过程
1.搭建拓扑图
2.配置各PC
3.配置路由器IP以及各路由器环回
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
May 2 2023 17:16:05-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]q
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 12.1.1.1 24
May 2 2023 17:16:17-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r1-GigabitEthernet0/0/1]q
[r1]int l 0
[r1-LoopBack0]ip add 1.1.1.1 32
[r1-LoopBack0]q
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
May 2 2023 17:17:34-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-GigabitEthernet0/0/0]q
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip add 23.1.1.1 24
May 2 2023 17:18:01-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r2-GigabitEthernet0/0/1]q
[r2]int l 0
[r2-LoopBack0]ip add 2.2.2.2 32
[r2-LoopBack0]q
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 23.1.1.2 24
May 2 2023 17:18:55-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r3-GigabitEthernet0/0/0]q
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.2.254 24
May 2 2023 17:19:18-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r3-GigabitEthernet0/0/1]q
[r3]int l 0
[r3-LoopBack0]ip add 3.3.3.3 32
[r3-LoopBack0]q
4.配置RIP协议
[r1]rip 1
[r1-rip-1]ver 1
[r1-rip-1]net
[r1-rip-1]network 192.168.1.0
[r1-rip-1]net
[r1-rip-1]network 1.0.0.0
[r1-rip-1]net
[r1-rip-1]network 12.0.0.0
[r1-rip-1]q
[r2]rip 1
[r2-rip-1]ver 1
[r2-rip-1]ne
[r2-rip-1]network 12.0.0.0
[r2-rip-1]ne
[r2-rip-1]network 23.0.0.0
[r2-rip-1]q
[r3]rip 1
[r3-rip-1]ver 1
[r3-rip-1]ne
[r3-rip-1]network 23.0.0.0
[r3-rip-1]net
[r3-rip-1]network 192.168.2.0
[r3-rip-1]q
三.检测实验结果
以PC1为例分别PING其他设备
结论:经过检测各设备均互通实验完成。