Ubuntu server太难用,搞不定,换成桌面版了。
1、开启ipv6转发(好像安装RADVD会提示开启)
修改/etc/sysctl.conf中,net.ipv6.conf.all.forwarding = 1
运行sysctl -p,使配置生效
2、安装radvd。
sudo apt-get install radvd
修改/etc/radvd.conf,内容如下(前缀和DNS可以根据需求修改。):
interface eno1
{
AdvSendAdvert on;
AdvOtherConfigFlag on;
AdvManagedFlag on;
MinRtrAdvInterval 10;
MaxRtrAdvInterval 15;
AdvDefaultPreference medium;
AdvDefaultLifetime 45;
prefix 2001:db8::/64{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr off;
};
#配置DNS
RDNSS 2001:db8:1:0::1
{
AdvRDNSSPreference 8;
AdvRDNSSLifetime 180;
};
};
运行sudo /etc/init.d/radvd restart,重启服务
3、安装wide-dhcpv6-server
sudo apt-get install wide-dhcpv6-server
将/usr/share/doc/wide-dhcpv6-server/examples/dhcp6s.conf.sample 拷贝到
/etc/wide-dhcpv6-server/dhcp6s.conf (interface和地址池根据需求修改)
运行sudo /etc/init.d/wide-dhcpv6-server restart,重启服务
阅读(12504) | 评论(0) | 转发(0) |