vim /etc/sysconfig/network-scripts/ifcfg-ens32
TYPE=Ethernet
BOOTPROTO=none
DEVICE=ens32
ONBOOT=yes
vlan 200
vim /etc/sysconfig/network-scripts/ifcfg-ens32.200
DEVICE=ens32.200
BOOTPROTO=none
ONBOOT=yes
IPADDR=172.168.1.10
PREFIX=24
NETWORK=172.168.1.0
VLAN=yes
vlan 300
vim /etc/sysconfig/network-scripts/ifcfg-ens32.300
DEVICE=ens32.300
BOOTPROTO=none
ONBOOT=yes
IPADDR=172.168.2.10
PREFIX=24
NETWORK=172.168.2.0
VLAN=yes
重启网络后验证
systemctl restart network