CCNA(新版)-ipv6默认路由、静态路由配置实验

by小世界 http://redcisco.blog.163.com 实验拓扑图:
实验需求:

在R1上做ipv6默认路由

在R2上做ipv6静态路由

R1#ping 2001:db8:ac10:100::2能通。

R2#ping 2001:db8:a01::1能通。

实验步骤:
1.基本ipv6地址配置
R1(config)#ipv6 unicast-routing  
R1(config)#inter f0/0
R1(config-if)#ipv6 address 2001:db8:d1a5:c900::1/64
R1(config-if)#no sh
R1(config-if)#inter f1/0
R1(config-if)#ipv6 address 2001:db8:a01::1/48
R1(config-if)#no sh
R2(config)#ipv6 unicast-routing 
R2(config)#inter f0/0
R2(config-if)#ipv6 address 2001:db8:d1a5:c900::2/64
R2(config-if)#no sh
R2(config-if)#inter f1/0
R2(config-if)#ipv6 address 2001:db8:ac10:100::2/64
R2(config-if)#no sh
R3(config)#ipv6 unicast-routing 
R3(config)#inter f0/0
R3(config-if)# ipv6 address 2001:db8:a01::3/48
R3(config-if)#no sh
//测试对端连通性
R3#ping 2001:db8:a01::1      
Sending 5, 100-byte ICMP Echos to 2001:DB8:A01::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/31/60 ms

2.在R1上写ipv6默认路由
R1#ping 2001:db8:ac10:100::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:DB8:AC10:100::2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R1(config)#ipv6 route ::/0 fastEthernet 0/0 ?
  <1-254>     Administrative distance
  X:X:X:X::X  IPv6 address of next-hop
  multicast   Route only usable by multicast
  tag         Tag value
  unicast     Route only usable by unicast
 
R1(config)#ipv6 route ::/0 fastEthernet 0/0 2001:db8:d1a5:c900::2 
或者:
R1(config)# ipv6 route ::/0  2001:db8:d1a5:c900::2  
(到达未知目的地的下一跳指向R2的F0/0)
R1#show ipv6 route static 
IPv6 Routing Table - 7 entries
S   ::/0 [1/0]
     via 2001:DB8:D1A5:C900::2, FastEthernet0/0
//测试
R1#ping 2001:db8:ac10:100::2
Sending 5, 100-byte ICMP Echos to 2001:DB8:AC10:100::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/41/68 ms
R1#traceroute 2001:db8:ac10:100::2
  1 2001:DB8:AC10:100::2 44 msec 52 msec 56 msec

3.在R2上写ipv6静态路由
R2#ping 2001:db8:a01::1      
Sending 5, 100-byte ICMP Echos to 2001:DB8:A01::1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R2(config)# ipv6 route 2001:DB8:A01::/48 F0/0 2001:DB8:D1A5:C900::1 
或者:
R2(config)# ipv6 route 2001:DB8:A01::/48 2001:DB8:D1A5:C900::1
R2#show ipv6 route static 
S   2001:DB8:A01::/48 [1/0]
     via 2001:DB8:D1A5:C900::1, FastEthernet0/0

R2(config)#do show run | s ro                                          
ipv6 unicast-routing
ipv6 route 2001:DB8:A01::/48 FastEthernet0/0 2001:DB8:D1A5:C900::1
control-plane
 logging synchronous
//测试
R2#ping 2001:db8:a01::1
Sending 5, 100-byte ICMP Echos to 2001:DB8:A01::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/31/56 ms
实验完成,谢谢关注,感谢cisco资源。

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