vi /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO=“static”(原dhcp)
IPADDR=ip(不加引号,自己添加IPADDR字段)
systemctl restart network
注意:固定ip会对docker pull有影响
vi /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO=“static”(原dhcp)
IPADDR=ip(不加引号,自己添加IPADDR字段)
systemctl restart network
注意:固定ip会对docker pull有影响