当前位置:网站首页>IPv6过渡技术-6to4手工隧道配置实验--尚文网络奎哥
IPv6过渡技术-6to4手工隧道配置实验--尚文网络奎哥
2022-07-03 03:30:00 【尚文网络】
之前我们聊过IPv6都有哪些过渡技术,那么这次我们来看下如何进行配置,至于双栈技术我们就不单独进行分析了,这篇文章主要以华为设备为出发点做一个6to4手工隧道实验。
一、实验拓扑

二、实验目标
蓝色部分为IPv4部分,配置IPv6手工隧道使1::1和5::5可以穿越IPv4网络相互通信
三、实验步骤
1:按照如图所示配置IP地址
2:配置R2、R3、R4之间的ospf
以R2为例:
[R2]ospf 1
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
3:配置R1和R2、R4和R5之间的ospfv3
[R1]ospfv3 1
[R1-ospfv3-1]router-id 1.1.1.1
[R1-ospfv3-1]area 0
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ospfv3 1 area 0
[R1]int lo0
[R1-LoopBack0]ospfv3 1 area 0
[R2]ospfv3 1
[R2-ospfv3-1]router-id 2.2.2.2
[R2-ospfv3-1]area 0
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]ospfv3 1 area 0
R4和R5同配置

4:配置R2和R4之间的6over4隧道
[R2]interface Tunnel 0/0/0 //创建虚拟隧道接口
[R2-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 //选择隧道封装协议(GRE也可以)
[R2-Tunnel0/0/0]source 2.2.2.2 //配置隧道源地址
[R2-Tunnel0/0/0]destination 4.4.4.4 //配置隧道目的地址(两地址必须互通)
[R2-Tunnel0/0/0]ipv6 enable //开启隧道接口IPv6功能
[R2-Tunnel0/0/0]ipv6 address 2001:24::2 64 //配置隧道IPv6地址,用于后续协议使用
[R4]interface Tunnel 0/0/0
[R4-Tunnel0/0/0]tunnel-protocol ipv6-ipv4 //两边隧道封装必须一致
[R4-Tunnel0/0/0]source 4.4.4.4
[R4-Tunnel0/0/0]destination 2.2.2.2
[R4-Tunnel0/0/0]ipv6 enable
[R4-Tunnel0/0/0]ipv6 address 2001:24::4 64


5:通过隧道接口配置ospfv3将两边网络打通
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ospfv3 1 area 0
[R4]interface Tunnel 0/0/0
[R4-Tunnel0/0/0]ospfv3 1 area 0



目前通过隧道相当于将R2和R4直接互联,因此使用隧道配置ospfv3并且两边网络也都配置了ospfv3协议,因此可以直接通信。如果一边网络为ospfv3一边为isis,中间隧道接口可以任意选择一种协议配置并加入路由引入。
加群一起聊技术,有啥问题可以直接分享交流QQ群:316317765,也可以关注下公众号,后期会有更多资料发布。
-----尚文网络奎哥原创
边栏推荐
- Converts a timestamp to a time in the specified format
- Mysql Mac版下载安装教程
- Limit of one question per day
- C programming learning notes [edited by Mr. Tan Haoqiang] (Chapter III sequence programming) 03 operators and expressions
- js中#号的作用
- The file marked by labelme is converted to yolov5 format
- Stepping on pits and solutions when using inputfilter to limit EditText
- 没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
- Vs Code configure virtual environment
- @Accessors注解作用指定前缀遵守驼峰命名
猜你喜欢

ffmpeg下载安装教程及介绍

The series of hyperbolic function in daily problem

PHP generates PDF tcpdf

Makefile demo

Bid farewell to artificial mental retardation: Mengzi open source project team received RMB 100 million financing to help NLP develop

Mysql Mac版下载安装教程

Limit of one question per day

Hi3536c v100r001c02spc040 cross compiler installation

Ffmpeg one / more pictures synthetic video

VS 2019配置tensorRT
随机推荐
Limit of one question per day
递归使用和多维数组对象变一维数组对象
动态规划:最长回文子串和子序列
Avec trois. JS fait une scène 3D simple
Compare float with 0
MongoDB簡介
Table structure of Navicat export database
navicat 导出数据库的表结构
Why does thread crash not cause JVM crash
Mongodb replication set [master-slave replication]
The file marked by labelme is converted to yolov5 format
Captura下载安装及在Captura配置FFmpeg
Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
Mongodb master profile
C# WebRequest POST模式 ,基于“Basic Auth”口令认证模式,使用multipart/form-data方式上传文件及提交其他数据
Makefile demo
Docker install and start MySQL service
Hi3536c v100r001c02spc040 cross compiler installation
VS克隆时显示403错误
Open Visual Studio 2010 hangs when opening a SQL file sql file