全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 3206|回复: 20
打印 上一主题 下一主题

[疑问] 乌龟壳DD成Debian11之后,怎么分配IPV6啊?

[复制链接]
跳转到指定楼层
1#
发表于 2022-1-17 11:54:49 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
我的乌龟壳DD成Debian 11了,然后在面板分配好了IPV6地址,但是不生效。
应该是因为DD的原因,因为我另一台甲骨文默认镜像的机子,分配IPV6就能生效。
有教程吗,怎么搞啊?
推荐
发表于 2022-1-17 12:01:34 | 只看该作者
echo -e "iface eth0 inet6 dhcp" >> /etc/network/interfaces

重启

ping6 2606:4700:4700::1111

点评

补充下:eth0 根据自己实际设置  发表于 2022-1-17 12:21
20#
发表于 2022-1-17 13:14:22 | 只看该作者
脱氧核糖核酸 发表于 2022-1-17 12:22
root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available  ...

你需要在账户里面,编辑子网,手动分配ipv6地址,然后再在vps开启dncp获取
19#
 楼主| 发表于 2022-1-17 13:08:17 | 只看该作者
fangfang22 发表于 2022-1-17 12:52
apt update -y && apt install -y curl && curl -sSLO https://raw.githubusercontent.com/bohanyang/deb ...

行 我换这个脚本试试
18#
发表于 2022-1-17 12:52:40 | 只看该作者
脱氧核糖核酸 发表于 2022-1-17 12:22
root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available  ...

apt update -y && apt install -y curl && curl -sSLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh && chmod +x debi.sh && ./debi.sh --cdn --network-console --ethx --bbr --user root --password qgVt2sqxbmnjs8WzCBziKChyJw4M7TUb --timezone Asia/Shanghai --hostname localhost && reboot


我用的这个DD脚本D完就设置了就通了
17#
 楼主| 发表于 2022-1-17 12:33:36 | 只看该作者
gxhunter 发表于 2022-1-17 12:26
# This file describes the network interfaces available on your system
# and how to activate them.  ...

和我的文件 区别有点大  你的IPV4也是自动的
为啥我的IPV4那一段是静态地址 哎
16#
发表于 2022-1-17 12:26:58 | 只看该作者
脱氧核糖核酸 发表于 2022-1-17 12:24
能不能贴一下 cat /etc/network/interfaces 的结果

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 dhcp



我因为DD时选了让网卡显示成ethX的,所以网卡是这么显示的
15#
发表于 2022-1-17 12:25:30 | 只看该作者
脱氧核糖核酸 发表于 2022-1-17 12:22
root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available  ...

如果一直不行,就手动指定吧。应该是甲骨文的原因,果断时间再试试自动。
14#
 楼主| 发表于 2022-1-17 12:24:25 | 只看该作者
gxhunter 发表于 2022-1-17 12:23
好吧,我现在arm重新试了下,又行了,11月折腾了半个月,看样子是甲骨文的锅 ...

能不能贴一下 cat /etc/network/interfaces 的结果
13#
发表于 2022-1-17 12:23:19 | 只看该作者
老猹 发表于 2022-1-17 12:06
不是吧,我arm也可以这样改dhcp.已dd成Debian11.

好吧,我现在arm重新试了下,又行了,11月折腾了半个月,看样子是甲骨文的锅
12#
 楼主| 发表于 2022-1-17 12:22:24 | 只看该作者
fangfang22 发表于 2022-1-17 12:01
echo -e "iface eth0 inet6 dhcp" >> /etc/network/interfaces

重启


root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens3
iface ens3 inet static
        address 10.0.0.189/24
        gateway 10.0.0.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8
iface ens3 inet6 dhcp

上面是修改后的内容 ,reboot之后还是ping不通IPV6的地址。
我也晕了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-13 19:37 , Processed in 0.065807 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表