题目要求:
1、两个局域网基于6 to 4 tunnel可达
2、R1可以访问R3的环回
第一步:建立拓扑
第二步:配置IPv4公网地址
[r2]int g0/0/1
[r2-GigabitEthernet0/0/0]ip ad 23.1.1.1 24
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip ad 23.1.1.2 24
[r3-GigabitEthernet0/0/0]int lo0
[r3-LoopBack0]ip ad 3.3.3.3 24
[r3-LoopBack0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip ad 34.1.1.1 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip ad 34.1.1.2 24
[r2]ip route-static 0.0.0.0 0 23.1.1.2 #将R2与R4的缺省指向R3,可以ping通公网
[r4]ip route-static 0.0.0.0 0 34.1.1.1
第三步:配置R1的环回及IP地址、R2的环回,R1与R2搭建RIP环境
[r1]int lo0
[r1-LoopBack0]ip ad 192.168.1.1 25
[r1-LoopBack0]int lo1
[r1-LoopBack1]ip ad 192.168.1.129 25
[r1-LoopBack1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip ad 192.168.0.1 30
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip ad 192.168.0.2 30
[r2-GigabitEthernet0/0/0]int lo0
[r2-LoopBack0]ip ad 192.168.2.1 24
[r1]rip 1
[r1-rip-1]ver 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 192.168.0.0
[r2]rip 1
[r2-rip-1]ver 2
[r2-rip-1]network 192.168.0.0
[r2-rip-1]network 192.168.2.0
#将R1上的环回汇总
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]rip sum
[r1-GigabitEthernet0/0/1]rip summary-address 192.168.1.0 255.255.255.0
#R2给R1发缺省
[r2]rip 1
[r2-rip-1]default-route originate
#在R1上做一个空接口防止环路
[r1]ip route-static 192.168.1.0 24 NULL 0
#在R2上做NAT,R1可以上网
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.0.0 0.0.255.255
[r2-acl-basic-2000]int g0/0/1
[r2-GigabitEthernet0/0/1]nat outbound 2000
第