实验拓扑如下:
环境概述:
该环境为PC1与R1,PC2与R2之间运行的为IPv6网络,R1与R2运行的为IPv4网络。实现PC1与PC2在IPv4网络中通过配置GRE隧道实现。
配置方法
R1:
#
ipv6
#
interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 2019:1::1/64
#
interface GigabitEthernet0/0/1
ip address 10.1.1.1 255.255.255.0
#
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2019:2::1/64
tunnel-protocol gre
source 10.1.1.1
destination 10.1.1.2
#
ipv6 route-static :: 0 Tunnel0/0/0
#
R2:
#
ipv6
#
interface GigabitEthernet0/0/0
ip address 10.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 2019:3::1/64
#
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2019:2::2/64
tunnel-protocol gre
source 10.1.1.2
destination 10.1.1.1
#
ipv6 route-static :: 0 Tunnel0/0/0
#