In today’s tutorial, I’m going to show you how to configure a secondary IP on Linux CentOS 7. In two previous posts, I talked a bit about using two IPs on the same interface, I showed you how to configure it on Windows and Linux Ubuntu, and today I want to show you this same configuration for Linux CentOS 7. If you want to know more about using two IPs on the same interface, and learn how to configure it on Ubuntu and Windows, check out my other two posts at the links below.
In CentOS we have a utility called nmtui, using this utility it becomes extremely simple and fast to configure your secondary IP, when using it a graphical interface is opened to perform the configuration, in the command terminal type nmtui
# O comando abaixo abre o utilitário de configuração de rede.
nmtui
Use the systemctl restart network command to restart the network service.
# Comando para reiniciar o serviço de rede.
systemctl restart network
Your secondary IP is now configured in CentOS.