当前位置:网站首页>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,也可以关注下公众号,后期会有更多资料发布。
-----尚文网络奎哥原创
边栏推荐
- 编译文件时报错:错误: 编码GBK的不可映射字符
- Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte
- @Accessors annotation function specifies that the prefix follows the hump naming
- [algebraic structure] group (definition of group | basic properties of group | proof method of group | commutative group)
- Convert binary stream to byte array
- Yolov5 project based on QT
- C # webrequest post mode, based on "basic auth" password authentication mode, uploads files and submits other data using multipart / form data mode
- Summary of matrix knowledge points in Chapter 2 of Linear Algebra (Jeff's self perception)
- 使用InputFilter限制EditText时踩坑及解决方案
- PHP generates PDF tcpdf
猜你喜欢

MongoDB簡介

Table structure of Navicat export database

leetcode:动态规划模板

Idea format code idea set shortcut key format code

递归:深度优先搜索

Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet

node,npm以及yarn下载安装

Gavin teacher's perception of transformer live class - rasa project's actual banking financial BOT Intelligent Business Dialogue robot architecture, process and phenomenon decryption through rasa inte

LVGL使用心得

docker安装及启动mysql服务
随机推荐
QT based tensorrt accelerated yolov5
ffmpeg录制屏幕和截屏
[combinatorics] basic counting principle (addition principle | multiplication principle)
将时间戳转为指定格式的时间
Positioning (relative positioning, absolute positioning, fixed positioning, Z-index) 2022-2-11
Mongodb master profile
Some preliminary preparations for QQ applet development: make an appointment for a development account, download and install developer tools, and create QQ applet
Using jasmine to monitor constructors - spying on a constructor using Jasmine
Limit of one question per day
Summary of electromagnetic spectrum
Ansible简介【暂未完成(半成品)】
Don't use the new Dede collection without the updated Dede plug-in
[combinatorics] brief introduction to generating function (definition of generating function | Newton binomial coefficient | commonly used generating function | correlation with constant | correlation
别再用 System.currentTimeMillis() 统计耗时了,太 Low,StopWatch 好用到爆!
The XML file generated by labelimg is converted to VOC format
Open Visual Studio 2010 hangs when opening a SQL file sql file
Pat class B "1104 forever" DFS optimization idea
ffmpeg下载安装教程及介绍
VS克隆时显示403错误
C语言HashTable/HashSet库汇总