vim /etc/sysconfig/network-scripts/ifcfg-enp2s0:0
TYPE=Ethernet
DEVICE=enp2s0:0
ONBOOT=yes
BOOTPOTO=static
IPADDR=192.168.2.200
PREFIX0=24
GATEWAY=192.168.20.1
ONPARENT=yes
BROADCAST=192.168.20.255
原文地址:http://manyushuai.blog.51cto.com/8818545/1775397