IPv6和IPv4互通实验 GRE

1、 拓扑图

2、 实验说明
R1与R3之间配置GRE Tunnel。
R1====================================

ipv6 unicast-routing
hostname R1
interface Loopback0
 no ip address
 ipv6 address 2000::1/128

interface Tunnel0
 ipv6 address 2013::1/64
 tunnel source 12.1.1.1
 tunnel destination 23.1.1.3

interface e0/0
no sh
int e0/0.12
en do 12
 ip address 12.1.1.1 255.255.255.0

router ospf 100
network 12.1.1.1 0.0.0.0 area 0

ipv6 route ::/0 Tunnel0

R2:==========================

hostname R2
interface e0/0
no sh
int e0/0.12
en do 12
 ip address 12.1.1.2 255.255.255.0

interface e0/0.23
en do 23
 ip address 23.1.1.2 255.255.255.0

router ospf 100
network 12.1.1.2 0.0.0.0 area 0
network 23.1.1.2 0.0.0.0 area 0

R3:=================================

hostname R3

interface Tunnel0
ipv6 address 2013::3/64
 tunnel source 23.1.1.3
 tunnel destination 12.1.1.1

interface e0/0
no sh
int e0/0.23
en do 23
 ip address 23.1.1.3 255.255.255.0

interface lo 0
ipv6 address 2000::3/128

router ospf 100
network 23.1.1.3 0.0.0.0 area 0

ipv6 route ::/0 Tunnel0

3、 实验结果
验证时从R1上ping主机的地址:3001::4cff:fe4f:4f50,然后在Sniffer1上和Sniffer2上抓包。GRE封装后的数据包(Sniffer1)见Sniffer文件:IPV6-GRE-TUNNEL-monitor.cap;去掉GRE封装的数据报(Sniffer2)见Sniffer文件:IPV6-GRE-TUNNEL-loopback.cap。
与R3连接的主机的3001的v6地址为从R3上获取到的,获取过程见Sniffer包:ipv6 get address.cap。
GRE封装中的数据内容Sniffer没有分析出来,但是从16进制的值可以看出,与解掉GRE封装后数据包的内完全相同(除检验字段外)。

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值