vmware centos 设置静态ip

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

BOOTPROTO=static

ONBOOT=yes

IPADDR=192.168.226.128 # IP地址(重要)。

NETMARSK=255.255.255.0 # 子网掩码(重要)。

GATEWAY=192.168.226.2 # 网关(重要) 这里注意不能设置 192.168.226.1 会导致无法上网

参考

https://www.cnblogs.com/wucongzhou/p/12588705.html

原文地址:https://www.cnblogs.com/martinsun/p/15350480.html