IPv6 过渡 - 隧道技术

一、拓扑:

二、配置过程:

  1. AR2/3/4 配置 OSPF 互通,区域 0
  2. AR1/2 配置 IPv6 地址,起 OSPFv3,AR2 配置打开路由通告
  3. AR4/5 配置 IPv6 地址,起 isis ipv6,AR4 配置打开路由通告
  4. AR2/4 起隧道,隧道协议分别用 GRE/ipv6-ipv4 做为隧道协议
  5. AR2/4 分别配置静态路由到 AR5/1 的业务路由地址为隧道接口

三、测试:

在 AR1 上带源 ping ipv6 AR5 的业务地址:

在 AR2 的 G0/0/0 口抓包,看到是纯 IPv6 包:

在AR2 的 G0/0/0 口抓包,看到是 IPv4 用隧道包裹了 IPv6 通过 IPv4 网络:

换用 IPv6-IPv4 隧道协议,可以看到IPv4 直接包裹了 IPv6,少了 GRE 头部,减小了载荷:

四、所有配置:

AR1:

复制代码
ipv6 
#
ospfv3 1
 router-id 10.1.1.1
#
interface GigabitEthernet0/0/0
 ipv6 enable 
 ipv6 address 2001::12:1/64 
 ipv6 address FE80::1 link-local
 ospfv3 1 area 0.0.0.0
#
interface LoopBack0
 ipv6 enable 
 ipv6 address 1111::1/64 
 ospfv3 1 area 0.0.0.0
#

AR2:

复制代码
ipv6 
#
ospfv3 1
 router-id 10.2.2.2
 default-route-advertise always
#
interface GigabitEthernet0/0/0
 ipv6 enable 
 ipv6 address 2001::12:2/64 
 ipv6 address FE80::2 link-local
 ospfv3 1 area 0.0.0.0
#
interface GigabitEthernet0/0/1
 ip address 10.1.23.2 255.255.255.0 
#
interface LoopBack0
 ip address 10.2.2.2 255.255.255.255 
#
interface Tunnel0/0/0
 ipv6 enable 
 ipv6 address 3333::1/64 
 tunnel-protocol gre		# 或者 ipv6-ipv4
 source 10.2.2.2
 destination 10.4.4.4
#
ospf 1 router-id 10.2.2.2 
 area 0.0.0.0 
  network 10.1.23.2 0.0.0.0 
  network 10.2.2.2 0.0.0.0 
#
ipv6 route-static 5555:: 64 Tunnel0/0/0 
#

AR3:

复制代码
interface GigabitEthernet0/0/0
 ip address 10.1.23.3 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 10.1.34.3 255.255.255.0 
#
interface LoopBack0
 ip address 10.3.3.3 255.255.255.255 
#
ospf 1 router-id 10.3.3.3 
 area 0.0.0.0 
  network 10.1.23.3 0.0.0.0 
  network 10.1.34.3 0.0.0.0 
  network 10.3.3.3 0.0.0.0 
#

AR4:

复制代码
ipv6 
#
isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0004.00
 #
 ipv6 enable topology standard
 ipv6 default-route-advertise always 
 #
interface GigabitEthernet0/0/0
 ipv6 enable 
 ipv6 address 2001::45:4/64 
 ipv6 address FE80::4 link-local
 isis ipv6 enable 1
#
interface GigabitEthernet0/0/1
 ip address 10.1.34.4 255.255.255.0 
#
interface LoopBack0
 ip address 10.4.4.4 255.255.255.255 
#
interface Tunnel0/0/0		# 或者 ipv6-ipv4
 ipv6 enable 
 ipv6 address 3333::2/64 
 tunnel-protocol gre
 source 10.4.4.4
 destination 10.2.2.2
#
ospf 1 router-id 10.4.4.4 
 area 0.0.0.0 
  network 10.1.34.4 0.0.0.0 
  network 10.4.4.4 0.0.0.0 
#
ipv6 route-static 1111:: 64 Tunnel0/0/0 

AR5:

复制代码
ipv6 
#
isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0005.00
 is-name R5
 #
 ipv6 enable topology standard
 #
interface GigabitEthernet0/0/0
 ipv6 enable 
 ipv6 address 2001::45:5/64 
 ipv6 address FE80::5 link-local
 isis ipv6 enable 1
#
interface NULL0
#
interface LoopBack0
 ipv6 enable 
 ipv6 address 5555::5/64 
 isis ipv6 enable 1
#

五、排错:

如果全局未开 ipv6 ,则 dis ipv6 int brief 时,会这样显示:

就是协议未起来

相关推荐
Rabitebla9 小时前
【Linux操作系统】 文件篇(一):文件描述符与 Linux 文件管理机制
linux·网络·c++·笔记·学习
manduic11 小时前
汽车座舱Buck选型实战:AWK6613 对比 SCT2432,参数逐项对齐(附选型清单)
网络·汽车
无足鸟ICT12 小时前
【RHCA+】sosreport(收集诊断文档)
linux·运维·服务器
IT大白鼠13 小时前
当 AI 开始自动化渗透:FBI ARTEX 警报的防守对策
运维·人工智能·自动化
Decay__13 小时前
SQLServer 运维自动化平台 —— PowerShell + SQL Agent 作业:部署、监控、巡检、告警、工单闭环一体化
运维·数据库·sql·mysql·架构
A-刘晨阳14 小时前
K8S 二进制集群搭建(一主两从)v1.37.2 版本
运维·云原生·容器·kubernetes·calico·nerdctl
tonydf14 小时前
没完了,Nginx又报新漏洞!
运维·nginx
瑞雪兆丰年兮15 小时前
Linux零基础快速入门-第二章 Linux基础命令
linux·运维·服务器
lambo mercy15 小时前
01初识docker
运维·docker·容器
通信王6616 小时前
NBIOT NTN协议整理-TS36.211
网络