adilsonrapozojr
10/8/2019 - 3:27 PM

add new ip

#add 
ip addr add 192.168.20.50/24 dev ens2f0 label ens2f0:0

#remove
ip addr del 192.168.20.50/24 dev ens2f0:0 

#persist
/etc/sysconfig/network-scripts/ifcfg-ens2f0:0

DEVICE="ens2f0:0"
BOOTPROTO=static
IPADDR=192.168.20.50
NETMASK=255.255.255.0
ONBOOT=yes