1.拓扑图
2:要求
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达到全网可达
3.配置解析
R1
sys
[Huawei]sy r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[r1-GigabitEthernet0/0/0]int g0/0/1
[r1-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[r1-GigabitEthernet0/0/1]int l 0
[r1-LoopBack0]ip address 1.1.1.1 32
[r1-LoopBack0]q
[r1]rip 1
[r1-rip-1]ver 2
[r1-rip-1]net 192.168.0.0
[r1-rip-1]net 1.0.0.0
[r1-rip-1]net 12.0.0.0
R2
sys
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[r2-GigabitEthernet0/0/1]int l 0
[r2-LoopBack0]ip address 2.2.2.2 32
[r2-LoopBack0]q
[r2]rip 1
[r2-rip-1]ver 2
[r2-rip-1]net 192.168.2.0
[r2-rip-1]net 12.0.0.0
[r2-rip-1]net 2.0.0.0
R3
sys
[Huawei]sy r3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.2.254 24
[r3-GigabitEthernet0/0/1]int l 0
[r3-LoopBack0]ip address 3.3.3.3 32
[r3-LoopBack0]q
[r3]rip 1
[r3-rip-1]ver 2
[r3-rip-1]net 3.0.0.0
[r3-rip-1]net 23.0.0.0
[r3-rip-1]net 192.168.2.0
4.测试