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
- Feb 21 Mon 2011 14:45
[Ubuntu] Install RADVD for IPv6
全站熱搜
留言列表
發表留言