Add alternate IP Address


Add additional IP-Address to network interface

If network devices are to be managed in different subnets, it helps to add a second IP address to the network interface. This post shows how to manage alternate IP settings for Windows clients, Linux and macOS.

How to add alternate IPv4 Address on Windows

In order to be able to use Windows for an additional network, the alternate IP settings are opened.

Windows Logo + R

To do this, press the keys Windows-Logo + R to open the Run box.

Open Run enter ncpa.cpl and click OK

Enter ncpa.cpl in the field and click OK.

The Network Connections Control Panel opens, choose an active network adapter that you are use.

select active network connection

In the Network Connections panel; right-click on Properties above the active network adapter.

Control Panel Ethernet Properties

Select the line Internetprotocol Version 4 (TCP/IPv4) and click Properties. Note. do not disable with uncheck the Internetprotocol.

Add alternate IP-Address

Enter an IP address in the Alternate Configuration tap, e.g. and the subnet mask Confirm the entry by clicking OK to activate the alternate IP address.

How to add alternate IPv4 address on Linux

Linux can be provide multiple IP addresses configured for network interfaces. The following command shows how to temporarily add an alternate IP to a network interface (network card), as root or with sudo in the Linux shell.

The network interface eth0 can be have a different name, with run ip link and ip address or ifconfig the network interfaces are displayed. All links, such as the loopback interface are output with an index number, depending on how the system is in use, probably using Docker or Virtualbox then virtual links such as virbr0 can also exist, or a WiFi interface like wlp2s0.

With modern Linux distributions like Debian 10 (buster) or CentOS 7 and later, the command ip address can by run.

How to add alternate IP address on macOS

In macOS terminal add second IP address to interface en0.

The device can now be queried with ping or if provided try to connect via SSH or HTTP, for example to

For Linux and macOS, SSH is built in and can be used out of the box.

How useful was this post?

Click on a star to rate it!

Average rating 5 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply

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