思科模拟器路由器配置上主机如何配置ipv6

使用思科模拟器Packet Tracer与GNS3配置IPv6隧道
配置静态路由:
R1(config)#ipv6route1::/48tunnel0
配置IP/IPv6地址:
Router#conft
Router(config)#hostnameR2
R2(config)#ints0/0
R2(config-if)#noshu
R2(config-if)#encapsulationppp
R2(config-if)#ipadd133.32.3..0
R2(config-if)#exit
R2(config)#ipv6unicast-routing
R2(config)#intf1/0
R2(config-if)#noshu
R2(config-if)#ipv6add1:1::1/64
R2(config-if)#exit
R2(config)#
配置6to4隧道:
R2(config)#inttunnel0
R2(config-if)#noipaddress
R2(config-if)#tunnelsources0/0
R2(config-if)#ipv6unnumberedf1/0
R2(config-if)#tunnelmodeipv6ip6to4
R2(config-if)#exit
R2(config)#
配置静态路由:
R2(config)#ipv6route1::/48tunnel0
配置IPv6地址:
Router#conft
Router(config)#hostnameHostA
HostA(config)#ipv6unicast-routing
HostA(config)#intf0/0
HostA(config)#noshu
HostA(config-if)#ipv6add1:1::2/64
HostA(config-if)#exit
HostA(config)#
配置默认路由:
HostA(config)#ipv6route::/:201:1::1
配置IPv6地址:
Router#conft
Router(config)#hostnameHostB
HostB(config)#ipv6unicast-routing
HostB(config)#intf0/0
HostB(config)#noshu
HostB(config-if)#ipv6add1:1::2/64
HostB(config-if)#exit
HostB(config)#
配置默认路由:
HostB(config)#ipv6route::/:301:1::1
(3)实验验证:连通性测试
在HostA上进行验证
HostA#pingipv:301:1::2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto1:1::2,timeoutis2seconds:
Successrateis100percent(5/5),round-tripmin/avg/max=40/54/68ms
在HostB上进行验证
HostB#pingipv:201:1::2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto1:1::2,timeoutis2seconds:
Successrateis100percent(5/5),round-tripmin/avg/max=36/53/60ms
至此,6to4隧道的实验完成!
3.ISATAP隧道
ISATAP隧道实验可以使用Packet Tracer来完成路由器的核心配置,但是无法配置双栈主机,所以下面的配置只是针对路由器,不提供主机的配置,同时也不提供验证,如果需要完整完成该实验,建议使用GNS3桥接Vmware虚拟机来完成。
(1)网络拓扑
由于路由器需要使用到串行口,所以需要分别在两个路由器上添加相应的模块,这里添加的模块为NM-4A/S模块,添加方法如下:
如上图所示,添加模块时,只需要用鼠标点击该模块名称,然后拖动模块到相应的插槽位置就可以了,不过需要注意的是,在添加模块前,请先关闭路由器。
(2)实验配置
关于用户模式的说明,可以参照Manual隧道中的内容,这里不再重复。另外需要注意的是,适当的时候请在特权模式下使用命令write保存配置,否则重启设备后配置会丢失。
配置IP地址:
Router#conft
Router(config)#hostnameR1
R1(config)#ints1/0
R1(config-if)#noshu
R1(config-if)#encapsulationppp
R1(config-if)#ipadd133.32.2..0
R1(config-if)#exit
R1(config)#intf0/0
R1(config-if)#noshu
R1(config-if)#ipadd133.33.2..0
R1(config-if)#exit
R1(config)#
配置IP/IPv6地址:
Router#conft
Router(config)#hostnameR2
R2(config)#ints1/0
R2(config-if)#noshu
R2(config-if)#encapsulationppp
R2(config-if)#ipadd133.32.3..0
R2(config-if)#exit
R2(config)#ipv6unicast-routing
R2(config)#intf0/0
R2(config-if)#noshu
R2(config-if)#ipv6add3ffe:b00:ffff:1::1/64
R2(config-if)#exit
R2(config)#
配置ISATAP隧道:
R2(config)#inttunnel0
R2(config-if)#tunnelsources1/0
R2(config-if)#tunnelmodeipv6ipisatap
R2(config-if)#noipv6ndrasuppress
R2(config-if)#ipv6add3ffe:c00:ffff:1::/64eui-64
R2(config-if)#exit
R2(config)#
配置静态路由:
R2(config)#iproute133.33.2...1阅读(...) 评论()思科三层交换机三层端口如何配置ipv6地址_百度知道
思科三层交换机三层端口如何配置ipv6地址
我有更好的答案
根据你的要求配置命令如下1:把一个接口配置为三层接口,以G1/1接口为例
configure terminal
interface g 1/1
no switchport
//将接口改为三层接口
ipv6 enable
//开启IPv6
ipv6 address 2001:da8:ac:100::1/64
//配置IPv6地址
no ipv6 nd suppress-ra
//开启IPv6无状态获取地址(类似于IPv4的DHCP功能)
no shutdown
//启用接口
exit2.为主机配置IPv6地址
在XP系统下IPv6并不是自动安装的,需要手动安装IPv6协议,过程如下:右键点击网上邻居,选择属性,再右键点击本地连接选择属性,然后安装,之后选择协议,选择Mcrosoft,接着选择IPv6,之后点确定并关闭属性页
在Win7下则自动安装IPv6协议
安装完成之后继续本地连接的属性在,常规页面里可以看到IPv6协议选项,选择属性就可以设置IPv6的地址了3、查看IPv6路由表
在三层交换机特权模式下(即“#”)提示符下输入show ipv6 route就可以查看IPv6的路由表,如果要查看具体哪个路由协议可以在后面加相关协议名称如show ipv6 route ospf等
采纳率:41%
为您推荐:
其他类似问题
您可能关注的内容
三层交换机的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。 上传我的文档
 下载
 收藏
粉丝量:74
该文档贡献者很忙,什么也没留下。
 下载此文档
使用RADVD模拟IPv6路由器完成IPv6地址自动配置
下载积分:30
内容提示:使用RADVD模拟IPv6路由器完成IPv6地址自动配置
文档格式:PDF|
浏览次数:880|
上传日期: 08:32:44|
文档星级:
全文阅读已结束,如果下载本文需要使用
 30 积分
下载此文档
该用户还上传了这些文档
使用RADVD模拟IPv6路由器完成IPv6地址自动配置
关注微信公众号实现IPv6配置示例的静态路由 - Cisco
实现IPv6配置示例的静态路由
(165.7 KB)
在各种设备上使用 Adobe Reader 查看
在 iPhone、iPad、Android、Sony Reader 或 Windows Phone 上使用各种应用查看
在 Kindle 设备上查看或在多个设备上使用 Kindle 应用查看
文档 ID:113361
关于此翻译
思科采用人工翻译与机器翻译相结合的方式将此文档翻译成不同语言,希望全球的用户都能通过各自的语言得到支持性的内容。
请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。
Cisco Systems, Inc. 对于翻译的准确性不承担任何责任,并建议您总是参考英文原始文档(已提供链接)。
本文描述如何配置IPv6的静态路由。静态路由是定义了两个设备之间的明确路径的手工配置的路由。一旦在网络的拓扑更改,静态路由没有自动地更新象那样动态协议,并且必须手工重新配置。静态路由为只有一个路径对外部网络的更加小的网络是有用的。
使用的主要缺点静态路由是缺乏自动配置在拓扑更改的情况下。静态路由也实现为提供安全数据流特定类型给需要更多控制的其他网络。在使用考虑静态路由的限制是缺乏冗余和在路由手工的重新配置能变为一笔大管理开销的大型网络。
请使用命令为了配置静态路由。注意,在您配置有一静态Ipv6 route的前路由器,您必须启用IPv6数据包转发有in命令的全局配置模式。
尝试进行此配置之前,请确保满足以下要求:
IPv4静态路由知识
IPv6编址方案知识
本文档中的信息根据在Cisco IOS软件版本12.4(15)T 13的Cisco 3700系列路由器。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
有关文档规则的详细信息,请参阅 。
本部分提供有关如何配置本文档所述功能的信息。
注意: 有关本文档所用命令的详细信息,请使用()。
本文档使用以下网络设置:
本文档使用以下配置:
这是链路到视频,在联机 ,展示如何配置IPv6网络的静态路由在Cisco IOS路由器:
version 12.4
hostname R1
ipv6 unicast-routing
!--- Enables the forwarding of IPv6 packets.
interface Loopback1
no ip address
ipv6 address
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address
ip forward-protocol nd
ipv6 route 2001::/126 2000::2
ipv6 route
ipv6 route
!--- Static routes are configured in router R1, !--- to reach the networks in router R2 and R3. !--- This is done when you specify !--- the next-hop address, which in this case is !--- 2000::2 from which the output interface !--- is automatically derived.
version 12.4
hostname R2
ipv6 unicast-routing
interface Loopback2
no ip address
ipv6 address
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address
interface FastEthernet0/1
no ip address
duplex auto
speed auto
ipv6 address
ip forward-protocol nd
ipv6 route
ipv6 route
!--- Static routes are configured to reach !--- routers R1 and R3 loopback address when you !--- specify the corresponding interface address.
version 12.4
hostname R3
ipv6 unicast-routing
interface Loopback3
no ip address
ipv6 address
interface FastEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address
ip forward-protocol nd
ipv6 route
ipv6 route 2000::/126 2001::1
ipv6 route
!--- For router 3, to reach R1 and R2, !--- static routes are configured when you !--- mention 2001::1 as the next-hop address.
使用本部分可确认配置能否正常运行。
()(OIT) 支持某些 show 命令。使用 OIT 可查看对 show 命令输出的分析。
请使用static命令的为了显示IPv6路由表的内容,并且输出是如下显示:
show ipv6 route静态
在路由器 R1 中R1#show ipv6 route static
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
2001::/126 [1/0]
via 2000::2
via 2000::2
via 2000::2
!--- Displays the static routes learnt by router R1 through 2000::2.
在路由器 R3 中R3#show ipv6 route static
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
U - Per-user Static route, M - MIPv6
I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
D - EIGRP, EX - EIGRP external
via 2001::1
2000::/126 [1/0]
via 2001::1
via 2001::1
!--- Displays the static routes learnt by router R3 through 2001::1.
路由器R1有路由到路由器R2和R3,因此,路由器R1应该能ping路由器R2's环回地址和路由器R3。请使用ping命令为了验证同样。
在路由器 R1 中
ping路由器R2's环回地址R1#ping 2020::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2020::1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/36/104 ms
!--- Router R1 is successfully able to ping !--- router R2's loopback address.
ping路由器R3 R1#ping 2001::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::2, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/40/116 ms
R1#ping 3030::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3030::1, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/32/84 ms
!--- Similarly R1 is also able to reach R3, !--- for example, ping to R3's interface address !--- and loopback address from router R1 is successful.
注意: 同样路由器R3能也到达路由器R1的Fa0/0地址2000::1和其环回地址1010::1。
请使用为了显示路由表的当前内容和使用详细信息语法为了显示有用的信息,在本例中讨论:
show ipv6 static
在路由器 R1 中R1#show ipv6 static
IPv6 Static routes
Code: * - installed in RIB
* 2001::/126 via nexthop 2000::2, distance 1
via nexthop 2000::2, distance 1
via nexthop 2000::2, distance 1
!--- Displays the routes that are installed in !--- the IPv6 Routing Information Base(RIB) marked with *!
当详细信息关键字指定时,其他信息显示。以下为输出示例:
show ipv6 static detail
在路由器 R2 中R2#show ipv6 static detail
IPv6 Static routes
Code: * - installed in RIB
via nexthop 2000::1, distance 1
Resolves to 1 paths (max depth 1)
!--- Displays the output path set, and maximum !--- resolution depth, which in this case is 1.
via FastEthernet0/0
via nexthop 2001::2, distance 1
Resolves to 1 paths (max depth 1)
via FastEthernet0/1
!--- Displays that the route is received through !--- the next-hop 2000::1 through interface fa0/0.
注意: 在无效的路由的情况下,此信息显示:
无效递归路由,原因为什么路由无效。
对于无效请处理或充分地指定的路由,原因为什么路由无效。
此文档是否有帮助?
相关的支持社区讨论
本文档适用于以下产品}

我要回帖

更多关于 思科ipv6配置 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信