Ubuntu16.04修改靜態ip地址

第一步:先獲取網卡名稱,輸入ifconfig,以下圖,咱們的網卡名稱爲 ens33vim

$ ifconfig網絡

第二步:修改網卡配置文件sudo  vim /etc/network/interfacesssh


$ sudo vim /etc/network/interfaces3d


第三步:修改DNS配置rest


$ sudo vim /etc/resolvconf/resolv.conf.d/headserver

第四部:重啓網絡服務 $ sudo /etc/init.d/networking restartblog


$ sudo /etc/init.d/networking restart
到此爲止就設置好靜態IP了.
附:若是你的CRT鏈接報錯The remote system refused the connection.
       多是沒有安裝ssh 服務,輸入下面命令便可
$ sudo apt-get install openssh-server

rem

相關文章
相關標籤/搜索