Ubuntu 桌面可以获取 ipv6 但是 Ubuntuserver 无法获取 ipv6 地址

161 天前
 wangbin11

配置文件如下

cat /etc/netplan/00-installer-config.yaml 
network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: false
      dhcp6: true
      addresses:
      - 192.168.3.104/24
      routes: 
        - to: 0.0.0.0/0
          via: 192.168.3.1
      nameservers:
        addresses:
        - 192.168.3.1
        search: []
874 次点击
所在节点    宽带症候群
7 条回复
yyzh
161 天前
🤔同一个网络里么?
HTDit
161 天前
把桌面配置导出来看下,有没有区别
wangbin11
161 天前
@HTDit 桌面不用 netplan ,只有 server 用这个,
wangbin11
161 天前
@yyzh 肯定同一个内容啊二层通的,你这话说的
wangbin11
161 天前
我是 esxi 虚拟机,如果我安装的时候选择开启 ipv6 第一个镜像可以,克隆就不行了,但是克隆的机器 mac 都不相同,搞不懂
A01514035
161 天前
racknerd 工单给我的回复,有兴趣可以试一下。
We have successfully added the IPV6 address for your server, please allow some time for the configuration.
And also please note For Ubuntu & Debian instance needs to enable IPV6 manually after configuring. Kindly follow the below-mentioned steps to enable the IPv6 address for your server.
Login to your server via ssh connection and adding the below entries in sysctl.conf file:
nano /etc/sysctl.conf
Scroll all the way down, and add the following lines at the end:
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.eth0.autoconf = 0
net.ipv6.conf.eth0.accept_ra = 0
To check run:
sysctl -p
Then try to restart network
systemctl restart networking
Then check with
ping6 google.com
If its still not working try to reboot your VPS once.
wangbin11
161 天前
@A01514035 配置好了,但是也是无法获取,就很难

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1001119

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX