天天看点

linux_server ping 命令无效

参照网上的教程一步一步把Ubuntu Server 16.04 安装到主机。参照连接

Ubuntu Server 16.04

先检测是否联网,在命令行中输入 ping 8.8.8.8

返回

NetWork is unreachable
           

输入ifconfig

返回

lo  ....
           

百度一番,发现网卡没启用,在命令行输入

ifconfig eth0 up

返回

Operation not permitted
           

接着切换到超级管理员,输入su

返回

Authentication failure
           

接着百度

$ sudo passwd root 
123456
Retype new UNIX password: 
123456
passwd: password updated successfully
           

再次输入

ifconfig eth0 up

发现成功

继续阅读