【问题】
安装完radvd后,/etc/init.d/radvd restart 后,ps -aux 看不到radvd的进行信息
【查找原因】
官网的帮助文档中有如下描述:
Note that if debugging is not enabled, radvd will not start if IPv6
forwarding is disabled. IPv6 forwarding can be controlled via
sysctl(8), net.ipv6.conf.all.forwarding on Linux or
net.inet6.ip6.forwarding on BSD.
查看信息后,发现forwarding是0;
~$ cat /proc/sys/net/ipv6/conf/all/forwarding
0
【解决方法】
sudo sysctl net.ipv6.conf.all.forwarding=1
然后再
sudo /etc/init.d/radvd restart
就可以看到radvd的进程信息
radvd 5247 0.0 0.0 12892 1764 ? Ss 17:32 0:00 /usr/sbin/radvd -u radvd -p /var/run/radvd/radvd.pid
root 5248 0.0 0.0 12892 152 ? S 17:32 0:00 /usr/sbin/radvd -u radvd -p /var/run/radvd/radvd.pid