Configure dynamic IPv6 in Linux (RedHat6.4)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.