修改ifcfg-ens33
BOOTPROTO=static
ONBOOT=yes
IPADDR=XXX.XXX.XXX.3~254
GATEWAY=XXX.XXX.XXX.2
PREFIX=24(255.255.255.0)
DNS=与宿主机的DNS相同,如
IPADDR
重启network服务:service network restart
2024-02-23 08:48:10
修改ifcfg-ens33
BOOTPROTO=static
ONBOOT=yes
IPADDR=XXX.XXX.XXX.3~254
GATEWAY=XXX.XXX.XXX.2
PREFIX=24(255.255.255.0)
DNS=与宿主机的DNS相同,如
IPADDR
重启network服务:service network restart