SLAACRFC4862) (StatelessAddressAutoconfiguration), automatically configured stateless
DHCPv6 contains the following two forms:
N stateful DHCPv6 service: RFC3315 "DynamicHostConfigurationProtocolforIPv6 (DHCPv6 )"
N stateless DHCPv6 service: RFC3736 "StatelessDynamicHostConfigurationProtocol (DHCP) ServiceforIPv6"
Before configuration, we should first clarify several concepts:
1. Although the client configuration is the same, the client does not know the configuration information from the vro message SLAAC), or the DHCPv6 server or SLAAC or DHCPv6.
2. Not all operating systems can identify the M and O values in the vro announcement message, so unexpected results may be obtained.
The following describes how to install and set radvd on Redhat6.4.
1. Configure static IPv6 addresses for linux Hosts
2. yum install radvd-y
3. radvd configuration parameters/etc/radvd. conf)
Interface eth0 {AdvSendAdvert on; # enable the router announcement RA function) MinRtrAdvInterval 30; # Send the announcement message MaxRtrAdvInterval 100 every 30-seconds; # spfAdvManagedFlag on; # M value AdvOtherConfigFlag on; # O value # spfprefix 2001: db8: 1: 0:/64 # sent prefix information {AdvOnLink on; AdvAutonomous on; # The prefix of the announcement can be used to automatically configure AdvRouterAddr off;}; # The DNS part has not been tested # RDNSS # RDNS 2001: db8: 1: 0 :: 1 # DNS options provided by RA. Currently, RFC6106 is not supported in general. # For example, RFC6106 is not supported in WIN7, therefore, the DNS option of RA is not obtained # This part needs to be solved through DHCPv6 # {# AdvRDNSSPreference 8; # AdvRDNSSLifetime 180 ;#};#};
4. Enable IPv6forwarding = 1
Vim/etc/sysctl. conf
Add net. ipv6.conf. all. forwarding = 1
Sysctl-p
Cat/proc/sys/net/ipv6/conf/all/forwarding
5. Start radvd.
/Etc/init. d/radvd restart
The RedHat system uses ISCDHCP for DHCPv6 in linux and other DHCPv6 service software such as dibble.
1. Configure static IPv6 addresses on the host
2. yuminstalldhcp *-y is installed by default.
3. Run vim/etc/dhcp/dhcpd6.conf to edit the configuration file.
allow leasequery;default-lease-time 2592000;preferred-lifetime 604800;option dhcp-renewal-time 3600;option dhcp-rebinding-time 7200;dhcpv6-lease-file-name "/usr/local/var/db/dhcpd6.leases";allow leasequery;option dhcp6.name-servers 2013:1:1:1::221;option dhcp6.domain-search "test.spf.com";option dhcp6.preference 255;subnet6 2013:1:1:1::/64{range6 2013:1:1:1::10 2013:1:1:1::254;option dhcp6.name-servers 2013:1:1:1::221;option dhcp6.domain-search "test.spf.com";}
L note: ISCDHCP requires strict format content
Dhcpv6-lease-file-name "/usr/local/var/db/dhcpd6.leases" this file must exist or the service cannot start
4. Start the DHCPv6 Service
/Etc/init. d/dhcpd6 restart
This article is from the "small school IT" blog, please be sure to keep this source http://xiaoshe.blog.51cto.com/7977863/1305084