要求:
为R1、R2、R3配置IPV6地址,并配置静态路由,实现全网互通。
2001:1:1:1::1/64 2001:1:1:2::1/64 2::2 2001:1:1:3::1/64 3::2 2001:1:1:4::1/64
----------------- R1------------------------------R2-------------------------R3------------
f0/0 s1/0 s1/1 f0/0
1. 启用IPV6路由功能
R(config)#ipv6 unicast-routing
2. 配置接口IP地址
R(config)# int f0/0
# ipv6 add 2001:1:1:1::1/64 手工设置接口IP
# ipv6 add 2001:1:1:1::/64 eui-64 生成地址2001:1:1:1: 20C:85FF:FEA0:5301
查看:
r1#sh ipv6 int brief
FastEthernet0/0 [up/up]
FE80::20C:85FF:FEA0:5301
2001:1:1:1::1
2001:1:1:1:20C:85FF:FEA0:5301
FastEthernet0/1 [administratively down/down]
Serial1/0 [up/up]
Serial1/1 [administratively down/down]
r1# sh ipv6 route
IPv6 Routing Table - 4 entries
C 2001:1:1:1::/64 [0/0]
via ::, FastEthernet0/0 网络路由
L 2001:1:1:1::1/128 [0/0]
via ::, FastEthernet0/0 主机路由
L 2001:1:1:1:20C:85FF:FEA0:5301/128 [0/0]
via ::, FastEthernet0/0
L FF00::/8 [0/0] 组播路由
via ::, Null0
3. 配置IPV6静态路由
2001:1:1:1::1/64 2001:1:1:2::1/64 2::2 2001:1:1:3::1/64 3::2 2001:1:1:4::1/64
----------------- R1------------------------------R2-------------------------R3------------
f0/0 f0/1 f0/0 f0/1
R1(config)# ipv6 route 2001:1:1:3::/64 2001:1:1:2::2
ipv6 route 2001:1:1:4::/64 2001:1:1:2::2
R# ping 2001:1:1:3::1