天天看點

CentOS7 設定靜态IP位址

ifconfig 

CentOS7 設定靜态IP位址

vim /etc/sysconfig/network-scripts/ifcfg-ens33

子網路遮罩對應上面 netmask  (注意是 DNS1)

(如果位址不知道,看文章下面的截圖)

CentOS7 設定靜态IP位址

service network restart

CentOS7 設定靜态IP位址

ping www.baidu.com

CentOS7 設定靜态IP位址

IP,子網路遮罩,網關位址:

CentOS7 設定靜态IP位址
CentOS7 設定靜态IP位址
CentOS7 設定靜态IP位址

繼續閱讀