全球主机交流论坛

标题: 乌龟壳DD成Debian11之后,怎么分配IPV6啊? [打印本页]

作者: 脱氧核糖核酸    时间: 2022-1-17 11:54
标题: 乌龟壳DD成Debian11之后,怎么分配IPV6啊?
我的乌龟壳DD成Debian 11了,然后在面板分配好了IPV6地址,但是不生效。
应该是因为DD的原因,因为我另一台甲骨文默认镜像的机子,分配IPV6就能生效。
有教程吗,怎么搞啊?
作者: SaberAlter    时间: 2022-1-17 11:56
需要自己手动改网卡配置文件
作者: 脱氧核糖核酸    时间: 2022-1-17 11:57
SaberAlter 发表于 2022-1-17 11:56
需要自己手动改网卡配置文件

能说的详细点么?
作者: puerboy    时间: 2022-1-17 11:58
提示: 作者被禁止或删除 内容自动屏蔽
作者: wisdom    时间: 2022-1-17 12:01
dhclient -6 ens3
然后就好了
作者: fangfang22    时间: 2022-1-17 12:01
echo -e "iface eth0 inet6 dhcp" >> /etc/network/interfaces

重启

ping6 2606:4700:4700::1111

作者: SaberAlter    时间: 2022-1-17 12:01
脱氧核糖核酸 发表于 2022-1-17 11:57
能说的详细点么?

谷歌一下debian如何配置ipv6就有了
作者: 老猹    时间: 2022-1-17 12:03
本帖最后由 老猹 于 2022-1-17 12:04 编辑

楼上大佬说了
作者: gxhunter    时间: 2022-1-17 12:04
AMD的改下/etc/network/interfaces  ,添加一条iface eth0 inet6 dhcp(或者其他网卡编号)
ARM的只能手动指定IP
作者: 老猹    时间: 2022-1-17 12:06
gxhunter 发表于 2022-1-17 12:04
AMD的改下/etc/network/interfaces  ,添加一条iface eth0 inet6 dhcp(或者其他网卡编号)
ARM的只能手动 ...

不是吧,我arm也可以这样改dhcp.已dd成Debian11.
作者: gxhunter    时间: 2022-1-17 12:09
本帖最后由 gxhunter 于 2022-1-17 12:13 编辑
老猹 发表于 2022-1-17 12:06
不是吧,我arm也可以这样改dhcp.已dd成Debian11.


我的春川ARM开机时的Ubuntu可以,DD的d11就不行,没找到原因
怎么都不能自动获取,只能手动设定IP
作者: 脱氧核糖核酸    时间: 2022-1-17 12:22
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的地址。
我也晕了
作者: gxhunter    时间: 2022-1-17 12:23
老猹 发表于 2022-1-17 12:06
不是吧,我arm也可以这样改dhcp.已dd成Debian11.

好吧,我现在arm重新试了下,又行了,11月折腾了半个月,看样子是甲骨文的锅
作者: 脱氧核糖核酸    时间: 2022-1-17 12:24
gxhunter 发表于 2022-1-17 12:23
好吧,我现在arm重新试了下,又行了,11月折腾了半个月,看样子是甲骨文的锅 ...

能不能贴一下 cat /etc/network/interfaces 的结果
作者: gxhunter    时间: 2022-1-17 12:25
脱氧核糖核酸 发表于 2022-1-17 12:22
root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available  ...

如果一直不行,就手动指定吧。应该是甲骨文的原因,果断时间再试试自动。
作者: gxhunter    时间: 2022-1-17 12:26
脱氧核糖核酸 发表于 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的,所以网卡是这么显示的
作者: 脱氧核糖核酸    时间: 2022-1-17 12:33
gxhunter 发表于 2022-1-17 12:26
# This file describes the network interfaces available on your system
# and how to activate them.  ...

和我的文件 区别有点大  你的IPV4也是自动的
为啥我的IPV4那一段是静态地址 哎
作者: fangfang22    时间: 2022-1-17 12:52
脱氧核糖核酸 发表于 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完就设置了就通了
作者: 脱氧核糖核酸    时间: 2022-1-17 13:08
fangfang22 发表于 2022-1-17 12:52
apt update -y && apt install -y curl && curl -sSLO https://raw.githubusercontent.com/bohanyang/deb ...

行 我换这个脚本试试

作者: 温柔尝尽了吗    时间: 2022-1-17 13:14
脱氧核糖核酸 发表于 2022-1-17 12:22
root@debian:~# cat /etc/network/interfaces
# This file describes the network interfaces available  ...

你需要在账户里面,编辑子网,手动分配ipv6地址,然后再在vps开启dncp获取




欢迎光临 全球主机交流论坛 (https://mjj.022333.xyz/) Powered by Discuz! X3.4