[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
BOOTPROTO=node
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=ens33
UUID=19623d7b-a010-4074-9720-a52efa925ac5
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.27.150
还可以添加网关和掩码
NETMASK=255.255.255.224
GATEWAY=192.168.27.254