I have a vm lab with CentOS 7.5 servers. There's no dhcp and each server in the lab has its IP address manually assigned. Each machine has NetworkManager stopped and disabled.
I add the IP by using
# ip addr add 192.168.1.100/24 dev ens192 followed by
# ip link set ens192 up
Everything works fine, except when the machine reboot it loses the IP address and I have to manually set it again.
I assume there's some
systemctl command or somethng I have to run besides these two commands that makes it permanent, but I don't know what. Hopefully you can help. Thanks