IPv6地址配置

实验任务

(1)掌握如何在路由器及PC上配置IPv6地址

(2)掌握如何用IPv6 ping命令进行IPv6地址可达性检查

(3)掌握如何用命令来查看IPv6地址配置

实验过程

在RT上的配置

<H3C>sys

System View: return to User View with Ctrl+Z.

[H3C]int g0/0

[H3C-GigabitEthernet0/0]dis ipv6 int g0/0

IP6Stack is not configured.

配置链路本地地址

[H3C-GigabitEthernet0/0]ipv6 address fe80::1 link-local

配置全球唯一地址

[H3C-GigabitEthernet0/0]ipv6 address 1::1 64

查看配置情况

[H3C-GigabitEthernet0/0]dis ipv6 int g0/0

GigabitEthernet0/0 current state: UP

Line protocol current state: UP

IPv6 is enabled, link-local address is FE80::1 [TENTATIVE]

Global unicast address(es):

1::1, subnet is 1::/64 [TENTATIVE]

Joined group address(es):

FF02::1

FF02::2

FF02::1:FF00:1

MTU is 1500 bytes

ND DAD is enabled, number of DAD attempts: 1

ND reachable time is 30000 milliseconds

ND retransmit interval is 1000 milliseconds

Hosts use stateless autoconfig for addresses

在PC上的配置

安装IPv6协议并启用

C:\>netsh interface ipv6 install

确定。

C:\>netsh

netsh>interface ipv6

netsh interface ipv6>show interface

正在查询活动状态...

索引 Met   MTU    状态          名称

---- ----  -----  ------------  -----

5     0   1500  已连接           VirtualBox Host-Only Network

4     2   1280  已断开           Teredo Tunneling Pseudo-Interface

3     1   1280  已连接           6to4 Pseudo-Interface

2     1   1280  已连接           Automatic Tunneling Pseudo-Interface

1     0   1500  已连接           Loopback Pseudo-Interface

查看自动配置的链路本地地址

C:\>ipconfig /all

Ethernet adapter 本地连接 6:

Connection-specific DNS Suffix  . :

Description . . . . . . . . . . . : Microsoft Loopback Adapter

Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

Autoconfiguration IP Address. . . : 169.254.25.129

Subnet Mask . . . . . . . . . . . : 255.255.0.0

IP Address. . . . . . . . . . . . : fe80::4cff:fe4f:4f50%8

Default Gateway . . . . . . . . . :

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1

fec0:0:0:ffff::2%1

fec0:0:0:ffff::3%1

netsh interface ipv6>show address 8

正在查询活动状态...

单一广播地址      : fe80::4cff:fe4f:4f50

类型              : 链接

DAD 状态          : 首选项

有效寿命          : infinite

首选寿命          : infinite

作用域            : 链接

前缀起源          : 著名

后缀起源          : 链路层地址

没有找到项目。

netsh interface ipv6>add address 8 fe80::2

确定。

netsh interface ipv6>add address 8 1::2

确定。

netsh interface ipv6>show address 8

正在查询活动状态...

单一广播地址      : 1::2

类型              : 手动

DAD 状态          : 首选项

有效寿命          : infinite

首选寿命          : infinite

作用域            : 全局

前缀起源          : 手动

后缀起源          : 手动

单一广播地址      : fe80::2

类型              : 手动

DAD 状态          : 首选项

有效寿命          : infinite

首选寿命          : infinite

作用域            : 链接

前缀起源          : 手动

后缀起源          : 手动

单一广播地址      : fe80::4cff:fe4f:4f50

类型              : 链接

DAD 状态          : 首选项

有效寿命          : infinite

首选寿命          : infinite

作用域            : 链接

前缀起源          : 著名

后缀起源          : 链路层地址

没有找到项目。

测试IPv6地址可达性

在RT上测试PC

[H3C-GigabitEthernet0/0]ping ipv6 -i g0/0 fe80::2

Ping6(56 data bytes) FE80::1 --> FE80::2, press CTRL_C to break

56 bytes from FE80::2, icmp_seq=0 hlim=128 time=1.150 ms

56 bytes from FE80::2, icmp_seq=1 hlim=128 time=0.662 ms

56 bytes from FE80::2, icmp_seq=2 hlim=128 time=0.691 ms

56 bytes from FE80::2, icmp_seq=3 hlim=128 time=0.543 ms

56 bytes from FE80::2, icmp_seq=4 hlim=128 time=0.732 ms

--- Ping6 statistics for fe80::2 ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.543/0.756/1.150/0.207 ms

[H3C-GigabitEthernet0/0]%Oct  7 12:30:10:910 2016 H3C PING/6/PING_STATISTICS: Ping6 statistics for fe80::2: 5 packets transmitted, 5 packets received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.543/0.756/1.150/0.207 ms.

[H3C-GigabitEthernet0/0]

[H3C-GigabitEthernet0/0]ping ipv6 -i g0/0 1::2

Ping6(56 data bytes) 1::1 --> 1::2, press CTRL_C to break

56 bytes from 1::2, icmp_seq=0 hlim=128 time=1.447 ms

56 bytes from 1::2, icmp_seq=1 hlim=128 time=0.708 ms

56 bytes from 1::2, icmp_seq=2 hlim=128 time=0.703 ms

56 bytes from 1::2, icmp_seq=3 hlim=128 time=0.691 ms

56 bytes from 1::2, icmp_seq=4 hlim=128 time=0.688 ms

--- Ping6 statistics for 1::2 ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.688/0.847/1.447/0.300 ms

[H3C-GigabitEthernet0/0]%Oct  7 12:32:36:806 2016 H3C PING/6/PING_STATISTICS: Ping6 statistics for 1::2: 5 packets transmitted, 5 packets received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.688/0.847/1.447/0.300 ms.

[H3C-GigabitEthernet0/0]

[H3C-GigabitEthernet0/0]ping ipv6 -i g0/0 fe80::4cff:fe4f:4f50

Ping6(56 data bytes) FE80::1 --> FE80::4CFF:FE4F:4F50, press CTRL_C to break

56 bytes from FE80::4CFF:FE4F:4F50, icmp_seq=0 hlim=128 time=0.769 ms

56 bytes from FE80::4CFF:FE4F:4F50, icmp_seq=1 hlim=128 time=0.721 ms

56 bytes from FE80::4CFF:FE4F:4F50, icmp_seq=2 hlim=128 time=0.681 ms

56 bytes from FE80::4CFF:FE4F:4F50, icmp_seq=3 hlim=128 time=0.717 ms

56 bytes from FE80::4CFF:FE4F:4F50, icmp_seq=4 hlim=128 time=0.740 ms

--- Ping6 statistics for fe80::4cff:fe4f:4f50 ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.681/0.726/0.769/0.029 ms

[H3C-GigabitEthernet0/0]%Oct  7 12:33:50:652 2016 H3C PING/6/PING_STATISTICS: Ping6 statistics for fe80::4cff:fe4f:4f50: 5 packets transmitted, 5 packets received, 0.0% packet loss, round-trip min/avg/max/std-dev = 0.681/0.726/0.769/0.029 ms.

在PC上测试RT

C:\Documents and Settings\Administrator>ping fe80::1%8

Pinging fe80::1%8 with 32 bytes of data:

Reply from fe80::1%8: time<1ms

Reply from fe80::1%8: time<1ms

Reply from fe80::1%8: time<1ms

Reply from fe80::1%8: time<1ms

Ping statistics for fe80::1%8:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Documents and Settings\Administrator>

C:\Documents and Settings\Administrator>ping 1::1

Pinging 1::1 with 32 bytes of data:

Reply from 1::1: time=1ms

Reply from 1::1: time<1ms

Reply from 1::1: time<1ms

Reply from 1::1: time<1ms

Ping statistics for 1::1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

实验1_IPv6地址配置的更多相关文章

  1. IPv6实验1_IPv6地址配置

    IPv6地址配置 实验任务 (1)掌握如何在路由器及PC上配置IPv6地址 (2)掌握如何用IPv6 ping命令进行IPv6地址可达性检查 (3)掌握如何用命令来查看IPv6地址配置 实验过程 在R ...

  2. ipv6地址配置实验(GNS3/ENSP)

    实验拓扑: IPV6地址配置如图所示, 配置ipv6指令(以R2为例,R1类似): int e1/2 R2(config-if)#ipv6 address 2001:db08:acad:1::2/64 ...

  3. 实验 MPLS LDP配置

    实验 MPLS LDP配置 一.学习目的 掌握启用和关闭MPLS的方法 掌握启用和关闭MPLS LDP配置方法 掌握使用MPLS LDP配置LSP的方法 二.拓扑图 三.场景 你是公司的网管员,公司的 ...

  4. VLAN实验2(配置Trunk接口)

    本实验基于<HCNA网络技术实验指南> 本实验使用eNSP软件 原理概述: 在以太网中,通过划分VLAN来隔离广播域和增强网络通信的安全性.以太网通常由 多台交换机组成,为了使VLAN的数 ...

  5. Network基础(一):配置计算机名及工作组、TCP/IP地址配置、网络连通性测试

    一.配置计算机名及工作组 目标: 本例要求为修改计算机名并加入工作组: 设置计算机名:姓名拼音 设置工作组名:TARENA-NETWORK 方案: 修改Windows 2008服务器的计算机名(可设为 ...

  6. centos下网络配置方法(网关、dns、ip地址配置)

    本文介绍了centos网络配置的方法,centos网络配置主要包括dns.网关.IP地址: 1.IP地址配置: /etc/sysconfig/network-scripts/ifcfg-eth0 2. ...

  7. ubuntu11.0静态IP地址配置

    1. 静态IP地址配置 配置文件路径:/etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet ...

  8. linux 静态地址配置选项

    最近使用静态地址配置linux, 配置的时候突然不知道配置选项具体内容了,这里面记录一下配置:适用于 ipv4 网络 [root@dhcp-- ~]# cat /etc/sysconfig/netwo ...

  9. 软件包管理:rpm包管理-yum在线管理-IP地址配置和网络yum源

    只需告诉系统你想安装那个包,剩下的所有依赖问题yum都会解决. 有些情况下不能上网,但可以使用光盘. centos的yum是免费的.redhatyum付费. yum管理的其实同样是rpm包.并没有yu ...

随机推荐

  1. No matching provisioning profile found: Your build settings specify a provis...

    解决办法: (1)右键.xcodeproj文件,显示包内容--->找到project.pbxproj文件打开--->查找“PROVISIONING_PROFILE"---> ...

  2. [小菜随笔]新手使用appium+python进行自动化测试过程中webdriver.Remote报错的错误分析方法(带实例)

    很多人刚开始使用python+appium去执行APP自动化的时候经常会遇到webdriver.Remote,报错位置指向都是driver = webdriver.Remote('http://127 ...

  3. 009-Scala的内部类实战详解

    009-Scala的内部类实战详解 Scala内部类详解 与java的区别 java的内部类是从属于外部类的 Scala的内部类是从属于对象的 内部类在调用方法的时候传递的内部类只能是由自己本身 欢迎 ...

  4. Parse xml/json[xpath/jpath]

    import groovy.util.XmlSlurper import groovy.util.XmlParser import com.eviware.soapui.support.GroovyU ...

  5. JS 4 新特性:混合属性(mixins)之二

    Mixins many classes[混合许多个类] 迄今为止,我们已经学会了简单的继承,我们还能够通过使用mixins处理机制来混合许多类.源于这种理念是非常简单的:我们能够把许多个类最终混合到一 ...

  6. Bootstrap-datetimepicker年月日

    <div class="input-group date form_date" data-date="" data-date-format="y ...

  7. python时间时分秒与秒数的互相转换

    受到Unix时间戳的启发,我发现时间转成秒数后会非常好处理,在程序当中不再是以字符串的形式处理,不管时间的加减还是获取随机的时间点都变得非常方便, 如果有需要,也很容易转换成需要的时间格式. 一:时间 ...

  8. SparkStreaming运行出现 java.lang.NoClassDefFoundError: org/apache/htrace/Trace 错误

    1.简介 最近在摸索利用sparkstreaming从kafka中准实时的读取数据,并将在读取的过程中,可以做一个简单的分析,最后将分析结果写入hbase中. 2.出现的问题 (1)将从kafka中读 ...

  9. SparkMLlib之 logistic regression源码分析

    最近在研究机器学习,使用的工具是spark,本文是针对spar最新的源码Spark1.6.0的MLlib中的logistic regression, linear regression进行源码分析,其 ...

  10. 网络电视精灵~分析~~~~~~简单工厂模式,继承和多态,解析XML文档,视频项目

    小总结: 所用技术: 01.C/S架构,数据存储在XML文件中 02.简单工厂模式 03.继承和多态 04.解析XML文档技术 05.深入剖析内存中数据的走向 06.TreeView控件的使用 核心: ...