1. Install packages
# yum install dhcp*
# yum install radvd

2. Configure IPv6 setting
# vim /etc/sysctl.conf
--------------add---------------
net.ipv6.conf.all.forwarding=1
--------------add---------------

# sysctl -p
# cat /proc/sys/net/ipv6/conf/all/forwarding

----------------------------------
1
----------------------------------

3. Configure interface IPv6 IP
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
--------------add---------------
IPV6INIT=yes
IPV6ADDR=2001:db8:1::ffff/32
--------------add---------------

# vim /etc/sysconfig/network
--------------add---------------
NETWORKING_IPV6=yes
IPV6_AUTOCONF=no
IPV6_DEFAULTGW=2001:db8:1::ffff%eth0
--------------add---------------

# service network restart

Verify IPv6 setting
# ifconfig eth0 | grep inet6
-----------------------------------------------
inet6 addr: 2001:db8:1::ffff/32 Scope:Global
inet6 addr: fe80::20c:1122:abcd:ab12/32 Scope:Link
-----------------------------------------------

# ip -6 route
# ping6 <IPv6 IP>

4. Configure RADVd service
# vim /etc/radvd.conf
------------------------------------------------
interface eth0
{
    AdvSendAdvert on; 
    MinRtrAdvInterval 60; 
    MaxRtrAdvInterval 180;
    AdvHomeAgentFlag off;
    AdvManagedFlag off;
    AdvOtherConfigFlag on; 

    prefix 2001:db8:1:0::/32
    {   
        AdvOnLink on; 
        AdvAutonomous on; 
        AdvRouterAddr off;
    };  

};
------------------------------------------------

# /etc/init.d/radvd restart

5. Configure IPv6 DHCP service
# vim /etc/dhcp/dhcpd6.conf
------------------------------------------------
allow leasequery;
default-lease-time 2592000;
preferred-lifetime 604800;
option dhcp-renewal-time 3600;
option dhcp-rebinding-time 7200;
dhcpv6-lease-file-name "/var/lib/dhcpd/dhcpd6.leases";
option dhcp6.preference 255;
option dhcp6.rapid-commit;
option dhcp6.info-refresh-time 21600;
ddns-update-style interim;
subnet6 2001:db8:1::/32 {
    range6 2001:db8:1::eeff 2001:db8:1::fffe;
        option dhcp6.name-servers 2001:db8:1::ffff;
        option dhcp6.domain-search "dreamtails.local";
        ddns-hostname = concat(binary-to-ascii(10, 8, "-", leased-address), ".wired");
        ddns-domainname = "dreamtails.local";
}                                
------------------------------------------------

# /etc/init.d/dhcpd6 restart

dreamtails 發表在 痞客邦 PIXNET 留言(0) 人氣()