ubuntu配置靜態IP位址

2021-06-19 15:14:02 字數 410 閱讀 5571

我本人使用的linux為深度的發行版,其核心仍然是ubuntu,並且我的使用環境是vmware中。

其靜態ip配置如下:

1.首先sudo vim /etc/network/inte***ces

2.然後輸入如下內容:

auto lo

iface lo inet loopback

#前兩行是系統自帶的。

auto eth0

iface eth0 inet static

address 192.168.77.5

netmask 255.255.255.0

gateway 192.168.77.2  #vmware nat方式的的閘道器一般都是2,前面位址根據自己的實際的ip段來設定。

broadcast 192.168.77.255

ubuntu配置靜態IP位址

ubuntu靜態ip配置方法 sudo gedit etc network inte ces auto eth0 iface eth0 inet static 指定為static address 192.168.1.103 ip位址 gateway 192.168.1.1 閘道器 netmask 2...

Ubuntu下靜態IP位址的配置

linux下靜態ip位址的配置 設定ip sudo vi etc network inte ces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.221 netmask 255.25...

Ubuntu 20 04配置靜態IP位址

ubuntu 20.04中使用的是netplan來配置網路,其實也挺方便的,記錄一下過程 確認網絡卡名稱,我這裡是ens3 ip a 先刪除系統安裝過程中建立的網路配置檔案 sudo rm etc netplan yaml f 建立新的配置檔案 sudo vim etc netplan static...