IPv6 to IPv4 GRE隧道实验

实验拓扑 

IPv6 to IPv4 GRE隧道实验_第1张图片

实验要求

 让R2和R3之间通过GRE建立隧道,让两边ipv6用户(2001::1/64和2002::1/64)互通。(写出实验命令和验证截图)

实验详细步骤

1、配置IPv4/IPv6双协议栈

R1

interface GigabitEthernet0/0/0
 ip address 12.1.1.1 255.255.255.0 
interface GigabitEthernet0/0/1
 ip address 13.1.1.1 255.255.255.0

R2

interface GigabitEthernet0/0/0
 ip address 12.1.1.2 255.255.255.0

interface GigabitEthernet0/0/0
 ip address 12.1.1.2 255.255.255.0 

ipv6#全局启用ipv6

interface LoopBack0
 ipv6 enable 
 ipv6 address 2001::1/64

R3

interface GigabitEthernet0/0/0
 ip address 13.1.1.3 255.255.255.0

ipv6#全局启用ipv6

interface LoopBack0
 ipv6 enable 
 ipv6 address 2002::1/64

2、配置IPv6 over IPv4 GRE隧道

 R2

interface Tunnel0/0/1
 ipv6 enable 
 ipv6 address 3001::1/64 
 tunnel-protocol gre
 source 12.1.1.2
 destination 13.1.1.3

 R3

interface Tunnel0/0/1
 ipv6 enable 
 ipv6 address 3001::2/64 
 tunnel-protocol gre
 source 13.1.1.3
 destination 12.1.1.2

3、添加路由

R2

ip route-static 13.1.1.0 255.255.255.0 12.1.1.1

ipv6 route-static 2002:: 64 Tunnel0/0/1

R3

ip route-static 12.1.1.0 255.255.255.0 13.1.1.1

ipv6 route-static 2001:: 64 Tunnel0/0/1

4、验证

R2

IPv6 to IPv4 GRE隧道实验_第2张图片

IPv6 to IPv4 GRE隧道实验_第3张图片

R3

IPv6 to IPv4 GRE隧道实验_第4张图片

IPv6 to IPv4 GRE隧道实验_第5张图片

你可能感兴趣的:(HCIE-R&S学习之路)