天天看點

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

發現成功

繼續閱讀