目录
Network Configuration and Packet Forwarding
IPv6 Router Advertisement Daemon
Network Configuration and Packet Forwarding
修改 /etc/sysctl.conf
net.ipv6.conf.all.forwarding=1
或者
sysctl -w net.ipv6.conf.all.forwarding=1
配置网口信息
# eth0 to Internet
iface eth0 inet6 static
address 2001:db8:0:1::2
netmask 64
gateway 2001:db8:0:1::1
# eth1 to internal network
iface eth1 inet6 static
address 2001:db8:0:2::1
netmask 64
IPv6 Router Advertisement Daemon
apt-get install radvd
修改配置/etc/radvd.conf
interface eth1
{
AdvSendAdvert on;
prefix 2001:db8:0:2::/64
{
};
};
重启radvd 服务
service radvd start
The RDNSS and DNSSL Options
配置/etc/radvd.conf 文件中RDNSS 信息
interface eth1
{
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix 2001:db8:0:1::/64
{
};
RDNSS 2001:db8:0:1::a 2001:db8:0:1::b
{
AdvRDNSSLifetime 10;
};
DNSSL koo.fi
{
AdvDNSSLLifetime 10;
};
};
重启 radvd