赞
踩
刚安装的PVE,无法ping外网ip,也无法使用apt-get安装软件
解决办法如下:
命令行输入:
ip route show
输出:
192.168.1.0/24 dev vmbr0 proto kernel scope link src 192.168.1.2
命令行输入:
ip route add default via 192.168.1.3 dev vmbr0
(这里192.168.1.3是ROS的地址)
再次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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。