1.
/etc/sysconfig 编辑network
NETWORKING=yes
HOSTNAME=ITS006
GATEWAY=10.1.30.211
2.
/etc/sysconfig/network-scripts 编辑网卡
TYPE=Ethernet
BOOTPROTO=static
IPADDR=10.1.30.211
PREFIX=24
GATEWAY=10.1.30.254
NETMASK=255.255.255.0
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=yes
NAME="Auto em1"
UUID=8a9089ff-9576-49c9-ae61-13c5cfe8734d
ONBOOT=yes
HWADDR=14:18:77:4B:79:63
LAST_CONNECT=1500430383
来源:CSDN
作者:qianhuan_
链接:https://blog.csdn.net/qianhuan_/article/details/103618981