实验八IvoverIvto隧道

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

F0/24 61.16.3.1 3.4.1. 实验七 IPv6 over IPv4 6to4隧道
【实验名称】
IPv6 Automatic 6to4 Tunnel 隧道
【实验目的】
在IPv4和IPv6之间建立隧道
【实验知识】
自动隧道技术简介:
这种隧道的建立和拆除是动态的,它的端点根据分组的目的地址确定,适用于单独的主机之间或不经常通信的站点之间。

自动配置的隧道需要站点采用IPv4兼容的IPv6地址,这些站点之间必须有可用的IPv4连接,每个采用这种机制的主机都需要有一个全球唯一的IPv4地址。

采用这种机制不能解决IPv4地址空间耗尽的问题(采用手工配置隧道的站点就不需要IPv4地址)。

另外还有一种危险就是如果把Internet 上全部IPv4路由表包括到IPv6网络中,那么会加剧路由表膨胀的问题。

这种隧道的两个端点都必须支持双协议栈(手工配置就不需要)。

在隧道要经过NAT 设施的情况下这种机制不可用。

【拓扑结构】
【实验设备】
RG-S3760 交换机3台,windows xp pc 机2台,直通双绞线4条
F0/1:
61.16.2.1
F0/1:
3::1/64
F0/24:
1::1/64
PC1(Winxp)
IPv6:1::2/64 PC2(Winxp)
IPv6:3::2/64
tunnel 0: 2002:3d10:0201::/128
S3760-1 S3760-2 S3760-3 图1
F0/1:
61.16.2.2
F0/24 61.16.3.2
【实验过程】
1. 配置交换机
1)配置交换机s3760-1端口f 0/1
S3760-1(config)#ipv6 unicast-routing
S3760-1(config)# interface fast 0/1
S3760-1(config-if)# no switchport
S3760-1(config-if)# ip address 61.16.2.1 255.255.255.0 S3760-1(config-if)# no shutdown
S3760-1(config-if)# exit
2)配置交换机s3760-1端口f 0/24
S3760-1(config-if)# interface fast 0/24
S3760-1(config-if)# no switchport
S3760-1(config-if)# ipv6 address 1::1/64
S3760-1(config-if)# ipv6 enable
S3760-1(config-if)# no ipv6 nd suppress-ra
S3760-1(config-if)# no shutdown
S3760-1(config-if)# exit
S3760-1(config)# end
3)查看交换机s3760-1的配置
S3760-1# show ip interface
(如图1-3)
S3760-1# show ipv6 interface
(如图1-4)
图1-3
图1-4
4)配置交换机s3760-2端口f 0/1
S3760-2(config)# interface fast 0/1
S3760-2(config-if)# no switchport
S3760-2(config-if)# ip address 61.16.2.2 255.255.255.0 S3760-2(config-if)# no shutdown
S3760-2(config-if)# exit
5)配置交换机s3760-2端口f 0/24
S3760-2(config-if)# interface fast 0/24
S3760-2(config-if)# no switchport
S3760-2(config-if)# ip address61.16.3.1 255.255.255.0 S3760-2(config-if)# no shutdown
S3760-2(config-if)# exit
S3760-2(config)# end
6)查看交换机s3760-2的配置
S3760-2# show ip interface
(如图1-7)
图1-7
7)配置交换机s3760-3端口f 0/1
S3760-1(config)#ipv6 unicast-routing
S3760-3(config-if)# interface fast 0/1
S3760-3(config-if)# no switchport
S3760-3(config-if)# ipv6 address 3::1/64
S3760-3(config-if)# ipv6 enable
S3760-3(config-if)# no ipv6 nd suppress-ra
S3760-3(config-if)# no shutdown
S3760-3(config-if)# exit
8)配置交换机s3760-3端口f 0/24
S3760-3(config-if)# interface fast 0/24
S3760-3(config-if)# no switchport
S3760-3(config-if)# ip address 61.16.3.2 255.255.255.0 S3760-3(config-if)# no shutdown
S3760-3(config-if)# exit
S3760-3(config)# end
9)查看交换机s3760-3的配置
S3760-3# show ip interface
(如图1-10)
S3760-3# show ip6 interface
(如图1-11、1-12)
图1-10
图1-11
图1-12
2.配置隧道
1)配置S3760-1上的隧道
S3760-1(config)# interface tunnel 0
S3760-1(config-if)# tunnel mode ipv6ip 6to4
S3760-1(config-if)# tunnel source f 0/1
S3760-1(config-if)# ipv6 address 2002:3d10:0201::1/128 S3760-1(config-if)# exit
2)查看S3760-1上的隧道
S3760-1# show interfaces tunnel 0
(如图2-2)
图2-2
3)配置S3760-3上的隧道
S3760-3(config)# interface tunnel 0
S3760-3(config-if)# tunnel mode ipv6ip 6to4
S3760-3(config-if)# tunnel source f 0/24
S3760-3(config-if)# ipv6 address 2002:3d10:0302::1/128 S3760-3(config-if)# exit
4)查看S3760-3上的隧道
S3760-3# show interfaces tunnel 0
(如图2-4)
图2-4
3.配置交换机上的路由
1)配置S3760-1上的路由
S3760-1(config)# ip route 0.0.0.0 0.0.0.0 61.16.2.2 S3760-1(config)# ipv6 route 2002: :/16 tunnel 0
S3760-1(config)# ipv6 route : :/0 2002:3d10:0302::1 S3760-1(config)# end
2)查看S3760-1上的路由
S3760-1#show ip route
(如图3-2)
图3-2
3)配置S3760-2上的路由
S3760-2(config)# ip route 0.0.0.0 0.0.0.0 61.16.3.2 S3760-2(config)# end
4)查看S3760-2上的路由
S3760-2# show ip route
(如图3-4)
图3-4
5)配置S3760-3上的路由
S3760-3(config)# ip route 0.0.0.0 0.0.0.0 61.16.3.1 S3760-3(config)# ipv6 route 2002: :/16 tunnel 0
S3760-3(config)# ipv6 route : :/0 2002:3d10:0201::1 S3760-3(config)# exit
6)查看S3760-3上的路由
S3760-3# show ip route
(如图3-6)
图3-6
4.查看主机连通性
PC1 ping PC2
C:\>ping 3::2
(如图4-1)
PC2 ping PC1
C:\>ping 1::2
(如图4-2)
图4-1
图4-2。

相关文档
最新文档