{"id":8245,"date":"2020-05-20T09:19:37","date_gmt":"2020-05-20T06:19:37","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=8245"},"modified":"2023-01-19T13:49:09","modified_gmt":"2023-01-19T10:49:09","slug":"add-ip-addresses-to-cloud-vps","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/","title":{"rendered":"Add IP addresses to KVM VPS"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">IP aliasing is a special network configuration for your KVM VPS, which allows you to associate multiple IP addresses with a single network interface.<!--more--><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">The following sections contain the configurations for the most commonly used distributions\/operating\u00a0systems.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>Concerning current distributions, please note that the proper procedure to configure your network interface may be subject to change. We recommend to consult the manuals and knowledge resources of the respective\u00a0<span class=\"caps\">OS<\/span>\u00a0versions if you experience any issues.<\/strong><\/span><\/pre>\n<h4 id=\"debian-9\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Debian 9<\/span><\/h4>\n<h5 id=\"step-1-disable-automatic-network-configuration\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 1 Disable automatic network<span class=\"widont\">\u00a0<\/span>configuration<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">First, open the following file, as shown<span class=\"widont\">\u00a0<\/span>below:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong><span class=\"c1\"># nano \/etc\/cloud\/cloud.cfg.d\/99-disable-network-config.cfg<\/span><\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Next, edit the file with the configuration shown below. This will prevent changes from being made to your network configuration<span class=\"widont\">\u00a0<\/span>automatically.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>network: <span class=\"o\">{<\/span>config: disabled<span class=\"o\">}<br \/><\/span><\/strong><\/span><\/pre>\n<h5 id=\"step-2-edit-the-network-configuration-file_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 2 Edit the network configuration<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Next, open the network configuration file for editing with the following<span class=\"widont\">\u00a0<\/span>command:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong><span class=\"c1\"># nano \/etc\/network\/interfaces.d\/50-cloud-init.cfg<\/span><\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Then edit the file with the following<span class=\"widont\">\u00a0<\/span>configuration:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Note that the names of the network interfaces in our examples may differ from your own. Please adjust to your appropriate interface names.<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>auto ens3\niface ens3 inet dhcp\n\nauto ens3:0\niface ens3:0 inet static\naddress addition IP 0\nnetmask 255.255.255.255\n\nauto ens3:1\niface ens3:1 inet static\naddress addition IP 1\nnetmask 255.255.255.255<\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Apply settings:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># \/etc\/init.d\/networking restart<\/strong><\/span><\/pre>\n<h4 id=\"ubuntu-1804\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Ubuntu 18.04<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Each additional <span class=\"caps\">IP<\/span> address will need its own line within this file. The configuration file for your additional <span class=\"caps\">IP<\/span> addresses should be called <strong><em>&#8220;50-cloud-init.yaml&#8221;<\/em><\/strong>.<\/span><\/p>\n<h5 id=\"step-1-create-the-configuration-file\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 1 Create the configuration<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Connect to your server via\u00a0<span class=\"caps\">SSH<\/span>\u00a0and run the following<span class=\"widont\">\u00a0<\/span>command:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong><span class=\"c1\"># nano \/etc\/netplan\/50-cloud-init.yaml<\/span><\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Next, edit the file with the content<span class=\"widont\">\u00a0<\/span>below:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>network:\n    version: 2\n    ethernets:\n        your_network_interface:\n            dhcp4: <span class=\"nb\">true<\/span>\n            match:\n                macaddress: fa:xx:xx:xx:xx:63\n            set-name: your_network_interface\n            addresses:\n            - your_additional_ip\/32<\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Finally, save and close the<span class=\"widont\">\u00a0<\/span>file.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Then apply config:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong><span class=\"c1\"># netplan apply<\/span>\n<span class=\"c1\"># netplan try<\/span><\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Repeat this procedure for each additional <span class=\"caps\">IP<\/span><span class=\"widont\">\u00a0<\/span>address.<\/span><\/p>\n<h4 id=\"centos-and-fedora-25-and-earlier_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">CentOS and Fedora (25 and<span class=\"widont\">\u00a0<\/span>earlier)<\/span><\/h4>\n<h5 id=\"step-1-create-the-source-file\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 1 Create the source<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">First, make a copy of the source file so that you can use it as a<span class=\"widont\">\u00a0<\/span>template:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># cp \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0:0<\/strong><\/span><\/pre>\n<h5 id=\"step-2-edit-the-source-file\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 2 Edit the source<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">You can now modify the eth0:0 file in order to replace the<span class=\"widont\">\u00a0<\/span><span class=\"caps\">IP<\/span>:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0:0<\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">First, replace the name of the\u00a0<strong><em>device<\/em><\/strong>, then replace the existing\u00a0IP with the additional IP\u00a0you have\u00a0received:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong><span class=\"nv\">DEVICE<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"eth0:0\"<\/span>\n<span class=\"nv\">ONBOOT<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"yes\"<\/span>\n<span class=\"nv\">BOOTPROTO<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"none\"<\/span> <span class=\"c1\"># For CentOS use \"static\"<\/span>\n<span class=\"nv\">IPADDR<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"ADDITIONAL_IP\"<\/span>\n<span class=\"nv\">NETMASK<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"255.255.255.255\"<\/span>\n<span class=\"nv\">BROADCAST<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"ADDITIONAL_IP\"<\/span><\/strong><\/span><\/pre>\n<h5 id=\"step-3-restart-the-interface\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 3 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># ifup eth0:0<\/strong><\/span><\/pre>\n<h4 id=\"windows-server-20122016_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Windows Server 2016\/2019<\/span><\/h4>\n<h5 id=\"step-1-check-the-main-ip-configuration\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 1 Check the main <span class=\"caps\">IP<\/span><span class=\"widont\">\u00a0<\/span>configuration<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">First of all we need to recover the information of the main\u00a0<span class=\"caps\">IP<\/span><span class=\"widont\">\u00a0<\/span>address:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11058 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/DL_170921_2F7nu3aX.jpg\" alt=\"ip\" width=\"933\" height=\"485\" \/ title=\"Add IP addresses to KVM VPS - Image 1\"><\/span><\/p>\n<h5 id=\"step-2-change-the-ipv4-properties\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 2 Change the IPv4<span class=\"widont\">\u00a0<\/span>Properties<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Now we must change the\u00a0<span class=\"caps\">IP<\/span> properties from <strong><em>&#8220;<\/em><em>automatically configuration&#8221; <\/em><\/strong>to a <em><strong>&#8220;static&#8221;<\/strong><\/em> configuration<span class=\"widont\">\u00a0<\/span>manually:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8268 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-17-01-32.png\" alt=\"configuration\" width=\"377\" height=\"428\" \/ title=\"Add IP addresses to KVM VPS - Image 2\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Now we can define the\u00a0<span class=\"caps\">IP<\/span>\u00a0information obtained<span class=\"widont\">\u00a0<\/span>previously:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8271 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-17-03-24.png\" alt=\"configuration\" width=\"374\" height=\"429\" \/ title=\"Add IP addresses to KVM VPS - Image 3\"><\/span><\/p>\n<h5 id=\"step-3-add-the-failover-ip-in-the-advanced-configuration-section\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 3 Add the failover <span class=\"caps\">IP<\/span> in the <em>&#8220;Advanced configuration&#8221;<\/em><span class=\"widont\">\u00a0<\/span>section<\/span><\/h5>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8273 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-17-05-56.png\" alt=\"edit ip\" width=\"375\" height=\"460\" \/ title=\"Add IP addresses to KVM VPS - Image 4\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Here we must to define the additional <span class=\"caps\">IP<\/span>\u00a0information and the correspond netmask (normally the netmask is -&gt;<span class=\"widont\">\u00a0<\/span>255.255.255.255)<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8275 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-17-07-23.png\" alt=\"tcp ip\" width=\"299\" height=\"132\" \/ title=\"Add IP addresses to KVM VPS - Image 5\"><\/span><\/p>\n<h5 id=\"step-4-rebooting-the-network-interface\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 4 Rebooting the network<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">First we do the disabling<span class=\"widont\">\u00a0<\/span>process:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8279 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-17-10-08.png\" alt=\"disable network\" width=\"743\" height=\"545\" \/ title=\"Add IP addresses to KVM VPS - Image 6\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Then we do the enabling<span class=\"widont\">\u00a0<\/span>process:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8281 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-17-11-54.png\" alt=\"enable network\" width=\"779\" height=\"579\" \/ title=\"Add IP addresses to KVM VPS - Image 7\"><\/span><\/p>\n<h5 id=\"step-5-checking-the-new-network-configuration\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 5 Checking the new network<span class=\"widont\">\u00a0<\/span>configuration<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Using the console and the\u00a0<strong><em>ipconfig<\/em><\/strong>\u00a0command we can check the new network<span class=\"widont\">\u00a0<\/span>configuration:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11010 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/DL_170921_5HsGy_bD.png\" alt=\"ipconfig\" width=\"692\" height=\"365\" \/ title=\"Add IP addresses to KVM VPS - Image 8\"><\/span><\/p>\n<h4 id=\"cpanel-on-centos-6_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">cPanel (on CentOS<span class=\"widont\">\u00a0<\/span>6)<\/span><\/h4>\n<h5 id=\"step-1-create-the-source-file_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 1 Create the source<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">First, make a copy of the source file, so that you can revert at any<span class=\"widont\">\u00a0<\/span>time:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># cp \/etc\/ips \/etc\/ips.bak<\/strong><\/span><\/pre>\n<h5 id=\"step-2-edit-the-source-file_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 2 Edit the source<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">You then need to edit the <strong><em>\/etc\/ips<\/em><\/strong><span class=\"widont\">\u00a0<\/span>file:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># nano \/etc\/ips<\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Then add the addition <span class=\"caps\">IP<\/span>\u00a0to the<span class=\"widont\">\u00a0<\/span>file:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>ADDITIONAL_IP:255.255.255.255:ADDITIONAL_IP<\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Next, add the\u00a0<span class=\"caps\">IP<\/span>\u00a0in<span class=\"widont\">\u00a0<\/span><em><strong>\/etc\/ipaddrpool <\/strong><\/em>:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>ADDITIONAL_IP<\/strong><\/span><\/pre>\n<h5 id=\"step-3-restart-the-interface_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 3 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># \/etc\/init.d\/ipaliases restart<\/strong><\/span><\/pre>\n<h4 id=\"plesk-onyx-17x_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Plesk Onyx 17.x<\/span><\/h4>\n<h5 id=\"step-1-access-to-the-ip-addresses-management-inside-the-control-panel\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 1 Access to the <em><strong>&#8220;<span class=\"caps\">IP<\/span> Addresses&#8221;<\/strong><\/em> management inside the control<span class=\"widont\">\u00a0<\/span>panel<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Access to the\u00a0<em><strong>Tools &amp; Settings <\/strong><strong>&gt; IP Addresses section<\/strong><strong>:<\/strong><\/em><\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8288 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-17-38-53.png\" alt=\"plesk\" width=\"1109\" height=\"469\" \/ title=\"Add IP addresses to KVM VPS - Image 9\"><\/span><\/p>\n<h5 id=\"step-2-add-the-additional-ip-information\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 2 Add the additional <span class=\"caps\">IP<\/span><span class=\"widont\">\u00a0<\/span>information:<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Click on the <em><strong>Add IP Address<\/strong><\/em>\u00a0button:<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8291 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-08-49-51.png\" alt=\"add ip\" width=\"1109\" height=\"677\" \/ title=\"Add IP addresses to KVM VPS - Image 10\"><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Then put the additional\u00a0IP\u00a0information in the form and press\u00a0<em><strong>OK<\/strong><\/em>.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8293 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-08-51-01.png\" alt=\"plesk add ip\" width=\"687\" height=\"474\" \/ title=\"Add IP addresses to KVM VPS - Image 11\"><\/span><\/p>\n<h5 id=\"step-3-check-the-current-ip-configuration-inside-plesk-panel\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Step 3 Check the current <span class=\"caps\">IP<\/span>\u00a0configuration inside Plesk<span class=\"widont\">\u00a0<\/span>panel:<\/span><\/h5>\n<p style=\"text-align: center;\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8295 size-full\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-08-53-07.png\" alt=\"ip settings\" width=\"1303\" height=\"674\" \/ title=\"Add IP addresses to KVM VPS - Image 12\"><\/span><\/p>\n<h5 id=\"troubleshooting_1\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Troubleshooting<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">If you are unable to establish a connection from the public network to your alias\u00a0<span class=\"caps\">IP<\/span>\u00a0and suspect a network problem, please reboot the server in Rescue Mode and setup the alias directly on the<span class=\"widont\">\u00a0<\/span>server.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">In order to do that, once you have rebooted your server in Rescue Mode, please enter the following<span class=\"widont\">\u00a0<\/span>command:<\/span><\/p>\n<pre><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong># ifconfig ens3:0 ADDITIONAL_IP netmask 255.255.255.255 broadcast ADDITIONAL_IP up<\/strong><\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Replace <em><strong>ADDITIONAL_IP <\/strong><\/em>with the actual<span class=\"widont\">\u00a0<\/span><span class=\"caps\">IP<\/span>.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Next, simply ping your\u00a0<span class=\"caps\">IP<\/span>\u00a0from the outside. If it works, it probably means that there is a configuration error that requires to be fixed. If, on the contrary, the\u00a0<span class=\"caps\">IP<\/span>\u00a0is still not working, please inform our support team by creating a support request in your\u00a0<a href=\"https:\/\/my.unihost.com\/submitticket.php\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Client Area<\/a>\u00a0for further<span class=\"widont\">\u00a0<\/span>investigations.<\/span><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IP aliasing is a special network configuration for your KVM VPS, which allows you to associate multiple IP addresses with a single network interface.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[595],"tags":[596],"class_list":["post-8245","post","type-post","status-publish","format-standard","hentry","category-kvm-en","tag-cloud-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add IP addresses to KVM VPS - Unihost.FAQ<\/title>\n<meta name=\"description\" content=\"IP aliasing is a special network configuration, which allows you to associate multiple IP addresses with a single network interface.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add IP addresses to KVM VPS - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"IP aliasing is a special network configuration, which allows you to associate multiple IP addresses with a single network interface.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-20T06:19:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:49:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/DL_170921_2F7nu3aX.jpg\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Add IP addresses to KVM VPS\",\"datePublished\":\"2020-05-20T06:19:37+00:00\",\"dateModified\":\"2023-01-19T10:49:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/\"},\"wordCount\":626,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/DL_170921_2F7nu3aX.jpg\",\"keywords\":[\"Cloud VPS\"],\"articleSection\":[\"03. KVM VPS\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/\",\"url\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/\",\"name\":\"Add IP addresses to KVM VPS - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/DL_170921_2F7nu3aX.jpg\",\"datePublished\":\"2020-05-20T06:19:37+00:00\",\"dateModified\":\"2023-01-19T10:49:09+00:00\",\"description\":\"IP aliasing is a special network configuration, which allows you to associate multiple IP addresses with a single network interface.\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?.\/DL_170921_2F7nu3aX.jpg\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?.\/DL_170921_2F7nu3aX.jpg\",\"width\":933,\"height\":485,\"caption\":\"ip\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Add IP addresses to KVM VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add IP addresses to KVM VPS - Unihost.FAQ","description":"IP aliasing is a special network configuration, which allows you to associate multiple IP addresses with a single network interface.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/","og_locale":"en_US","og_type":"article","og_title":"Add IP addresses to KVM VPS - Unihost.FAQ","og_description":"IP aliasing is a special network configuration, which allows you to associate multiple IP addresses with a single network interface.","og_url":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2020-05-20T06:19:37+00:00","article_modified_time":"2023-01-19T10:49:09+00:00","og_image":[{"url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/DL_170921_2F7nu3aX.jpg","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Add IP addresses to KVM VPS","datePublished":"2020-05-20T06:19:37+00:00","dateModified":"2023-01-19T10:49:09+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/"},"wordCount":626,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/DL_170921_2F7nu3aX.jpg","keywords":["Cloud VPS"],"articleSection":["03. KVM VPS"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/","url":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/","name":"Add IP addresses to KVM VPS - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/DL_170921_2F7nu3aX.jpg","datePublished":"2020-05-20T06:19:37+00:00","dateModified":"2023-01-19T10:49:09+00:00","description":"IP aliasing is a special network configuration, which allows you to associate multiple IP addresses with a single network interface.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#primaryimage","url":"https:\/\/unihost.com\/help\/minio.php?.\/DL_170921_2F7nu3aX.jpg","contentUrl":"https:\/\/unihost.com\/help\/minio.php?.\/DL_170921_2F7nu3aX.jpg","width":933,"height":485,"caption":"ip"},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/add-ip-addresses-to-cloud-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"Add IP addresses to KVM VPS"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/8245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=8245"}],"version-history":[{"count":34,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/8245\/revisions"}],"predecessor-version":[{"id":11305,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/8245\/revisions\/11305"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=8245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=8245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=8245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}