配置子网卡
ifconfig eth1:1 192.168.0.99 netmask 255.255.255.0 up
网卡配置文件
cat /etc/sysconfig/network-scripts/ifcfg-eth1
BOOTPROTO=dhcp
DEVICE=eth1
ONBOOT=yes
STARTMODE=auto
TYPE=Ethernet
USERCTL=no
cat /etc/sysconfig/network-scripts/ifcfg-eth1:0
BOOTPROTO=static
DEVICE=eth1:0
ONBOOT=yes
STARTMODE=auto
TYPE=Ethernet
USERCTL=no
IPADDR=192.168.0.99
systemctl restart network”命令重启网络服务