Open In App

Alias/Secondary IP Address

In the context of IP Addressing, Aliasing refers to the process of creating and configuring multiple IP addresses on a single Network Interface. By having aliased IP addresses, you can create multiple connections to a network for an individual node on a network where each connection can serve for a different purpose. 

Features of Secondary IP Address : 



IP Aliasing gives way to a new concept of Secondary IP addresses, which means that you can configure multiple Secondary IP Addresses on same interface which has primary IP address. This allows you to specify an unlimited number of secondary addresses to any network interface which if required can be detached from a Virtual Machine Instance. 

Example – 



In GCP we can configure a primary and at the same time,a secondary CIDR Range as a part of a subnet:

Here, primary IP Address of Virtual Machine is allocated from primary CIDR range, whereas an alias IP range, 10.2.1.0/24, is allocated in VM from secondary CIDR range. 

Note – 

The addresses in alias IP range are used as IP addresses of containers hosted in VM. 

Applications : 

Some most common applications of Secondary IP Address include:

For Instance, you can configure a secondary IP to your Device Interface or a Linux Environment if you have 2 IP subnets within same VLAN and wish to expand it when one subnet is exhausted or to migrate the default gateway of a host from one address to another. 

Advantages :

Disadvantages : 

As such there are no disadvantages of IP Aliasing and it’s used completely depends upon your requirement because you can specify an unlimited number of secondary addresses. But on other hand, it is suggested to use Secondary IP only in Corner Case Scenarios as it generates more broadcast traffic if you want to increase number of hosts. 

Also, secondary addresses do not support DHCP. The router will insert it’s primary interface IP address into DHCP request and remote server will never see a request for secondary subnet.

Article Tags :