CCNA(新版)-ipv6地址配置实验

by小世界 http://redcisco.blog.163.com 实验拓扑:
实验需求:
实验步骤:
1.配置左边部分--R1和R2
R1#conf t
R1(config)#ipv6 unicast-routing //开启IPV6功能
R1(config)#inter f0/0
R1(config-if)#ipv6 address 2001:1/64//报错信息
% Incomplete command.
R1(config-if)#ipv6 address 2012::1/64
R1(config-if)#no sh
R2#conf t
R2(config)#ipv6 unicast-routing 
R2(config)#inter f0/0
R2(config-if)#ipv6 address 2012::2/64
R2(config-if)#no sh
*Mar  1 00:04:54.171: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar  1 00:04:55.171: %LINEPROTO-5-UPDOWN: Line protocol on Interface  FastEthernet0/0, changed state to up
R2(config-if)#end
R2#show ipv6 inter f0/0//查看
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::CE01:DFF:FE08:0 
  Global unicast address(es):
    2012::2, subnet is 2012::/64 
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF00:2
    FF02::1:FF08:0
  MTU is 1500 bytes
(省略)
//R1、R2连通性测试
R2#ping 2012::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2012::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/31/56 ms
2.配置右边部分--R2和R3
R2(config)#inter f1/0
R2(config-if)#ipv6 address 2023::2/64
R2(config-if)#no sh
*Mar  1 00:08:28.191: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
*Mar  1 00:08:29.191: %LINEPROTO-5-UPDOWN: Line protocol on Interface  FastEthernet1/0, changed state to up
R3(config)#ipv6 unicast-routing 
R3(config)#inter f0/0
R3(config-if)#no sh
R3(config-if)#ipv6 address ?
  WORD                General prefix name
  X:X:X:X::X          IPv6 link-local address
  X:X:X:X::X/<0-128>  IPv6 prefix
  autoconfig          Obtain address using autoconfiguration
R3(config-if)#ipv6 address autoconfig(可以直接回车)// 设备IPv6 地址为自动配置:
当接口配置为IPV6 address autoconfig后,系统会自动的发送RS请求,当网络中有设备在响应此请求,会收到RA回应信息。(此回应无详细IPV6地址,只有IPV6地址前缀)。设备会根据回应的IPV6地址前缀与本设备的当前端口的MAC地址做计算后,得到自己的IPV6地址。然后会用该地址发送DAD地址检测信息。如果检测通过后,系统就会认为此地址可以用,并将这个地址配置到自己的端口上面。

R3#show ipv6 interface f0/0
FastEthernet0/0 is up, line protocol is up
  IPv6 is enabled, link-local address is FE80::CE02:DFF:FE08:0 
  Global unicast address(es):
    2023::CE02:DFF:FE08:0, subnet is 2023::/64 [PRE]
      valid lifetime 2591984 preferred lifetime 604784
  Joined group address(es):
    FF02::1
    FF02::2
    FF02::1:FF08:0
  MTU is 1500 bytes
//测试 R3#ping 2023::2 
Sending 5, 100-byte ICMP Echos to 2023::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/38/104 ms
R3#ping 2012::2
Sending 5, 100-byte ICMP Echos to 2012::2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R3(config-if)#ipv6 address autoconfig ?
  default  Insert default route
 
R3(config)#inter f0/0
R3(config-if)#ipv6 address autoconfig default 
R3(config-if)#end
R3#show ipv6 rou
R3#show ipv6 route
IPv6 Routing Table - 5 entries
S   ::/0 [1/0]
     via FE80::CE01:DFF:FE08:10, FastEthernet0/0
C   2023::/64 [0/0]
     via ::, FastEthernet0/0
L   2023::CE02:DFF:FE08:0/128 [0/0]
     via ::, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0
//测试 R3#ping 2023::2
Sending 5, 100-byte ICMP Echos to 2023::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/31/52 ms
R3#ping 2012::2
Sending 5, 100-byte ICMP Echos to 2012::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/56 ms
感谢思科资源。

你可能感兴趣的:(思科网络实践)