centos 7 增加网卡子接口配置

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

你可能感兴趣的:(centos,接口,网卡)