nmcli

Смотрим сетевые устройства:

# nmcli dev
DEVICE    TYPE        STATE            CONNECTION 
enp64s0   ethernet    подключено       enp64s0 
enp5s9    ethernet    подключено       enp5s9 
lo        loopback    без управления   --
# nmcli con show
NAME               UUID                                   TYPE       DEVICE 
enp5s9             1454cfa8-305a-446e-a257-8d8e6a884c05   ethernet   enp5s9 
enp64s0            f1963841-564a-4e83-8417-89279a1ce0cd   ethernet   enp64s0 
Wired connection 1 e21c76c3-554e-3743-9c72-feb52fb1972a   ethernet   --

Добавить адрес

# nmcli con add con-name enp5s9 ifname enp5s9 type ethernet ip4 10.10.5.1/24 gw4 10.10.5.1

Создать VLAN

# nmcli con del eth0

To create the two vlans on the eth0 network interface, type:

# nmcli con add type vlan con-name vlan10 dev eth0 id 10

To check the new configuration, type:

# nmcli con show

Configure the network interfaces

# nmcli con mod vlan5 ipv4.addresses 10.10.5.1/24 # nmcli con mod vlan5 ipv4.gateway 10.10.5.1 # nmcli con mod vlan5 ipv4.method manual # nmcli con up vlan5

RHEL7: How to configure vlans.