How to add an additional IP to your server with nmtui

How to add an additional IP to your server with nmtui

 

- SSH to your server

- Run #nmtui

- Select "edit a connection"

- Select the ethernet port you want to add the IP to (default will be eth0) then select "Edit..."

- Scroll down to the "Add..." button and press enter

- Type in your IP address followed by / and the subnet.  You can use the same subnet number as your existing IP(s) on the server and in most cases it will be /24.  For example, you might write 172.16.1.10/24 as your IP.

- Scroll down and press "OK"

- Scroll down and press "Back"

- Scroll down and press "OK"

- Run #systemctl restart network

- Your new IP has been added to your server and you can view it by running #ip addr