Permanently add an additional IP address under Debian

Permanently add an additional IP address under Debian

Assigning additional IP addresses in a Debian-based operating system is an important step to extend network connectivity and functionality. This article will explain how to permanently add an additional IP address in Debian.

First, we open the corresponding configuration file with

 nano /etc/network/interfaces

Then we add the IP address to the file:

auto enp5s0:0 
#enp5s0 is the name of the network interface 
#:0 denotes the first additional IP address
#for each additional IP there is an increase :1, :2 etc.
iface enp5s0:0 inet static
address IP_ADDRESS
netmask 32

The network service must then be restarted:

systemctl restart networking

Leave a Reply

Your email address will not be published. Required fields are marked *