Ubuntu16 04修改靜態ip位址

2021-10-10 03:28:47 字數 708 閱讀 7992

第一步:先獲取網絡卡名稱,輸入ifconfig,如下圖,我們的網絡卡名稱為 ens33

第二步:修改網絡卡配置檔案sudo vim /etc/network/inte***ces

第三步:修改dns配置

第四部:重啟網路服務 $ sudo /etc/init.d/networking restart

$ sudo /etc/init.d/networking restart

到此為止就設定好靜態ip了.

附:如果你的crt連線報錯the remote system refused the connection.

可能是沒有安裝ssh 服務,輸入下面命令即可

$ sudo apt-get install openssh-server

Ubuntu 16 04 修改為靜態IP

一.首先你得知道你的網絡卡叫什麼ifconfig比如我的叫enp0s3 類似的比如eth0,eth1等等 二.修改配置檔案sudo gedit etc network inte ces新增以下內容 auto enp0s3 iface enp0s3 inet static address 192.16...

Ubuntu16 04修改靜態ip位址

第一步 先獲取網絡卡名稱,輸入ifconfig,如下圖,我們的網絡卡名稱為 ens33 第二步 修改網絡卡配置檔案sudo vim etc network inte ces 第三步 修改dns配置 配置dns,編輯配置檔案 etc resolv.conf,增加如下內容 第四部 重啟網路服務 sudo...

ubuntu16 04和 18 04配置靜態ip

sudo vim etc network inte ces auto ens33 iface ens33 inet static address 192.168.211.30 netmask 255.255.255.0 gateway 192.168.211.2 dns nameservers 19...