配置r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1-GigabitEthernet0/0/0]quit
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[r1-GigabitEthernet0/0/1]quit
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 1.1.1.1 32
[r1-LoopBack0]quit
[r1]rip
[r1-rip-1]version 1
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
配置r2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[r2-GigabitEthernet0/0/0]quit
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[r2-GigabitEthernet0/0/1]quit
[r2]interface LoopBack 0
[r2-LoopBack0]ip address 2.2.2.2 32
[r2]rip
[r2-rip-1]version 1
[r2-rip-1]network 12.0.0.0
[r2-rip-1]network 23.0.0.0
配置r3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3-GigabitEthernet0/0/0]quit
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[r3-GigabitEthernet0/0/1]quit
[r3]int
[r3]interface loop
[r3]interface LoopBack 0
[r3-LoopBack0]ip add
[r3-LoopBack0]ip address 3.3.3.3 32
[r3]rip
[r3-rip-1]version 1
[r3-rip-1]network 23.0.0.0
[r3-rip-1]network 192.168.2.0
测试