[r1]int loopback 0
[r1-LoopBack0]ip add 1.1.1.1 24
[r1-LoopBack0]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[r1-GigabitEthernet0/0/0]int g0/0/01
[r1-GigabitEthernet0/0/1]ip add 22.1.1.1 24
[r2]int loopback 0
[r2-LoopBack0]ip add 2.2.2.2 24
[r2-LoopBack0]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[r3-LoopBack0]ip add 3.3.3.3 24
[r3-LoopBack0]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 32.1.1.2 24
[r3-GigabitEthernet0/0/0]int g0/0/01
[r3-GigabitEthernet0/0/1]ip add 42.1.1.1 24
[r4]int loopback 0
[r4-LoopBack0]ip add 4.4.4.4 24
[r4-LoopBack0]int g0/0/00
[r4-GigabitEthernet0/0/0]ip add 42.1.1.2 24
[r4-GigabitEthernet0/0/0]
[r4-GigabitEthernet0/0/0]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 52.1.1.2 24
[r5]int loopback 0
[r5-LoopBack0]ip add 5.5.5.5 24
[r5-LoopBack0]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 52.1.1.2 24
[r5-GigabitEthernet0/0/0]int g0/0/1
[r5-GigabitEthernet0/0/1]ip add 62.1.1.1 24
[r6]int loopback 0
[r6-LoopBack0]ip add 6.6.6.6 24
[r6-LoopBack0]int g0/0/0
[r6-GigabitEthernet0/0/0]ip add 62.1.1.2 24
[r7]int lo0
[r7-LoopBack0]ip add 7.7.7.7 24
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]ip add 22.1.1.2 24
[r7-GigabitEthernet0/0/0]int q
[r7-GigabitEthernet0/0/0]int g0/0/1
[r7-GigabitEthernet0/0/1]ip add 32.1.1.1 24
[r7-GigabitEthernet0/0/1]int q
[r7-GigabitEthernet0/0/1]int g0/0/2
[r7-GigabitEthernet0/0/2]ip add 32.1.1.2 24
现在就是R1 R2 R3 三个之间科一互通了