您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页IPv6手工隧道配置与验证实验

IPv6手工隧道配置与验证实验

来源:化拓教育网
IPv6手工隧道配置与验证实验

【实验目的】

熟悉IPv6手工隧道的概念。

掌握IPv6和IPv4共存的实现方法。

掌握IPv6手工隧道的配置。

验证配置。

【实验拓扑】

实验拓扑如下图所示。

实验拓扑

设备参数如表所示。

设备参数表

设备

接口

子网掩码位数

默认网关

R1

S1/0

192.168.12.1

24

N/A

F0/0

2000:f106:f208:12::1

N/A

R2

S1/0

192.168.12.2

24

N/A

F0/0

2000:f106:f208:12::2

N/A

【实验内容】

1.基本配置

(1)R1的基本配置

(2)R2的基本配置

Router>en

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2

R2(config)#interface s0/0/0

R2(config-if)#ip address 192.168.12.2 255.255.255.0

R2(config-if)#no shutdown

R2(config-if)#interface f0/0

R2(config-if)#ipv6 enable

R2(config-if)#ipv6 address 2000:f106:f208:2::1/

R2(config-if)#no shutdown

R2(config-if)#exit

R2(config)#interface tunnel 0

R2(config-if)#tunnel mode ipv6ip

R2(config-if)#ipv6 enable

R2(config-if)#tunnel source s0/0/0

R2(config-if)#tunnel destination 192.168.12.2

R2(config-if)#exit

R2(config)#ipv6 unicast-routing

R2(config)#ipv6 route 2000:f106:f208:2::/ tunnel0

R2(config)#end

R2#write

Building configuration...

[OK]

R2#

R2(config)#ipv6 unicast-routing

R2(config)#end

R2#write

Building configuration...

[OK]

R2#

(3)PC1~2的基本配置

PC1> ip auto

GLOBAL SCOPE      : 2000:f106:f208:1:2050:79ff:fe66:6800/

ROUTER LINK-LAYER : ca:01:4e:4c:00:00

PC1> show

NAME   IP/MASK              GATEWAY           MAC                LPORT  RHOST:PORT

PC1    0.0.0.0/0            0.0.0.0           00:50:79:66:68:00  10014  127.0.0.1:10015

       fe80::250:79ff:fe66:6800/

       2000:f106:f208:1:2050:79ff:fe66:6800/ eui-

PC1>

PC2> ip auto

GLOBAL SCOPE      : 2000:f106:f208:2:2050:79ff:fe66:6801/

ROUTER LINK-LAYER : ca:02:00:84:00:00

PC2> show

NAME   IP/MASK              GATEWAY           MAC                LPORT  RHOST:PORT

PC2    0.0.0.0/0            0.0.0.0           00:50:79:66:68:01  10016  127.0.0.1:10017

       fe80::250:79ff:fe66:6801/

       2000:f106:f208:2:2050:79ff:fe66:6801/ eui-

PC2>

2.实验调试

(1)查看隧道信息

R1#show interfaces tunnel 0

Tunnel0 is up, line protocol is up

  Hardware is Tunnel

  MTU 17920 bytes, BW 100 Kbit/sec, DLY 50000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation TUNNEL, loopback not set

  Keepalive not set

  Tunnel source 192.168.12.1 (Serial1/0), destination 192.168.12.2

   Tunnel Subblocks:

      src-track:

         Tunnel0 source tracking subblock associated with Serial1/0

          Set of tunnels with source Serial1/0, 1 member (includes iterators), on interface <OK>

  Tunnel protocol/transport IPv6/IP

//隧道模式为“ipvip”

  Tunnel TTL 255

  Tunnel transport MTU 1480 bytes

  Tunnel transmit bandwidth 8000 (kbps)

  Tunnel receive bandwidth 8000 (kbps)

  Last input never, output 00:01:33, output hang never

  Last clearing of "show interface" counters 01:03:39

  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: fifo

  Output queue: 0/0 (size/max)

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     0 packets input, 0 bytes, 0 no buffer

     Received 0 broadcasts (0 IP multicasts)

     0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

     41 packets output, 4832 bytes, 0 underruns

     0 output errors, 0 collisions, 0 interface resets

     0 unknown protocol drops

     0 output buffer failures, 0 output buffers swapped out

//以上9行输出显示该隧道的流量收发情况

R1#

(2)调试隧道信息

R1#debug tunnel

Tunnel Interface debugging is on

R1#

*Jun 26 22:03:08.055: Tunnel0: IPv6/IP adjacency fixup, 192.168.12.1->192.168.12.2, tos set to 0x0

//对出站数据进行封装

R1#

*Jun 26 22:03:09.071: Tunnel0: IPv6/IP adjacency fixup, 192.168.12.1->192.168.12.2, tos set to 0x0

*Jun 26 22:03:10.067: Tunnel0: IPv6/IP adjacency fixup, 192.168.12.1->192.168.12.2, tos set to 0x0

R1#

*Jun 26 22:03:11.071: Tunnel0: IPv6/IP adjacency fixup, 192.168.12.1->192.168.12.2, tos set to 0x0

R1#

*Jun 26 22:03:12.087: Tunnel0: IPv6/IP adjacency fixup, 192.168.12.1->192.168.12.2, tos set to 0x0

R1#

(3)Ping测试

PC1> ping 2000:f106:f208:2:2050:79ff:fe66:6801

2000:f106:f208:2:2050:79ff:fe66:6801 icmp6_seq=1 timeout

2000:f106:f208:2:2050:79ff:fe66:6801 icmp6_seq=2 timeout

2000:f106:f208:2:2050:79ff:fe66:6801 icmp6_seq=3 timeout

2000:f106:f208:2:2050:79ff:fe66:6801 icmp6_seq=4 timeout

2000:f106:f208:2:2050:79ff:fe66:6801 icmp6_seq=5 timeout

PC2> ping 2000:f106:f208:1:2050:79ff:fe66:6800/

2000:f106:f208:1:2050:79ff:fe66:6800 icmp6_seq=1 timeout

2000:f106:f208:1:2050:79ff:fe66:6800 icmp6_seq=2 timeout

2000:f106:f208:1:2050:79ff:fe66:6800 icmp6_seq=3 timeout

2000:f106:f208:1:2050:79ff:fe66:6800 icmp6_seq=4 timeout

2000:f106:f208:1:2050:79ff:fe66:6800 icmp6_seq=5 timeout

【知识点】

在这个实验中,涉及到以下几个知识点:

以上是在这个实验中涉及到的主要知识点,包括IPv6手工隧道的概念、IPv6和IPv4的共存实现方法、配置IPv6和IPv4的基本参数、配置IPv6隧道、验证配置和调试隧道,以及使用Ping测试来验证连通性。

不要害怕犯错,因为犯错是学习的一部分。每次失败都是离成功更近一步的机会,所以勇敢地尝试吧!

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务