鸿鹄论坛3ch08在企业网中实施ipv602.configuring and verifying unicast addresses_第1页
鸿鹄论坛3ch08在企业网中实施ipv602.configuring and verifying unicast addresses_第2页
鸿鹄论坛3ch08在企业网中实施ipv602.configuring and verifying unicast addresses_第3页
鸿鹄论坛3ch08在企业网中实施ipv602.configuring and verifying unicast addresses_第4页
鸿鹄论坛3ch08在企业网中实施ipv602.configuring and verifying unicast addresses_第5页
免费预览已结束,剩余30页可下载查看

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、配置和验证 IPv6 单播地址CCNP ROUTE: Implementing IP Routing验证 IPv6CommandDescriptionshow ipv6 interface brief type number prefix显示IPv6接口的可用性和状态. brief 显示每个接口的IPv6状态和配置摘要. prefix 显示给接口的配置的IPv6邻居发现前缀.show ipv6 routers interface-type interface-number conflicts显示从链路本地可达的路由器那里收到的IPv6路由通告信息. conflicts 显示有关这样的路由器通告

2、参数的信息,即这些参数不同于给收到通告的接口配置的通告参数.show ipv6 neighbors interface-type interface-number | ipv6-address | ipv6-hostname | statistics显示IPv6邻居发现缓存中有关特定邻居的信息. 可选参数 statistics 显示邻居发现缓存的统计信息.IPv6 排错CommandDescriptiondebug ipv6 nd显示与 ICMPv6 邻居发现相关的信息. ICMPv6 邻居发现替代了 IPv4 ARP.debug ipv6 packet access-list access-

3、list-name detail显示与 IPv6 分组处理相关的信息. access-list-name 指定了IPv6访问列表,将只显示被ACL运行的分组. detail 显示详细信息.启用 IPv6 路由功能启用转发 IPv6 单播数据报的功能.Router(config)#ipv6 unicast-routing仅当要配置IPv6 路由协议时,才需要配置.如果只想配置IPv6 接口地址,不需要配置该命令. 要在接口上启用无状态自动配置功能,也需要先配该命令.配置命令 no ipv6 unicast-routing 将禁用路由器的 IPv6 路由功能,让路由器成为 IPv6 终端.启用IP

4、v6的 CEF(CEFv6)启用用于IPv6的Cisco 快速转发 (CEFv6).Router(config)#ipv6 cef一个可选命令, CEFv6 是一种用于转发IPv6分组的第 3 层高级 IP交换技术. 要使用其他一些 IPv6 功能也需要启用它. 启用CEFv6后,路由协议在 IPv6 路由信息库(RIB)中对网络条目的添加,删除或修改将反映到转发信息库 (FIBs)中. IPv6 邻居关系表将为FIB中所有条目存储第2层下一跳地址.IPv6 单播地址的分配方法IPv6 单播地址的分配方法接口上启用IPv6配置 IPv6 地址和前缀.Router(config-if)#ipv6

5、 address address/prefix-length link-local | eui-64为接口配置 IPv6 地址和前缀. 在接口上启用 IPv6 处理. 参数 link-local 将地址指定为链路本地地址.参数 eui-64 让路由器使用 EUI-64 格式的接口ID来填充地址的最后64位. 静态分配Link-Local地址Link-local 地址的创建:动态给接口分配一个链路本地地址,该地址使用前缀FE80:/10和EUI-64格式的接口ID.手动配置 interface ID. 手工指定的接口 ID 比使用 EUI-64生成的 ID更容易记住.注意 link-local

6、地址的前缀不是必须的,因为不被路由.R2R1.2R1(config)# interface fa0/0R1(config-if)# ipv6 address FE80:1 ?link-local use link-local addressR1(config-if)# ipv6 address FE80:1 link-localR1(config-if)# endR1# 静态分配Link-Local地址覆盖了原来的本地链路地址,每个接口只能有一个链路本地地址R2FE80:1R1.2R1# show ipv6 interface fa0/0FastEthernet0/0 is up, line

7、protocol is upIPv6 is enabled, link-local address is FE80:1 TEN No global unicast address is configured Joined group address(es): FF02:1 FF02:2 FF02:1:FF00:1 MTU is 1500 bytes ICMP error messages limited to one every 100 milliseconds ICMP redirects are enabled ND DAD is enabled, number of DAD attemp

8、ts: 1 ND reachable time is 30000 milliseconds ND advertised reachable time is 0 milliseconds ND advertised retransmit interval is 0 milliseconds ND router advertisements are sent every 200 seconds ND router advertisements live for 1800 seconds Hosts use stateless autoconfig for addresses.R1(config-i

9、f)#静态分配全局可聚合地址配置全局单播地址时忽略link-local参数.例, R1的接口Fast Ethernet 0/0 配置一个IPv6地址2001:1:1/64 注意,这里指定了完整的地址,不会使用EUI-64格式的接口ID.R2R1.2R1(config)# ipv6 unicast-routingR1(config)# interface fa0/0R1(config-if)# ipv6 address 2001:1:1/64R1(config-if)#FE80:1静态分配全局可聚合地址R2FE80:12001:1:1/64R1.2R1# show ipv6 interface

10、fa0/0FastEthernet0/0 is up, line protocol is up IPv6 is enabled, link-local address is FE80:1 TEN Global unicast address(es): 2001:1:1, subnet is 2001:1:/64 TEN Joined group address(es): FF02:1 FF02:2 FF02:1:FF00:1 MTU is 1500 bytes ICMP error messages limited to one every 100 milliseconds ICMP redi

11、rects are enabled ND DAD is enabled, number of DAD attempts: 1 ND reachable time is 30000 milliseconds ND advertised reachable time is 0 milliseconds ND advertised retransmit interval is 0 milliseconds ND router advertisements are sent every 200 seconds ND router advertisements live for 1800 seconds

12、 Hosts use stateless autoconfig for addresses.R1#静态分配全局可聚合地址注意, 仅仅配置一个全局单播地址也会在接口上创建一个 link-local 地址 (EUI-64) .R2R1.2FE80:1R1# show ipv6 interface fa0/1R1# config tR1(config)# int fa0/1R1(config-if)# ipv6 add 2001:/64 eui-64R1(config-if)# do show ipv6 interface fa0/1FastEthernet0/1 is administrative

13、ly down, line protocol is down IPv6 is enabled, link-local address is FE80:211:92FF:FE54:E2A1 TEN Global unicast address(es): 2001:211:92FF:FE54:E2A1, subnet is 2001:/64 EUI/TEN Joined group address(es): FF02:1 FF02:2 FF02:1:FF54:E2A1 MTU is 1500 bytes分配多个全局可聚合地址在路由器上的一个接口上配置2个不同的Pv4地址和两个不同的IPv6地址会发

14、生什么情况?R2R1.2R1(config)# interface fa0/0R1(config-if)# ip address 10.20.20.1 255.255.255.0R1(config-if)# ip address 10.10.10.1 255.255.255.0R1(config-if)# ipv6 address 2001:1:1/64R1(config-if)# ipv6 address 2002:1:1/64R1(config-if)# endR1#FE80:12001:1:1/64分配多个全局可聚合地址第二个 IPv4 地址替代了原来的IPv4地址.然后,在Fa0/0接

15、口上可以配置上两个 IPv6 地址.接口可以有分配多个 IPv6 地址. 这些地址能够同时配置(没有辅助地址的概念). R2R1.2R1# show run interface fa0/0Building configuration.Current configuration : 162 bytes!interface FastEthernet0/0 ip address 10.10.10.1 255.255.255.0 duplex auto speed auto ipv6 address 2001:1:1/64 ipv6 address 2002:1:1/64 ipv6 address F

16、E80:1 link-localendR1#10.10.10.1/24FE80:12001:1:1/642001:2:1/64Ethernet EUI-64 地址IPv6 地址前 64 位视为网络部分,接口ID(后64位) 视为主机部分,根据第二层介质和封装方式动态创建.对于以太网,interface ID 是基于接口的48位的 MAC地址中间插入16位的0 xFFFE.其格式为扩展的唯一标识符(EUI-64). 接口标识符的第7位被称为全局/本地(U/L)位,设置为1表示全局唯一,设置为0表示本地唯一. EUI-64 to IPv6 Interface IdentifierEUI-64标准解

17、释:48位的MAC中间第24th 位插入16位 0 xFFFE 创建64位唯一的接口标识符.配置 EUI-64 IPv6 地址R1(config)# interface loopback 100R1(config-if)# ipv6 address 2001:8:85a3:4289:/64 eui-64R1# show ipv6 interface loopback 100Loopback100 is up, line protocol is up IPv6 is enabled, link-local address is FE80:21B:D5FF:FE5B:A408 Global uni

18、cast address(es): 2001:8:85A3:4289:21B:D5FF:FE5B:A408, subnet is 2001:8:85A3:4289:/64 EUI Joined group address(es): FF02:1 FF02:2 FF02:1:FF5B:A408 MTU is 1514 bytes ICMP error messages limited to one every 100 milliseconds ICMP redirects are enabled ND DAD is not supported ND reachable time is 30000

19、 milliseconds Hosts use stateless autoconfig for addresses.配置IPv6 单播地址IPv6 无编号接口接口上启用IPv6 处理,但不给接口分配显示的IPv6地址.Router(config-if)#ipv6 unnumbered interface-type interface-number通过该接口向外发生数据流时,将其源地址设置为参数interface-type interface-number 指定接口的IPv6地址. 指定的接口必须处于 “up” 状态.配置 IPv6 Unnumbered Interfaces在这个示例中, 在

20、loopback 配置 IPv6 地址. Serial 0/0/0 接口借用loopback接口的地址.S0/0/0R1(config)# interface loopback 10R1(config-if)# ipv6 address 2001:1:10/64R1(config-if)# exitR1(config)# R1(config)# interface s0/0/0R1(config-if)# ipv6 unnumbered loopback 10R1(config-if)# no shutR1(config-if)#R1Lo10: 2001:1:10/64R2配置 IPv6 Un

21、numbered InterfacesSerial 0/0/0 输出表明确实使用了环回接口10的 IPv6 地址.R1# show ipv6 interface s0/0/0Serial0/0/0 is up, line protocol is up IPv6 is enabled, link-local address is FE80:222:55FF:FE18:7DE8 No Virtual link-local address(es): Interface is unnumbered. Using address of Loopback10 No global unicast addre

22、ss is configured Joined group address(es): FF02:1 FF02:2 FF02:1:FF18:7DE8 MTU is 1500 bytes ICMP error messages limited to one every 100 milliseconds ICMP redirects are enabled ICMP unreachables are sent ND DAD is enabled, number of DAD attempts: 1 ND reachable time is 30000 milliseconds (using 1623

23、8) Hosts use stateless autoconfig for addresses.R1#S0/0/0R1Lo10: 2001:1:10/64R2配置 IPv6 Unicast Addresses启用无状态自动配置接口上启用使用无状态自动配置 IPv6 地址.Router(config-if)#ipv6 address autoconfig default启用无状态自动配置:在接口上自动配置IPv6 地址.该接口上启用 IPv6 处理. Addresses are configured depending on the prefixes received in RA message

24、s. (See slides 49 to 51 for review)(可选) 如果在该接口上选择了默认路由器,关键字 default 将导致将一条使用默认路由器的默认路由加入路由表. 只能在一个接口上指定关键字default.改变邻居检测时间改变邻居检测时间参数 (Similar to ARP cache ttl).Router(config-if)#ipv6 nd reachable-time milliseconds要指定在可达性确认时间(如邻居发现过程)发生后,多少毫秒内都认为远程IPv6节点可达.路由器使用这种设置来检测不可用的邻居,配置的时间越短,路由器检测到邻居不可用的速度越快.

25、milliseconds 参数表示邻居被认为可到达的时间 ( 0 3,600,000) . 缺省情况下,路由器通告中包含的这种值为 0 milliseconds (表示没有指定时间) ,而路由器本身从邻居发现时使用的值为 30,000 (30 seconds). 警告: 消耗的IPv6的网络带宽和IPv6网络设备的处理资源越多.静态添加邻居在邻居发现缓存中添加一个邻居路由器.Router(config)#ipv6 neighbor ipv6-address interface-type interface-number hardware-address要在IPv6 邻居发现缓存中静态地配置一个

26、条目, 将IPv6地址映射到接口的硬件地址.IPv6 Connectivity on FR Multipoint Links与 IPv4一样, 必须IPv6 地址映射到 DLCI. 这种映射:使用 IPv6逆向ARP动态创建使用接口配置命令frame-relay map 静态配置.IPv4 与 IPv6帧中继配置比较:在IPv6中, 需要有与 link-local 和全局单播地址相关联的映射.在IPv6中, 要在帧中继网络中使用路由协议让路由器能够交换更新,必须配置命令ipv6 unicast-routing. IPv6 Multipoint FR Example如图所示, R1 通过一条多点

27、帧中继连接与 R2 和R3 相连.Frame Relay2001:12:1/64.1R2R3R12001:12:3/642001:12:2/64DLCI: 103DLCI: 301DLCI: 201DLCI: 102S0/0/0S0/0/0S0/0/0IPv6 Multipoint FR Example在 R1 和 R2上配置帧中继映射.R1 必须使用 DLCI 102.R1(config)# interface s0/0/0R1(config-if)# frame-relay map ipv6 2001:12:2 102R1(config-if)# do show frame-relay m

28、apSerial0/0/0 (up): ipv6 2001:12:2 dlci 102(0 x66,0 x1860), static,IETF, status defined, activeR1#Frame Relay2001:12:1/64.1R2R3R12001:12:3/642001:12:2/64DLCI: 103DLCI: 301DLCI: 201DLCI: 102S0/0/0S0/0/0S0/0/0IPv6 Multipoint FR Example在 R2 和 R2上配置帧中继映射.R2 必须使用 DLCI 201.R2(config)# interface s0/0/0R2(c

29、onfig-if)# frame-relay map ipv6 2001:12:1 201R2(config-if)#Frame Relay2001:12:1/64.1R2R3R12001:12:3/642001:12:2/64DLCI: 103DLCI: 301DLCI: 201DLCI: 102S0/0/0S0/0/0S0/0/0IPv6 Multipoint FR Example验证R1到 R2 的连通性R1# ping 2001:12:2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2001:12:2,

30、timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 56/57/60 msR1#Frame Relay2001:12:1/64.1R2R3R12001:12:3/642001:12:2/64DLCI: 103DLCI: 301DLCI: 201DLCI: 102S0/0/0S0/0/0S0/0/0IPv6 Multipoint FR Example创建一个link-local地址, 一个 OSPF router ID, 在接口S0/0/0启用 OSPFv3 和标识R2 是OSPF邻居

31、.R1(config)# interface s0/0/0R1(config-if)# ipv6 address FE80:1 link-localR1(config-if)# exitR1(config)# ipv6 unicast-routingR1(config)# ipv6 router ospf 1R1(config-rtr)# router-id 1.1.1.1R1(config-rtr)# exitR1(config)# interface s0/0/0R1(config-if)# ipv6 ospf neighbor FE80:2R1(config-if)# ipv6 ospf 1 area 0R1(config-if)#Frame Relay2

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论