核心配置
PC:
1)配置调用dhcp
interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address auto link-local
undo ipv6 nd ra halt
ipv6 address auto dhcp
2)配置路由
ipv6 route-static :: 0 GigabitEthernet0/0/0 FE80::2E0:FCFF:FE8F:7AD4
R1:
interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 2001:10::1/64
ipv6 address auto link-local
undo ipv6 nd ra halt
dhcpv6 relay destination 2001:20::2
#
interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 2001:20::1/64
ipv6 address auto link-local
R2:
1)定义dhcpv6 地址池
dhcp enable
#
dhcpv6 pool client
address prefix 2001:10::/64
excluded-address 2001:10::1
#
2)应用地址池
interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 2001:20::2/64
ipv6 address auto link-local
dhcpv6 server client //client为地址池名称
#
3)配置路由
ipv6 route-static 2001:10:: 64 GigabitEthernet0/0/0 FE80::2E0:FCFF:FE8F:7AD5