玩转华为ENSP模拟器系列 | 配置IPv6静态路由示例
2023-09-14 09:09:07 时间
素材来源:华为路由器配置指南
一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!
附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全
目标
利用IPv6静态路由,可以实现网络中任意两台设备之间的互通。
组网需求
如图1所示,图中所有IPv6地址的前缀长度都为64。要求各路由器之间配置IPv6静态路由协议后,可以使所有主机和路由器之间互通。路由器的GE接口使用IPv6链路本地地址。
配置思路
- 首先配置各路由器各GE接口的IPv6地址,使网络互通。
- 在各路由器上配置到目的地址的IPv6静态路由及缺省路由。
- 在各主机上配置IPv6缺省网关,使任意两台主机可以互通。
操作步骤
- 配置各接口的IPv6地址
- 配置IPv6静态路由
在DeviceA上配置IPv6缺省路由。
DeviceA:
ipv6 route-static :: 0 Ethernet1/0/0 2001:DB8:4::2
DeviceB上配置两条IPv6静态路由。
DeviceB:
ipv6 route-static 2001:DB8:1:: 64 Ethernet1/0/0 2001:DB8:4::1
ipv6 route-static 2001:DB8:3:: 64 Ethernet1/0/1 2001:DB8:5::1
在DeviceC上配置IPv6缺省路由。
DeviceC:
ipv6 route-static :: 0 Ethernet1/0/0 2001:DB8:5::2
- 查看配置结果
查看DeviceA的IPv6路由表。
[~DeviceA]display ipv6 routing-table
Routing Table : _public_
Destinations : 9 Routes : 9
Destination : :: PrefixLength : 0
NextHop : 2001:DB8:4::2 Preference : 60
Cost : 0 Protocol : Static
RelayNextHop : :: TunnelID : 0x0
Interface : Ethernet1/0/0 Flags : D
Destination : ::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Destination : ::FFFF:127.0.0.0 PrefixLength : 104
NextHop : ::FFFF:127.0.0.1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Destination : ::FFFF:127.0.0.1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Destination : 2001:DB8:1:: PrefixLength : 64
NextHop : 2001:DB8:1::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Ethernet1/0/1 Flags : D
Destination : 2001:DB8:1::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Ethernet1/0/1 Flags : D
Destination : 2001:DB8:4:: PrefixLength : 64
NextHop : 2001:DB8:4::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Ethernet1/0/0 Flags : D
Destination : 2001:DB8:4::1 PrefixLength : 128
NextHop : ::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : Ethernet1/0/0 Flags : D
Destination : FE80:: PrefixLength : 10
NextHop : :: Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : NULL0 Flags : DB
[~DeviceA]
使用ping命令验证连通性。
[~DeviceA]ping ipv6 2001:db8:3::1
PING 2001:DB8:3::1 : 56 data bytes, press CTRL_C to break
Reply from 2001:DB8:3::1
bytes=56 Sequence=1 hop limit=63 time=11 ms
Reply from 2001:DB8:3::1
bytes=56 Sequence=2 hop limit=63 time=9 ms
Reply from 2001:DB8:3::1
bytes=56 Sequence=3 hop limit=63 time=9 ms
Reply from 2001:DB8:3::1
bytes=56 Sequence=4 hop limit=63 time=6 ms
Reply from 2001:DB8:3::1
bytes=56 Sequence=5 hop limit=63 time=9 ms
--- 2001:DB8:3::1 ping statistics---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max=6/8/11 ms
[~DeviceA]
使用tracert命令验证连通性。
[~DeviceA]tracert ipv6 2001:db8:3::1
traceroute to 2001:DB8:3::1 30 hops max,60 bytes packet
1 2001:DB8:4::2 13 ms 3 ms 4 ms
2 2001:DB8:3::1 14 ms 6 ms 7 ms
[~DeviceA]
相关文章
- 【Linux】Bonding配置,管理
- discuz x3.4 开启tags聚合标签及伪静态配置方法
- Spring Boot中使用MyBatis注解配置详解(1)
- Gin框架配置静态文件static
- 第三百八十四节,Django+Xadmin打造上线标准的在线教育平台—路由映射与静态文件配置以及会员注册
- 新电脑一般javaweb配置
- 安装和配置jBPM4,并举个hello.w
- vue-cli3实现分环境打包步骤(给不同的环境配置相对应的打包命令)
- 重新整理 .net core 实践篇—————配置系统之间谍[八](文件监控)
- 阿里云容器服务-配置http直接跳转到https
- MySQL读写分离详解(二)——MyCAT实战配置
- Redis 哨兵之 参数配置优化
- ASP.NET Core的配置(4):多样性的配置来源[下篇]
- 配置并运行Activiti Explorer
- [转]thinkphp在iis下的rewrite伪静态的配置方法
- ubuntu配置清华源
- Apache伪静态配置,支持.htaccess配置方法
- centos7静态IP地址网卡配置ifcfg-ens33 ifcfg-eth0
- 玩转华为ENSP模拟器系列 | 配置IPv4静态路由示例
- 华为运营商级路由器配置示例 | L3VdPdNdv4 over SRv6 TE Policy(静态配置+SRH压缩场景)
- 华为运营商级路由器配置示例 | 静态SRv6 TE Flow Group的Shortcut功能
- 华为运营商级路由器配置示例 | 动态BFD检测IPv4静态路由
- 华为运营商级路由器配置示例 | 静态BFD for IPv4静态路由
- 问题解决:配置静态IP
- 思科三层交换机IPv6静态和默认路由配置
- Mac VMware Fusion CentOS7配置静态IP
- 计算机网络 网络层 静态路由及配置静态路由