好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



MSR系列路由器

IPv6隧道技术之GRE隧道功能的配置

 

关键词:MSR;IPv6;GRE;隧道

 

一、组网需求

IPv6网络通过GRE隧道实现穿越IPv4网络互通。IPv4网络运行OSPF实现互通,IPv6网络运行静态路由实现互联。

设备清单:PC两台、MSR系列路由器3

二、组网图:

三、配置步骤:

RTA配置:

#

 ipv6

#

interface Ethernet0/0

 port link-mode route

 ipv6 address 1::1/64

#

interface Ethernet0/1

 port link-mode route

 ip address 1.1.1.1 255.255.255.0

#

interface Tunnel0

 ipv6 address 3::1/64

 source 1.1.1.1

 destination 2.2.2.2

#

ospf 1

 area 0.0.0.0

  network 1.1.1.0 0.0.0.255

#

 ipv6 route-static 2:: 64 Tunnel0

#

RTB配置:

interface Ethernet0/0

 port link-mode route

 ip address 1.1.1.2 255.255.255.0

#

interface Ethernet0/1

 port link-mode route

 ip address 2.2.2.1 255.255.255.0

#

ospf 1

 area 0.0.0.0

  network 1.1.1.0 0.0.0.255

  network 2.2.2.0 0.0.0.255

#

RTC配置

#

 ipv6

#

interface Ethernet0/0

 port link-mode route

 ip address 2.2.2.2 255.255.255.0

#

interface Ethernet0/1

 port link-mode route

 ipv6 address 2::1/64

#

interface Tunnel0

 ipv6 address 3::2/64

 source 2.2.2.2

 destination 1.1.1.1

#

ospf 1

 area 0.0.0.0

  network 2.2.2.0 0.0.0.255

#

 ipv6 route-static 1:: 64 Tunnel0

#

四、配置关键点

首先保证隧道的源和目的的连通性。

默认隧道的封装模式是GRE,所以可以不需要指定隧道协议类型。

五、实验分析

 

X Close
X Close