当前位置:网站首页>使用路由协议配置 IPv6 over IP手动隧道
使用路由协议配置 IPv6 over IP手动隧道
2022-07-22 21:36:00 【GRQ。】
网络拓扑图如下
要求使用路由协议使三台PC互通,不使用静态路由
R1
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.12.1 24
[Huawei-GigabitEthernet0/0/0]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 10.1.13.1 24
[Huawei-GigabitEthernet0/0/2]int lo 0
[Huawei-LoopBack0]ip add 1.1.1.1 32
[Huawei-LoopBack0]q
[Huawei]rip
[Huawei-rip-1]network 10.0.0.0
[Huawei-rip-1]network 1.0.0.0(以上为配置路由协议使三台路由器之间互通)
[Huawei]ipv6
[Huawei]int Tunnel 0/0/0
[Huawei-Tunnel0/0/0]ipv6 enable
[Huawei-Tunnel0/0/0]ipv6 address auto link-local(注意要在隧道口配置一个ipv6地址,不然隧道口没法正常开启)
[Huawei-Tunnel0/0/0]tunnel-protocol ipv6-ipv4(隧道协议为IPv6到IPv4 把ipv6报文封装在ipv4中)
[Huawei-Tunnel0/0/0]source 1.1.1.1
[Huawei-Tunnel0/0/0]destination 2.2.2.2
[Huawei]int Tunnel 0/0/1
[Huawei-Tunnel0/0/1]ipv6 enable
[Huawei-Tunnel0/0/1]ipv6 address auto link-local
[Huawei-Tunnel0/0/1]tunnel-protocol ipv6-ipv4
[Huawei-Tunnel0/0/1]source 1.1.1.1
[Huawei-Tunnel0/0/1]destination 3.3.3.3
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ipv6 enable
[Huawei-GigabitEthernet0/0/1]ipv6 address 2001:1111::254 64(给PC1配置一个网关)
[Huawei-GigabitEthernet0/0/1]q
[Huawei]ospfv3
[Huawei-ospfv3-1]router-id 1.1.1.1
[Huawei-ospfv3-1]q
[Huawei]int Tunnel 0/0/0
[Huawei-Tunnel0/0/0]ospfv3 1 area 0(把隧道口加到ospfv3路由协议中,实现PC间的互访,不必配置大量的静态路由)
[Huawei]int Tunnel 0/0/1
[Huawei-Tunnel0/0/1]ospfv3 1 area 0
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ospfv3 1 area 0
[Huawei-GigabitEthernet0/0/1]q
R2跟R3的配置类似
最后用PC之间互ping测试设备的连通性
边栏推荐
猜你喜欢

VMware虚拟机更改静态IP和主机名,使用Xshell进行连接

Mysql A left(right) join B on A.id=B.id and A.age=1与A left(right) join B on A.id=B.id where A.age=1

避错,常见Appium相关问题及解决方案

图的存储结构及方法(一)

VMware 中搭建 SylixOS 环境

Scala idea prompt function parameters

Redis三种集群方案

Niuke Xiaobai month race 53

Fastapi learning (II) -- fastapi+jinjia2 template rendering web page (jump back to the rendering page)

File upload, server file name Chinese garbled file upload, server file name Chinese garbled
随机推荐
局域网SDN技术硬核内幕 6 分布式任意播网关
1.10 API 和字符串
Three effective strategies for driving page performance optimization
Scala when used Performance problems of contains().Exists()
6-13漏洞利用-smtp暴力破解
PNY file to picture
scala idea提示函数参数
yolov5 test. Py broken pipe error: [errno 32] broken pipe problem solving
开幕在即 | “万物互联,使能千行百业”2022开放原子全球开源峰会OpenAtom OpenHarmony分论坛
2022 employment season surprise! The genuine Adobe software can finally be used for nothing
About redis, do you update the database first or the cache first?
【干货原创】发现了一个好用到爆的数据分析利器
1.11 ArrayList&学生管理系统
yolov5 test.py BrokenPipeError: [Errno 32] Broken pipe问题解决
老板要我做一个 IP 属地功能,一个开源库搞定!
驱动页面性能优化的3个有效策略
测试用例设计方法合集
局域网SDN技术硬核内幕 10 云网融合的红娘EVPN
Ftxui basic notes (Hello World)
局域网SDN硬核技术内幕 22 亢龙有悔——规格与限制(下)