1. Install RADVD
sudo apt-get install radvd (used to send RA)


2. Creat the radvd configuration file and edit it
sudo touch /etc/radvd.conf
sudo vim /etc/radvd.conf


3. radvd configuration file
/*Stateless Autoconfiguration*/
interface eth0                #The interface used to send ADV
{  
    AdvSendAdvert on;        #Enable Advertisements
    #AdvManagedFlag on;      #Enable Managed bit
    #AdvOtherConfigFlag on;  #Enable Other Configure bit
    MinRtrAdvInterval 3;     #Set min. interval to send adv.
    MaxRtrAdvInterval 10;    #Set max. interval to send adv.
    prefix 2001:b021:002d:1001::/64    #Prefix
    {
        AdvOnLink on;        #Adv. Using Link Layer
        AdvAutonomous on;    #Autonomous Flag
#AdvRouterAddr on;
    };
};


4. Setup IPv6 routing will auto enable when OS boot
sudo vim /etc/sysctl.conf
(Remove the "#" and save and quit)
net.ipv6.conf.all.forwarding=1


5. Enable IPv6 routing now
sudo sysctl -p
(show: net.ipv6.conf.all.forwarding = 1)


6. Enable radvd now
sudo /etc/init.d/radvd start


stop, restart


7. Editing the /etc/rc.local, to make to service will run during OS booting.
sudo vim /etc/rc.local


#Enable RADVD
service radvd restart

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 infiniTude 的頭像
    infiniTude

    申易˙戶斤˙谷欠˙石开!

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