1、实验九:IPv6技术与系统集成(1) ———————————————————————————————— 作者: ———————————————————————————————— 日期: 13 个人收集整理 勿做商业用途 上机报告 姓名
2、 学号 专业班级 计科普1002 课程名称 网络系统集成 指导教师 机房名称 (I520) 上机日期 2012 年 12月 1 日 上机项目名称 实验九:IPv6技术与系统集成(1) 上机步骤及内容: 一、实验目的 通过实验理解IPV6的地址结构,掌握路由器IPV6地址、静态路由配置方法、掌握RIPng配置方法与基本原理。 二、实验要求 1.建立PC和路由器的连接; 2.配置RT1和RT2之间的静态路由; 3.利用RIPng建立RT3和RT1、RT3和RT2之间的IPV6可达性; 4.理解每一步实验的作用,并记录在实验报告上; 5
3、.实验结束后上缴实验报告 三、实验仪器设备和材料清单 1.具备两个以太网端口和广域网端口的路由器3台 2.两台具备以太网接口的PC机,连接路由器的端口、PC的IP地址可自己分配和设置 四、实验内容 根据下面的拓扑图,完成IPV6的基本配置与简要分析。 图 1。1 实验组网图 1.建立PC和路由器的连接 2.配置路由器之间的静态路由 3.利用RIPng建立路由器之间的IPV6可达性 五、实验步骤 1.建立PC—路由器IPv6连接 (1)PC上安装IPv6协议; A、 Windows XP 用户 可以采用命令行模式的安装或者图形界面的安装。
4、a 采用命令行模式的安装 1)开始→运行→输入“cmd” 回车。如图1所示: 图1.2 打开cmd 2)在命令窗口中输入“ipv6 install” 回车,显示“succeeded”,表示安装完成。如图2所示: 图 1。3 安装ipv6 b图形界面的安装 1)打开“控制面板”的“网络连接”项,选择“本地连接” →“属性”。如图2所示: 图1.4 控制面板 2)点击“安装”按钮,选择“协议",添加“Microsoft TCP/IP 版本6"即可。如图4所示: 图1。5 安装完成 B、Windows 7 用户 Windows 7下,
5、IPv6是预安装的,同样只需要检查一下网络连接的属性即可。如图5、图6所示: 图1。6 检查网络连接 图 1.7 Windows 7 网络连接的属性 (2)在路由器RT1上作如下配置: 全局使能IPv6;配置接口IPv6地址;在接口上使能路由器宣告功能。 [RT1]interface Ethernet 0/1 [RT1—Ethernet0/1]ipv6 address 10::1/64 [RT1—Ethernet0/1] %Dec 7 09:53:05:368 2012 RT1 IFNET/4/UPDOWN: Protocol IPv6 on the
6、 interface Ethernet0/1 is UP [RT1-Ethernet0/1]undo ipv6 nd ra halt [RT1—Ethernet0/1]quit [RT1]interface Ethernet 0/0 [RT1-Ethernet0/0]ipv6 address 20::1/64 [RT1-Ethernet0/0] %Dec 7 09:54:50:837 2012 RT1 IFNET/4/UPDOWN: Protocol IPv6 on the interface Ethernet0/0 is UP 2.建立RT1和
7、RT2之间的IPv6连接 在RT1和RT2之间使用静态路由建立IPv6可达性。 RT1上的配置 [RT1]ipv6 route—static :: 0 20::2 RT2上的配置 [rt2]interface Ethernet 0/1 [rt2—Ethernet0/1]ipv6 add 20::2/64 [rt2-Ethernet0/1]quit [rt2]interface Ethernet 0/0 [rt2—Ethernet0/0]ipv6 address 30::1/64 [rt2—Ethernet0/0]quit [rt2]ipv6 route—static 1
8、0:: 64 20::1 3.在RT3和RT2之间运行RIPng (1)全局使能RIPng; (2)接口使能RIPng RT2上的配置 [rt2]ripng 1 [rt2-ripng—1]import—route direct cost 1 [rt2-ripng-1]import-route static cost 2 [rt2-ripng-1]quit RT3上的配置 [rt3]interface Ethernet 0/1 [rt3-Ethernet0/1]ipv6 add 30::2/64 [rt3-Ethernet0/1]ripng 1 enable [r
9、t3-Ethernet0/1]quit [rt3]interface Ethernet 0/0 [rt3-Ethernet0/0]ipv6 add 40::1/64 [rt3—Ethernet0/0]undo ipv6 nd ra halt [rt3—Ethernet0/0]ripng 1 enable 4.验证配置 (1)查看端口信息,由下面的端口信息我们可以知道链路本地址没有生效. 〈RT1>display int e0/1 Ethernet0/1 current state: UP Line protocol current state: DOWN Des
10、cription: Ethernet0/1 Interface The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet protocol processing : disabled IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e26d—7b60 IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f—e26d—7b60 Media type is twist
11、ed pair, loopback not set, promiscuous mode not set 100Mb/s, Full—duplex, link type is autonegotiation Output flow-control is disabled, input flow—control is disabled Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0 Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0
12、 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0 Last clearing of counters: Never Last 300 seconds input rate 397.60 bytes/sec, 3180 bits/sec, 3.59 packets/sec Last 300 seconds output rate 25.46 bytes/sec, 203 bits/sec, 0.29 packets/sec Input: 2141 packets, 230846 byte
13、s, 2141 buffers 758 broadcasts, 1234 multicasts, 0 pauses 0 errors, 0 runts, 0 giants 0 crc, 0 align errors, 0 overruns 0 dribbles, 0 drops, 0 no buffers Output:176 packets, 15280 bytes, 176 buffers 0 broadcasts, 11 multicasts, 0 paus
14、es 0 errors, 0 underruns, 0 collisions 0 deferred, 0 lost carriers 查看我们pc1个人机的ipv6地址分配状况,如下图所示.由图中我们可以知道,10::是从路由器学习而来的IPV6前缀,21e:90ff:fe09:524d是由pc的mac地址算出来的。 图 1.8 ipv6地址 (2)查看ipv6的路由表信息 〈RT1>dis ipv6 routing-table Routing Table : Destinations : 7 Ro
15、utes : 7 Destination: ::/0 Protocol : Static NextHop : 20::2 Preference: 60 Interface : Eth0/0 Cost : 0 Destination: ::1/128 Protoco
16、l : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination: 10::/64 Protocol : Direct NextHop : 10::1 Prefere
17、nce: 0 Interface : Eth0/1 Cost : 0 Destination: 10::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost :
18、0 Destination: 20::/64 Protocol : Direct NextHop : 20::1 Preference: 0 Interface : Eth0/0 Cost : 0 Destination: 20::1/128 Protocol : Dir
19、ect NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination: FE80::/10 Protocol : Direct NextHop : :: Preference: 0
20、Interface : NULL0 Cost : 0
(3)显示配置完后路由表的全部信息
21、 Preference : 60 RelayNextHop : :: Tag : 0H Neighbor : :: ProcessID : 0 Interface : Ethernet0/0 Protocol : Static State : Active Adv GotQ
22、 Cost : 0 Tunnel ID : 0x0 Label : NULL Age : 940sec Destination : ::1 PrefixLength : 128 NextHop : ::1 Preference : 0 RelayN
23、extHop : :: Tag : 0H Neighbor : :: ProcessID : 0 Interface : InLoopBack0 Protocol : Direct State : Active NoAdv Cost : 0 Tunn
24、el ID : 0x0 Label : NULL Age : 2164sec Destination : 10:: PrefixLength : 64 NextHop : 10::1 Preference : 0 RelayNextHop : ::
25、 Tag : 0H Neighbor : :: ProcessID : 0 Interface : Ethernet0/1 Protocol : Direct State : Active Adv Cost : 0 Tunnel ID : 0x0
26、 Label : NULL Age : 2029sec Destination : 10::1 PrefixLength : 128 NextHop : ::1 Preference : 0 RelayNextHop : :: Tag : 0H Neighbor : ::
27、 ProcessID : 0 Interface : InLoopBack0 Protocol : Direct State : Active NoAdv Cost : 0 Tunnel ID : 0x0 Label : NULL Age : 2
28、033sec Destination : 20:: PrefixLength : 64 NextHop : 20::1 Preference : 0 RelayNextHop : :: Tag : 0H Neighbor : :: ProcessID
29、 : 0 Interface : Ethernet0/0 Protocol : Direct State : Active Adv Cost : 0 Tunnel ID : 0x0 Label : NULL Age : 1928sec Destination : 20::1
30、 PrefixLength : 128 NextHop : ::1 Preference : 0 RelayNextHop : :: Tag : 0H Neighbor : :: ProcessID : 0 Interface : InLoopBack0
31、 Protocol : Direct State : Active NoAdv Cost : 0 Tunnel ID : 0x0 Label : NULL Age : 1931sec Destination : FE80:: PrefixLength : 10 Nex
32、tHop : :: Preference : 0 RelayNextHop : :: Tag : 0H Neighbor : :: ProcessID : 0 Interface : NULL0 Protocol : Direct S
33、tate : Active NoAdv Cost : 0 Tunnel ID : 0x0 Label : NULL Age : 2037sec 六、实验报告要求 1.画出拓扑图,写出各步骤的配置命令,并记录你所配置的关键命令含义 2.记录实验现象并记录验证结果 七、思考题 1.配置完后,在RT3上的路由表中,所有RIP路由下一跳都是链路本地地址,请问这样做有什么好处? 使用链路
34、本地地址只能连接到同一本地链路的节点之间使用,作为目的地址的数据报文不会被转发到其他链路上. 2.设法抓取RT2和RT3之间的RIPng交互报文,并请解释这些报文的具体含义? (1)在R3上做端口镜像,E0/0为监控端口,serial2/0为被监控端口,配置如下: [rt3]mirroring-group 1 local [rt3]mirroring-group 1 mirroring—port Serial 1/0 both [rt3]int e0/0 [rt3—Ethernet0/0]mirroring-port both [rt3—Ethernet0/0]quit (
35、2)进行实验验证,查看是否能够让网络中的pcping通。 图 1.10 ping命令 (3)打开抓包软件我们可以抓获到RT2与RT3之间的ripng交互报文。 图 1。9 ripng交互报文 由报文得知,我们的Source Address和Destination Address分别是 FE80:0000:0000:0000:020F:E2FF:FE6D:79A7, FF02:0000:0000:0000:0000:0000:0000:0009.由Command: 2 Response containing network distance pairs我们可以知道,我这个包是回应报文。协议时udp协议. 结果分析与体会: 本次实验主要的讲解就是关于ipv6的基本配置,我实验之前我们要了解知道ipv6的地址结构,这样有助于理解配置文档。而且在配置的时候我们要知道实验室中的电脑都是运用的ipv4,所以我们要安装ipv6协议。实验很简单,但是就是要看我们怎么去理解。 上机成绩、评语 指导教师签名 批改日期






