-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webssh无法连接ipv6机器,显示:connect: cannot assign requested address #152
Comments
搭建方法为:docker-compose up -d
|
如果你用的是 具体来说,你可以按照下面的样例修改你的
|
如果使用docker 一键安装,如何开启ipv6呢?使用什么命令呢?docker-compose还是挺麻烦的 |
如果你是通过 |
感谢大佬!成功了! |
1.安装服务的机器物理ip支持ipv4和ipv6,系统为Debian11,版本为5.10.0-23-amd64。
2.配置docker支持ipv6:使用如下方法配置docker使其支持ipv6.
编辑 /etc/docker/daemon.json ,加上以下内容。(如果没有这个文件直接创建。)
{
"ipv6": true,
"fixed-cidr-v6": "fd00::/80",
"experimental": true,
"ip6tables": true
}
重启docker engine
sudo systemctl restart docker
测试
sudo docker run --rm -it busybox ping -6 -c4 ipv6-test.com
sudo docker run --rm -it busybox ifconfig
显示如下:
3.使用搭建好的webssh连接纯ipv6的小鸡,显示如下:connect: cannot assign requested address
The text was updated successfully, but these errors were encountered: