V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wangbin11
V2EX  ›  宽带症候群

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

  •  
  •   wangbin11 · 147 天前 · 858 次点击
    这是一个创建于 147 天前的主题,其中的信息可能已经有所发展或是发生改变。

    配置文件如下

    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: []
    
    • 都是 Ubuntu 22.04 版本,查看了很多方法无解只有 fe80 物理地址
    7 条回复    2023-12-17 19:25:52 +08:00
    yyzh
        1
    yyzh  
       147 天前 via Android
    🤔同一个网络里么?
    HTDit
        2
    HTDit  
       147 天前 via Android
    把桌面配置导出来看下,有没有区别
    wangbin11
        3
    wangbin11  
    OP
       147 天前
    @HTDit 桌面不用 netplan ,只有 server 用这个,
    wangbin11
        4
    wangbin11  
    OP
       147 天前
    @yyzh 肯定同一个内容啊二层通的,你这话说的
    wangbin11
        5
    wangbin11  
    OP
       147 天前
    我是 esxi 虚拟机,如果我安装的时候选择开启 ipv6 第一个镜像可以,克隆就不行了,但是克隆的机器 mac 都不相同,搞不懂
    A01514035
        6
    A01514035  
       147 天前
    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
        7
    wangbin11  
    OP
       147 天前
    @A01514035 配置好了,但是也是无法获取,就很难
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1182 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 712ms · UTC 18:17 · PVG 02:17 · LAX 11:17 · JFK 14:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.