menu
small_header_rootserver.svg

netcup wiki

Server

Adding IP addresses

Adding additional IPs to your netcup server

Some of our customers require additional IP addresses. In the following chapter, we will explain how you can order an additional IP address for your server and subsequently add it.

1. Purchase of an additional IP address

A fee of 45 € (incl. 19% VAT) is charged for this.

Depending on your needs, you can order additional IP addresses from netcup:

2. Login to the Server Control Panel

After purchasing, log into your Server Control Panel (SCP) and navigate to the server to which you want to add an IP address.

3. Accessing the server

Access your server via "Screen" and log in with the login details you have chosen. Access via SSH is also possible.

4. Setting up the additional address

As part of this step, you will have to modify the configuration in the file '/etc/network/interfaces'. To do thisfollow the steps depending on whether you are setting up an additional IPv4 address or an additional /64 IPv6 subnet.

Setting up an additional IPv4 address To set up an additional IPv4 address, you need to modify the configuration in the file '/etc/network/interfaces'.

Execute the following command:

nano /etc/network/interfaces

Add the following line:

iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1

Please replace "192.168.1.10" with the desired IPv4 address.

Setting up an additional /64 IPv6 subnet To set up an additional /64 IPv6 subnet, you need to modify the configuration in the file '/etc/network/interfaces'.

Execute the following command:

nano /etc/network/interfaces

Add the following line:

iface eth0 inet6 static address 2a03:4000:2:11c5::1 netmask 64 gateway fe80::1

Please replace "2a03:4000:2:11c5::1" with the desired IPv6 address from the assigned /64 subnet.

5. Server restart

To apply the changes, you need to turn the server off and then on again.

6. Success

You have added an additional IP address, or an additional /64 IPv6 subnet, to your server.

Last update: 14/09/2023