ipv 6構成レコード


#apt install isc-dhcp-server
#vi/etc/dhcpd/dhcpd6.conf
default-lease-time 600;
max-lease-time 7200; 
log-facility local7; 
subnet6 2001:db8:0:1::/64 {
        # Range for clients
        range6 2001:db8:0:1::129 2001:db8:0:1::254;

        # Range for clients requesting a temporary address
        range6 2001:db8:0:1::/64 temporary;

        # Additional options
        option dhcp6.name-servers fec0:0:0:1::1;
        option dhcp6.domain-search "domain.example";

        # Prefix range for delegation to sub-routers
        prefix6 2001:db8:0:100:: 2001:db8:0:f00:: /56;

        # Example for a fixed host address
        host specialclient {
    		host-identifier option dhcp6.client-id 00:01:00:01:4a:1f:ba:e3:60:b9:1f:01:23:45;
        	fixed-address6 2001:db8:0:1::127;
    	} 
} 

# touch/var/lib/dhcp/dhcpd6.leases
# dhcp -6 -f -cf/etc/dhcp/dhcpd6.conf eth0
 
# apt-install radvd
# touch /etc/radvd.conf && chmod 755/etc/radvd.conf
# vi /etc/radvd.conf
#log-level 8
#log-mode full
#stateless
interface eth0 {
   AdvSendAdvert on;
   MinRtrAdvInterval 30;
   MaxRtrAdvInterval 600;
   AdvManagedFlag on;                   #M bit=1
   AdvOtherConfigFlag on;               #O bit=1
   AdvLinkMTU 1500;
   AdvSourceLLAddress on;
   AdvDefaultPreference high;
   prefix 2001:db8:0:1::/64
   {
   AdvOnLink on;
   AdvAutonomous off;                   #A bit=0
   AdvRouterAddr on;
   AdvPreferredLifetime 3600;
   AdvValidLifetime 7200;
   }; 
route 2001:db8:0:1::/64 {
    };

};

# radvd –d –C/etc/radvd.conf
 
-------------------------------------------------
問題解決:
win 10はアドレスを取得できません.https://support.microsoft.com/zh-cn/help/929852/guidance-for-configuring-ipv6-in-windows-for-advanced-users
IP pingが通じないことを取得して、ルートを追加する必要があります:netsh interface ipv 6 add route::/0“イーサネット”2001:db 8:0:1:24 b