一、实验拓扑
二、实验步骤
1、启用ipv6,自动获取ipv6地址
[Huawei]sysname PC3
[PC3]ipv6
[PC3]int g0/0/0
[PC3-GigabitEthernet0/0/0]ipv6 enable
[PC3-GigabitEthernet0/0/0]ipv6 add auto link-local
[Huawei]sysname R1
[R1]ipv6
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ipv6 enable
[R1-GigabitEthernet0/0/0]ipv6 add auto link-local
2、查看接口配置指令
[PC3]display ipv6 interface brief
[PC3]display ipv6 interface g0/0/0
[R1]display ipv6 interface brief
[R1]display ipv6 interface g0/0/0
3、测试R1和PC3是否联通
[PC3]ping ipv6 FE80::2E0:FCFF:FE84:6040 -i GigabitEthernet 0/0/0
[R1]ping ipv6 FE80::2E0:FCFF:FE07:6317 -i g0/0/0
4、测试交换机是否收到两边的mac地址
[SW2]display mac-address
5、给R1和PC3配置全球单播地址2001::/64
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ipv6 add 2001::1 64
[R1-GigabitEthernet0/0/0]quit
[R1]dis ipv6 int g0/0/0
[R1]ping ipv6 2001::1
[PC3]int g0/0/0
[PC3-GigabitEthernet0/0/0]ipv6 add 2001::3 64
[PC3-GigabitEthernet0/0/0]quit
[PC3]ping ipv6 2001::3 (公网地址的ping法)(全球单播地址)
6、给R3和R1配置全球单播地址,测试能不能全网通
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ipv6 enable
[R1-GigabitEthernet0/0/1]ipv6 add 2002::1 64
[R3]ipv6
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ipv6 enable
[R3-GigabitEthernet0/0/0]ipv6 add 2002::3 64
[PC3]ping ipv6 2002::3 (ping不通)
7、配置静态路由,实现全网通
[PC3]ipv6 route-static 2002:: 64 2001::1
[R3]ipv6 route-static 2001:: 64 2002::1
[PC3]ping ipv6 2002::3
[R3]ping ipv6 2001::3
[R3]ping ipv6 FE80::2E0:FCFF:FE07:6317 -i g0/0/0(ping不通)