当前位置:网站首页>IPv6表示方法与配置案例
IPv6表示方法与配置案例
2022-07-29 05:26:00 【Doctor xu】
1 IPv6地址格式
IPv4地址长度32位,IPv6的地址长度为128位,是IPv4地址长度的4倍,采用十六进制表示,表示方式如下:
冒号分隔十六进制表示法:
格式为X:X:X:X:X:X:X:X,其中每个X表示地址中的16个二进制B,十六进制表示如下:
2403:C980:7004:0000:0000:0000:0000:0001/128
这种表示法中,每个X的前导0是可以省略的,例如:
2403:C980:7004:0:0:0:0:1/128
同时可以把连续的一段0压缩为::,例如:
2403:C980:7004::1/128
::规定只能出现一次,否则无法准确表示地址,例如:
2403:0:0:7004:0:0:0:1/128 和
2403:0:0:0:7004:0:0:1/128 都可以表示为
2403::7004::1/128 这样就无法有效区分
2 IPv6地址配置(以华为CE12808交换机为例,终端、网络设备类似)
(1)确定设备使用IPv6功能是否需要授权(华为CE12808需导入IPv6授权才能使用IPv6功能,授权过期后配置仍然存在,再次导入激活即可)
(2)进入物理接口或虚接口,开启IPv6功能,配置地址
interface G1/0/1或者interface vlanif 100
ipv6 enable
ipv6 add 2403:c980:7004::ac13:ff13 125
(3)静态路由配置
ipv6 route-static 2403:c980:7004::ac13:0 112 2403:c980:7004::ac13:ff13
ipv6 route-static 0:0:0:0:0:0:0:0 0 2403:c980:7004::ac13:ff13
dis ipv6 routing-table
3 连通性测试(互联网测试需注意电脑是否有IPv6网络,若办公地点互联网没有IPv6网络,连手机热点即可)
华为CE12808
ping ipv6 2403:c980:7004::ac13:ff13
tracert ipv6 2403:c980:7004::ac13:ff13
Windows终端
ping -6 2403:c980:7004::ac13:ff13
Centos7.6
ping6 2403:c980:7004::ac13:ff13
边栏推荐
- Rowkey design
- IGMP protocol software development experiment
- day14_ Unit test & Date common class & String common class
- EtherCAT主站掉线后,如何保证目标系统免受故障影响?
- 什么是撞库及撞库攻击的基本原理
- 使用STP生成树协议解决网络中的二层环路问题
- Summary of winter vacation training (1.23~1.28) [first tier]
- FIR filter design (2) -- vivado calls IP core to design FIR filter
- Clickhouse failed to import CSV without error but no data
- DDoS攻击与CC攻击的区别
猜你喜欢

通过os-shell引发的mysql拿shell的思考

Joint use skills of joiner.on and stream().Map

Vivado IP核之复数浮点数除法 Floating-point

day10_ Exception handling & enumeration

day02_ Basic grammar

day06_类与对象

软件测试的优势有哪些?看看你了解多少.....

Arrays & object & System & Math & random & Packaging

Sequence list and linked list

day03_ 1_ Process control
随机推荐
使用STP生成树协议解决网络中的二层环路问题
虹科案例 | PAC:一种整合了softPLC控制逻辑、HMI和其他服务功能的集成控制解决方案
Merkle tree existential function modified for the first time
Multithreaded server programming
Use of for statement in Verilog
四、 局域网和城域网
FPGA里两个数的大小直接进行比较就可以吗?
Raw advanced socket experiment
RAW高级套接口实验
Merkle Tree 存在性功能第一次修改
day16-集合上
Leetcode刷题记录
Scanbasepackages scanning range configuration
虹科Automation softPLC | 虹科KPA MoDK运行环境与搭建步骤(3)——MoDK例程测试
虹科Automation softPLC | MoDK运行环境与搭建步骤(1)——运行环境简介
day03_ 2_ task
Idea installing Scala
FPGA - odd even frequency division and decimal frequency division code routine
day17_ Under collection
Explain the difference between FIR filter and IIR filter in detail