配置思路:
Ipv4:公网地址(2和4缺省指向3)–左边ipv4地址(1缺省指向2,2静态指向1,2做nat)
Ipv6:左边ipv6地址 23.1.1.1-----2002:1701:0101::/48
2002:1701:0101:0000::64–2001:1701:0101:ffff::/64
R1环回:2002:1701:0101:0000::1/65
2002:1701:0101:0000:8000::1/65
1—2 2001:1701:0101:0001::/64
R2环回:2001:1701:0101:0002::1/64
6 to 4 tunnel—右边ipv6地址:34.1.1.2-----2002:2201:0102::/48
AS1:2002:2201:0102::/49
AS2:2001:2201:0102:8000::/49
Ospfv3–bgp–多宿主–建邻 联邦–6 to 4 tunnel
The device is running!
[r1-LoopBack0]ip add 192.168.1.1 25
[r1-LoopBack1]ip add 192.168.1.129 25
[r1-GigabitEthernet0/0/0]ip add 192.168.0.1 30
[r1]ip route-static 0.0.0.0 0 192.168.0.2
[r1]ping 3.3.3.3
PING 3.3.3.3: 56 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=254 time=50 ms
Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=254 time=50 ms
— 3.3.3.3 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/38/50 ms
[r1]ipv6
[r1]int loo0
[r1-LoopBack0]ipv6 enable
[r1-LoopBack0]ipv6 add 2002:1701:0101:0000::1/65
[r1-LoopBack0]int loo1
[r1-LoopBack1]ipv6 enable
[r1-LoopBack1]ipv6 add 2002:1701:0101:0000:8000::1/65
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable
[r1-GigabitEthernet0/0/0]ipv6 add 2002:1701:0101:1::1/64
[r1]ripng 1
[r1-ripng-1]int loo0
[r1-LoopBack0]ripng 1 enable
[r1-LoopBack0]int loo1
[r1-LoopBack1]ripng 1 enable
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ripng 1 enable
[r1]display ipv6 routing-table protocol ripng
Public Routing Table : RIPng
Summary Count : 2
RIPng Routing Table’s Status : < Active >
Summary Count : 2
Destination : 2001:1701:101:1:: PrefixLength : 64
NextHop : FE80::2E0:FCFF:FEAC:2E1D Preference : 100
Cost : 1 Protocol : RIPng
RelayNextHop : :: TunnelID : 0x0
Interface : GigabitEthernet0/0/0 Flags : D
Destination : 2002:1701:101:2:: PrefixLength : 64