我的 dhcp 伺服器使用 isc dhcpd v4.3.6,dhcpd6.conf 檔案:
subnet6 2001:xx:xxx:xxx::/64 {
range6 2001:xx:xxx:xxx::10 2001:xx:xxx:xxx::ffff;
option dhcp6.name-servers 2001:xxx:xx::131;
default-lease-time 3600;
max-lease-time 3600;
always-broadcast on;
}
步驟1:當PC和dhcpv6伺服器在同一子網路中:PC可以從dhcpv6伺服器池中取得ipv6位址。
步驟2:當PC和dhcpv6伺服器不在同一子網路時:我的網路是PC-路由器-dhcp伺服器,路由器是華為或H3C路由器。路由器設定是:
interface Vlanif200
ipv6 enable
ipv6 address 2001:xx:xx:xx:xxx::1/64
ipv6 nd ra prefix 2001:xx:xx:xx::/64 28800 28800
undo ipv6 nd ra halt
ipv6 nd autoconfig managed-address-flag
ipv6 nd autoconfig other-flag
dhcpv6 relay destination 2001:xx:xxx:xx:xxx
PC無法從dhcpv6伺服器取得ipv6位址。 ?