全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
12
返回列表 发新帖
打印 上一主题 下一主题

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

[复制链接]
11#
发表于 2022-1-17 12:09:05 | 只看该作者
本帖最后由 gxhunter 于 2022-1-17 12:13 编辑
老猹 发表于 2022-1-17 12:06
不是吧,我arm也可以这样改dhcp.已dd成Debian11.


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

好吧,我现在arm重新试了下,又行了,11月折腾了半个月,看样子是甲骨文的锅
14#
 楼主| 发表于 2022-1-17 12:24:25 | 只看该作者
gxhunter 发表于 2022-1-17 12:23
好吧,我现在arm重新试了下,又行了,11月折腾了半个月,看样子是甲骨文的锅 ...

能不能贴一下 cat /etc/network/interfaces 的结果
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  ...

如果一直不行,就手动指定吧。应该是甲骨文的原因,果断时间再试试自动。
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的,所以网卡是这么显示的
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那一段是静态地址 哎
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完就设置了就通了
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 ...

行 我换这个脚本试试
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获取
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-13 15:46 , Processed in 0.061230 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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