当前位置:   article > 正文

【已解决】PVE shell: “connect: Network is unreachable”_pve: connect: network is unreachable

pve: connect: network is unreachable

刚安装的PVE,无法ping外网ip,也无法使用apt-get安装软件
解决办法如下:

  1. 命令行输入:
    ip route show
    输出:

    192.168.1.0/24 dev vmbr0 proto kernel scope link src 192.168.1.2 
    
    • 1
  2. 命令行输入:
    ip route add default via 192.168.1.3 dev vmbr0(这里192.168.1.3是ROS的地址)

  3. 再次ping,成功!

    root@pve:~# ping 8.8.8.8
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=86.2 ms
    64 bytes from 8.8.8.8: icmp_seq=2 ttl=114 time=88.2 ms
    64 bytes from 8.8.8.8: icmp_seq=3 ttl=114 time=83.6 ms
    64 bytes from 8.8.8.8: icmp_seq=4 ttl=114 time=77.5 ms
    64 bytes from 8.8.8.8: icmp_seq=5 ttl=114 time=72.3 ms
    
    --- 8.8.8.8 ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 9ms
    rtt min/avg/max/mdev = 72.343/81.570/88.225/5.850 ms
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号