{"id":3085,"date":"2021-12-31T07:15:58","date_gmt":"2021-12-31T06:15:58","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=3085"},"modified":"2023-05-15T02:35:41","modified_gmt":"2023-05-15T00:35:41","slug":"configuring-additional-ip-addresses","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/configuring-additional-ip-addresses\/","title":{"rendered":"Configuring Additional IP Addresses"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP.jpg\" alt=\"cover pic Additional IP\" class=\"wp-image-12672\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP.jpg 1200w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP-600x315.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP-768x403.jpg 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p>The following guide will give you an overview on how to configure additional <a href=\"https:\/\/en.wikipedia.org\/wiki\/IP_address#IPv4_addresses\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">IPv4 addresses<\/a> on the most popular operating systems. We designed this article to be helpful not only for our Contabo customers, but also for people using any other provider. In addition to learning how to configure IPv4 addresses, you may need to refer to our related article on how to configure <a href=\"https:\/\/contabo.com\/blog\/ipv6-now-available-for-all-our-customers\/\" target=\"_blank\" rel=\"noreferrer noopener\">IPv6 addresses<\/a>: <a href=\"https:\/\/contabo.com\/blog\/adding-ipv6-connectivity-to-your-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/contabo.com\/blog\/adding-ipv6-connectivity-to-your-server<\/a><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-video-guide\">Video Guide<\/h2>\n\n\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/x6agdLGjI3M\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"allowfullscreen\" width=\"800\" height=\"450\" frameborder=\"0\"><\/iframe><\/p>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-getting-started\">Getting Started<\/h2>\n\n\n\n<p>As an example, we will use <strong>192.51.100.10<\/strong> as the primary IP address and we will assume that the additional IP address is <strong>192.51.100.42<\/strong>. As a general rule, we recommend configuring these addresses with a netmask of <strong>255.255.192.0(\/18)<\/strong> respectively <strong>\/128<\/strong> and without adding a new gateway.<\/p>\n\n\n\n<p>If you\u2019re not sure about your admin rights in Linux, always enter the command sudo -i at the beginning of every session:<br><code>sudo -i<\/code><\/p>\n\n\n\n<p>This command will grant you the rights of a power user, so you don\u2019t have to write the command sudo at the beginning of every command line.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-default-ip-configuration-for-contabo-customers\">Default IP Configuration for Contabo Customers<\/h3>\n\n\n\n<p>Every server comes already pre-configured with one IPv4 and one IPv6 address. Additional IPv4 addresses can be ordered when placing an order for a new server through our homepage or by contacting us at support@contabo.com. <em>Important:<\/em> Additional IPv4 addresses will not be added to your system automatically but will have to be configured manually.<\/p>\n\n\n\n<p>Additional IPv4 address is always tied to a specific server by default. In case you want to use your IP on a different server, it is necessary to change the IP assignment within the Contabo Customer Control Panel in the section \u201cIP Management&#8221;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-arch-linux-configuring-additional-ip\">Arch Linux: Configuring Additional IP<\/h2>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Arch_Linux\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Arch Linux<\/a> network configuration file is stored in <strong>\/etc\/systemd\/network\/eth0_STATIC.network<\/strong>. To open this file, we recommend using the text-editor \u201c<em>nano<\/em>\u201d. Other editors, such as \u201c<em>vim<\/em>\u201d will also work. The text-editor \u201c<em>nano<\/em>\u201d is not pre-installed on Arch Linux. To install it, just execute the following command:<br><code>pacman -S nano<\/code><\/p>\n\n\n\n<p>After installing \u201c<em>nano<\/em>\u201d open the network configuration file with this command:<br><code>nano \/etc\/system\/network\/eth0_STATIC.network<\/code><\/p>\n\n\n\n<p>When opening the file for the first time, it will look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"507\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Arch-pic1-1.png\" alt=\"\" class=\"wp-image-12640\"\/><\/figure>\n\n\n\n<p>In order to add 192.51.100.42 to your server, you need to add another \u201c<strong>Address<\/strong>\u201d entry at the end of the \u201c<strong>[Network]<\/strong>\u201d section. If you are a Contabo customer, the exact values can be found in the email Contabo sent you. If you are not a Contabo customer, contact your provider. The edited file should look like this picture:<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"480\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Arch-pic-2.png\" alt=\"\" class=\"wp-image-12645\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-left\">After completing the instructions, save the file and restart your server by typing:<br><code>reboot<\/code><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-centos-7-x-configuring-additional-ip\">CentOS 7.x: Configuring Additional IP<\/h2>\n\n\n\n<p>CentOS has all its network interface configuration files stored in <strong>\/etc\/sysconfig\/network-scripts<\/strong>. In order to configure additional IPv4 addresses, one virtual interface for each additional IPv4 address has to be created. The main interface is stored in \u201c<strong>ifcfg-eth0<\/strong>\u201d. If the main interface is e.g. <strong>ifcfg-eth0<\/strong>, the virtual interfaces would be named <strong>ifcfg-eth0:0<\/strong>, <strong>ifcfg-eth0:1<\/strong>, <strong>ifcfg-eth0:2<\/strong> and so on. To add additional IP addresses, it\u2019s required to create a new virtual interface. To do so, we are going to install the text-editor \u201c<em>nano<\/em>\u201d first. It\u2019s also possible to use any other text editor, such as \u201c<em>vim<\/em>\u201d, if you want to. The \u201c<em>nano<\/em>\u201d editor is not pre-installed on CentOS 7.x. To install nano, use the following command:<br><code>yum install nano<\/code><\/p>\n\n\n\n<p>Now, navigate to the network interface configuration folder using the following command:<br><code>cd \/etc\/sysconfig\/network-scripts<\/code><\/p>\n\n\n\n<p>Create a new virtual interface with:<br><code>nano ifcfg-eth0:0<\/code><\/p>\n\n\n\n<p>The file will be created and opened with the text-editor \u201cnano\u201d. Now the following paragraphs must be added:<br><code>DEVICE=\u201deth0:0\u201d<\/code><br><code>BOOTPROTO=\u201dnone\u201d<\/code><br><code>ONBOOT=\u201dyes\u201d<\/code><br><code>IPADDR=\u201d192.51.100.42\u201d<\/code><br><code>NETMASK=\u201d255.255.255.255\u201d<\/code><\/p>\n\n\n\n<p><em>Important:<\/em> Values used in this article are just an example. The values for \u201c<strong>IPADDR<\/strong>\u201d and \u201c<strong>NETMASK<\/strong>\u201d can be found in the email Contabo sent you. If you are not a Contabo customer the values should be provided by your provider.<\/p>\n\n\n\n<p>The file should look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1099\" height=\"607\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-CentOS-pic1.png\" alt=\"CentOS IP settings\" class=\"wp-image-12765\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-CentOS-pic1.png 1099w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-CentOS-pic1-600x331.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-CentOS-pic1-768x424.png 768w\" sizes=\"auto, (max-width: 1099px) 100vw, 1099px\" \/><\/figure>\n\n\n\n<p>After completing the instructions, save the file and restart your server by typing<br><code>reboot<\/code><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-freebsd-12-2-configuring-additional-ip\">FreeBSD 12.2: Configuring Additional IP<\/h2>\n\n\n\n<p>FreeBSDs network interface configuration is stored in <strong>\/etc\/rc.conf<\/strong>. In order to configure additional IPv4 addresses, you need to add aliases. To do so, we are going to install the text-editor \u201c<em>nano<\/em>\u201d first. Other editors, such as \u201c<em>vim<\/em>\u201d are possible as well, but for this tutorial we will use \u201cnano\u201d. This editor is not pre-installed on FreeBSD. To install nano use the following command:<br><code>pkg install nano<\/code><\/p>\n\n\n\n<p>Now open the network interface configuration file with:<br><code>nano \/etc\/rc.conf<\/code><\/p>\n\n\n\n<p>Go to the end of the document and create a new alias by inserting this line: <br><code>ifconfig_vtnet0_alias1=inet 192.51.100.42 netmask 255.255.255.255<\/code><\/p>\n\n\n\n<p><em>Important:<\/em> If you are a Contabo customer the values for \u201c<strong>inet<\/strong>\u201d and \u201c<strong>netmask<\/strong>\u201d can be found in the email Contabo sent you. Otherwise contact you provider regarding the exact values. We used our example-values here.<\/p>\n\n\n\n<p>If you want to add more than one additional IP address, use the same scheme, but carry on with alias2, alias3 and so on. After completing the instructions, save the file and restart your server with the following command:<br><code>reboot<\/code><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-rocky-linux-8-4-configuring-additional-ip\">Rocky Linux 8.4: Configuring Additional IP<\/h2>\n\n\n\n<p>To add additional IP addresses in Rocky Linux, you need to use the pre-installed tool nmtui.<br>Login as root and use the following command to access the nmtui interface:<br><code>nmtui<\/code><\/p>\n\n\n\n<p>It will look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"301\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic1.png\" alt=\"\" class=\"wp-image-12659\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic1.png 604w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic1-600x299.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Hit [Enter] to select the menu option \u201c<strong>Edit a connection\u201d<\/strong>. You will usually find one connection under \u201c<strong>Ethernet<\/strong>\u201d which is \u201c<strong>System eth0<\/strong>\u201d. It will look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"282\" height=\"197\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic2.png\" alt=\"\" class=\"wp-image-12661\"\/><\/figure>\n\n\n\n<p>Now hit [Enter] again. The new screen will look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"480\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic3.png\" alt=\"\" class=\"wp-image-12663\"\/><\/figure>\n\n\n\n<p>Use the arrow keys and\/or the [Tab] key to navigate in this menu. Make sure, that the IPv4 Configuration is set to \u201c<strong>Manual<\/strong>\u201d, otherwise change it to \u201c<strong>Manual<\/strong>\u201d. Navigate to the \u201c<strong>&lt;Add&#8230;&gt;<\/strong>\u201d section right below \u201c<strong>Addresses<\/strong>\u201d and hit [Enter]. Add your purchased additional IP address and put \u201c\/24\u201d as the subnet mask behind it.<\/p>\n\n\n\n<p><em>Important:<\/em> All information regarding your additional IP can be found in the email Contabo sent you. We use \u201c<strong>192.51.100.42<\/strong>\u201d as our example IP address. After switching the Mode to \u201c<strong>Manual<\/strong>\u201d and adding your address, it should look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"501\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic4.png\" alt=\"\" class=\"wp-image-12665\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic4.png 604w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Rocky-pic4-600x498.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Use the arrow keys or the [Tab] key to navigate to \u201c<strong>OK<\/strong>\u201d. Now navigate to \u201c<strong>Back<\/strong>\u201d. Use the arrow keys or the [Tab] key to select the second menu option \u201c<strong>Activate a connection<\/strong>\u201d. Deactivate the selected connection and activate it again. <em>Important advice<\/em>: Sometimes it happens that the console freezes and you get disconnected from your server.<\/p>\n\n\n\n<p><em>If you are a Contabo customer<\/em>, please login to my.contabo.com and manually restart your server. <em>If you\u2019re using a different provider<\/em>, login to your provider&#8217;s dashboard and try to restart your server there or contact your provider directly.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-debian-10-11-ubuntu-until-17-04-configuring-additional-ip\">Debian (10\/11) &amp; Ubuntu (until 17.04): Configuring Additional IP<\/h2>\n\n\n\n<p>Debian&#8217;s and Ubuntu&#8217;s network interface configuration is stored in <strong>\/etc\/network\/interfaces<\/strong>. Now we will open the network interface configuration with the text editor \u201dnano\u201d. To do so use this command:<br><code>nano \/etc\/network\/interfaces<\/code><\/p>\n\n\n\n<p>When opening the file for the first time it should look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Debian-pic1.jpg\" alt=\"\" class=\"wp-image-12669\" width=\"714\" height=\"491\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Debian-pic1.jpg 1295w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Debian-pic1-600x412.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Debian-pic1-768x528.jpg 768w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/figure>\n\n\n\n<p>In order to add <strong>192.51.100.42<\/strong> to your server, you need to copy the first block (framed in red) except the last line (starting at \u201c<strong>auto eth0<\/strong>\u201d; ending at \u201c<strong>dns-nameservers 231.136.95.11 231.136.95.10<\/strong>\u201d). Then paste the copied block with a little bit of spacing below as shown in the screenshot (The yellow framed block is the pasted one):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"449\" height=\"480\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Debian-pic2.png\" alt=\"\" class=\"wp-image-12675\"\/><\/figure>\n\n\n\n<p>Explaining the Screenshot: The red box contains all primary IP settings and 192.51.100.10 is your primary IP address. The yellow box contains additional IP settings. It&#8217;s similar to the first box but the &#8220;<strong>address<\/strong>&#8221; has been changed to the additional IP you&#8217;ve bought. Now it&#8217;s important to change the values for &#8220;address&#8221;, &#8220;<strong>netmask<\/strong>&#8221; and &#8220;<strong>gateway<\/strong>&#8220;.<em> If you are a Contabo customer<\/em> the exact values can be found in the email Contabo sent you. <em>Otherwise contact your provider <\/em>regarding the exact values.<\/p>\n\n\n\n<p>After completing the instructions, save the file and restart your server using the command:<br><code>reboot<\/code><\/p>\n\n\n\n<p><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-ubuntu-17-10-and-above-configuring-additional-ip\">Ubuntu (17.10 and above): Configuring Additional IP<\/h2>\n\n\n\n<p>In Ubuntu beginning with version 17.10, you can find the network configuration in the file <strong>\/etc\/netplan\/01-netcfg.yaml<\/strong>. With this method you can assign additional ipv4 addresses to the interface eth0. To do so, open the network configuration file with the following command:<br><code>nano \/etc\/netplan\/01-netcfg.yaml<\/code><\/p>\n\n\n\n<p>It should look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"421\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Ubuntu-newer-versions-1.png\" alt=\"Ubuntu 17.10 and above default settings\" class=\"wp-image-12687\"\/><\/figure>\n\n\n\n<p>To add additional IP addresses to Ubuntu, just add a new line to the \u201c<strong>addresses:<\/strong>\u201d section. It\u2019s important to keep the correct format!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"426\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-Ubuntu-newer-versions-pic2-1.png\" alt=\"\" class=\"wp-image-12691\"\/><\/figure>\n\n\n\n<p>The red framed IP address is the added one. To apply the changes, please enter the following commands:<br><code>netplan apply<\/code><br><code>reboot<\/code><\/p>\n\n\n\n<p>If you are a Contabo customer, you will find all the necessary values in the email Contabo sent you. Otherwise, contact your provider regarding your additional IP address.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-opensuse-leap-15-2-configuring-additional-ip\">OpenSUSE Leap 15.2: Configuring Additional IP<\/h2>\n\n\n\n<p>To add additional IP addresses to OpenSUSE, you need to use the pre-installed tool <em>YaST<\/em>. Login as root and use the following command to access the YaST interface:<br><code>yast2 lan<\/code><\/p>\n\n\n\n<p>It will look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"316\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic1.png\" alt=\"Using YaST to setting up additional IP\" class=\"wp-image-12694\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic1.png 604w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic1-600x314.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Now, use the [Tab] key to select you interface. Press [Alt+I] to edit the interface. You should see this menu now:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"316\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic2.png\" alt=\"\" class=\"wp-image-12696\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic2.png 604w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic2-600x314.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Use the [Tab] key to navigate to the [Add] button. This menu will pop up:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"316\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic3.png\" alt=\"Typing in the new IP address and netmask\" class=\"wp-image-12698\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic3.png 604w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic3-600x314.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Ignore the \u201c<strong>Address Label<\/strong>\u201d field and use the [Tab] key to navigate to \u201c<strong>IP Address<\/strong>\u201d. Fill in the additional IP you purchased at Contabo. All information needed can be found in the email Contabo sent you. For the Netmask, fill in number <br><code>24<\/code><\/p>\n\n\n\n<p>It should look like this picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"316\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic4.png\" alt=\"Finalizing OpenSuse additional IP\" class=\"wp-image-12700\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic4.png 604w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic4-600x314.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Now, use the [Tab] key again and select \u201c<strong>OK<\/strong>&#8220;. Use the [Tab] key to navigate to \u201c<strong>Next<\/strong>\u201d. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"316\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic5.png\" alt=\"\" class=\"wp-image-12702\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic5.png 604w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/IP-additional-OpenSuse-pic5-600x314.png 600w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/figure>\n\n\n\n<p>Select \u201c<strong>OK<\/strong>\u201d on the next page as well. Your changes will be saved and YaST will automatically close. After completing the instructions use this command to reboot your server:<br><code>reboot<\/code><\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-windows-server-2012r2-2016-2019-2022-configuring-additional-ip\">Windows Server 2012R2, 2016, 2019, 2022: Configuring Additional IP<\/h2>\n\n\n\n<p>Adding additional IP addresses on a <a href=\"https:\/\/contabo.com\/en\/windows-servers-vps\/\" target=\"_blank\" rel=\"noreferrer noopener\">Windows server<\/a> is very easy compared to Linux operating systems. To get started, search for \u201c<strong>Control Panel<\/strong>\u201d in the Windows search bar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"466\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-Server-pic1.png\" alt=\"First open the control panel\" class=\"wp-image-12721\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-Server-pic1.png 699w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-Server-pic1-600x400.png 600w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p>After opening the Control Panel select \u201c<strong>Network and Internet<\/strong>\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"440\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic2.png\" alt=\"Network and Internet settings control panel\" class=\"wp-image-12719\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic2.png 686w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic2-600x385.png 600w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<p>Now navigate to the \u201c<strong>Network and Sharing Center<\/strong>\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"686\" height=\"440\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic3.png\" alt=\"Network and Sharing Center\" class=\"wp-image-12717\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic3.png 686w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic3-600x385.png 600w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/figure>\n\n\n\n<p>Select the connection type which is \u201c<strong>Ethernet<\/strong>\u201d in this case.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"446\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic4.png\" alt=\"Ethernet settings\" class=\"wp-image-12715\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic4.png 695w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic4-600x385.png 600w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/figure>\n\n\n\n<p>A window with your Ethernet Status will pop up. Here you can see the general status of your server\u2019s connection. Continue by clicking on \u201c<strong>Properties<\/strong>\u201d:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"450\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic5.png\" alt=\"Ethernet settings\" class=\"wp-image-12713\"\/><\/figure>\n\n\n\n<p>Another window will pop up. Double-Click on \u201c<strong>Internet Protocol Version 4 (TCP\/IPv4)<\/strong>\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"468\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic6.png\" alt=\"IPv4 properties access\" class=\"wp-image-12711\"\/><\/figure>\n\n\n\n<p>Again, another window with your server\u2019s IPv4 properties will open. Here you can see your main IP address, as well as your subnet mask, the default gateway etc. Click on &#8220;<strong>Advanced<\/strong>&#8220;:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"455\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic7.png\" alt=\"IP and DNS dialog window\" class=\"wp-image-12709\"\/><\/figure>\n\n\n\n<p>Another window with the \u201c<strong>Advanced TCP\/IP settings<\/strong>\u201d will open. This is the menu where you can add your additional IP address by clicking on \u201c<strong>Add<\/strong>\u201d under the \u201c<strong>IP addresses<\/strong>\u201d section:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"480\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic8.png\" alt=\"Add IP settings\" class=\"wp-image-12707\"\/><\/figure>\n\n\n\n<p>A little window will open. Here you can finally enter your additional IP address as well as your subnet mask\/gateway:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"146\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-Windows-pic9.png\" alt=\"Type in your credentials\" class=\"wp-image-12705\"\/><\/figure>\n\n\n\n<p>If you are a Contabo customer, you will find all necessary values in the email Contabo sent you. If you are not a Contabo customer, contact your provider regarding your additional IP settings. After filling everything in, click on \u201cAdd\u201d. The new IP address is now active!<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-cpanel-configuring-additional-ip\">cPanel: Configuring Additional IP<\/h2>\n\n\n\n<p>Adding additional IP addresses in <a href=\"https:\/\/contabo.com\/en\/cpanel-servers\/\" target=\"_blank\" rel=\"noreferrer noopener\">cPanel<\/a> is very easy. There is no need to deal with configuration files. Log in to <a href=\"https:\/\/contabo.com\/blog\/cpanelwhm-practices\/\" target=\"_blank\" rel=\"noreferrer noopener\">WHM (Web Host Manager)<\/a> by entering your IP address and the Port of cPanel which is usually 2087. Example: <strong>http:\/\/YourIPAddress:2087<\/strong>. If you are a Contabo customer, you will get an email with your login data and a direct link to your control panel:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"606\" height=\"48\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-cpanel-pic1.png\" alt=\"Credentials for Contabo customers\" class=\"wp-image-12728\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-cpanel-pic1.png 606w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-cpanel-pic1-600x48.png 600w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/figure>\n\n\n\n<p>After logging yourself in into the cPanel\/WHM Dashboard, use the search bar on the left to search for \u201c<strong>IP Functions<\/strong>\u201d and select \u201c<strong>Add a New<\/strong> <strong>IP Address<\/strong>\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"224\" height=\"432\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-cpanel-pic2.png\" alt=\"cPanel opening the dialog window\" class=\"wp-image-12726\"\/><\/figure>\n\n\n\n<p>A menu will appear, where you can add your additional IP address and select the subnet mask. <em>If you are a Contabo customer<\/em>, you will find all necessary values in the email Contabo sent you. <em>Otherwise contact your provider<\/em> regarding your additional IP address.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"330\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/Additional-IP-cpanel-pic3.png\" alt=\"Final step in adding IP in cPanel\" class=\"wp-image-12724\"\/><\/figure>\n\n\n\n<p>After you\u2019ve entered your values, hit \u201cSubmit\u201d. The new IP address is now active!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following guide will give you an overview on how to configure additional IPv4 addresses on the most popular operating systems. We designed this article to be helpful not only for our Contabo customers, but also for people using any other provider. In addition to learning how to configure IPv4 addresses, you may need to [&hellip;]<\/p>\n","protected":false},"author":50,"featured_media":12672,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18],"tags":[123,125,204,246,254,476,604,852,894,942],"ppma_author":[1491],"class_list":["post-3085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-centos","tag-centos-7-0","tag-cpanel","tag-debian","tag-dedicated-server","tag-ip","tag-opensuse","tag-ubuntu","tag-vps","tag-windows-server"],"uagb_featured_image_src":{"full":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP.jpg",1200,630,false],"thumbnail":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP-150x150.jpg",150,150,true],"medium":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP-600x315.jpg",600,315,true],"medium_large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP-768x403.jpg",768,403,true],"large":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP.jpg",1200,630,false],"1536x1536":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP.jpg",1200,630,false],"2048x2048":["https:\/\/contabo.com\/blog\/wp-content\/uploads\/2021\/12\/cover-additional-IP.jpg",1200,630,false]},"uagb_author_info":{"display_name":"Tobias Mildenberger","author_link":"https:\/\/contabo.com\/blog\/author\/tobias\/"},"uagb_comment_info":0,"uagb_excerpt":"The following guide will give you an overview on how to configure additional IPv4 addresses on the most popular operating systems. We designed this article to be helpful not only for our Contabo customers, but also for people using any other provider. In addition to learning how to configure IPv4 addresses, you may need to&hellip;","authors":[{"term_id":1491,"user_id":50,"is_guest":0,"slug":"tobias","display_name":"Tobias Mildenberger","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/077178d5dce6c3d4c0c0396857a7e544bfdf8adf04145fff5160b33a22e28b1f?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/3085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=3085"}],"version-history":[{"count":2,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/3085\/revisions"}],"predecessor-version":[{"id":17026,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/3085\/revisions\/17026"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media\/12672"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=3085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=3085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=3085"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=3085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}