{"id":2599,"date":"2021-12-08T10:51:44","date_gmt":"2021-12-08T08:51:44","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=2599"},"modified":"2022-10-12T11:22:33","modified_gmt":"2022-10-12T08:22:33","slug":"how-to-configure-ip-addresses-on-your-cloud-vps","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-to-configure-ip-addresses-on-your-cloud-vps\/","title":{"rendered":"How to Configure IP Addresses on Your Cloud VPS?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Operating your own <\/span><a href=\"https:\/\/www.scalahosting.com\/managed-cloud-hosting.html\"><b>cloud VPS server<\/b><\/a><span style=\"font-weight: 400;\">, one of the most essential components is your dedicated IP address. This is one of the great perks that give virtual private services an edge over shared hosting.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In this article, we will find out more about <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-a-dedicated-ip-and-why-do-you-need-it\/\"><b>dedicated IPs<\/b><\/a><span style=\"font-weight: 400;\"> and how we can configure them on our <\/span><b>cloud VPS<\/b><span style=\"font-weight: 400;\">. Let&#8217;s start with the basics:&nbsp;<\/span><\/p>\n<h2><b>What is a Dedicated IP and Why do I Need One?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">An IP (or Internet Protocol) address is the <\/span><b>numerical representation of any device within a network<\/b><span style=\"font-weight: 400;\">, allowing it to communicate with other devices via the Internet. Currently, the most popular version is the<\/span><b> IPv4 format<\/b><span style=\"font-weight: 400;\">, where you have a set of four numbers ranging from 0 to 255. For example:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">255.255.255.255<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Still, IP addresses are far from random and controlled by the <\/span><b>Internet Corporation of Assigned Names and Numbers (ICANN).<\/b><\/p>\n<p><span style=\"font-weight: 400;\">In terms of usage, you can utilize an IP to<\/span><b> cover multiple devices<\/b><span style=\"font-weight: 400;\"> (shared IP) or <\/span><b>serve the needs of a single project<\/b><span style=\"font-weight: 400;\"> (dedicated IP).&nbsp;<\/span><\/p>\n<p><b>Getting your own address brings about a heap of benefits in a cloud VPS environment:<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Must-have for Email Projects<\/b><span style=\"font-weight: 400;\"> &#8211; even if it was inherently clean, a shared IP can easily suffer from blacklisting if another user gets involved in <\/span><b><i>spamming practices<\/i><\/b><span style=\"font-weight: 400;\">. If email communication is key for your project, getting your own dedicated IP is a no-brainer.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Better server control<\/b><span style=\"font-weight: 400;\"> &#8211; utilizing a dedicated IP means you can directly access your server to make the needed changes and customizations. Provided you have the required hosting permissions, you can set up an IP-based environment and operate everything at this level before pushing live modifications to your domain.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Essential for <\/b><a href=\"https:\/\/www.scalahosting.com\/ssl-certificates.html\"><b>SSL certificates<\/b><\/a><span style=\"font-weight: 400;\"> &#8211; if you are looking to install a <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-ssl-and-why-you-need-it\/\"><b>private SSL certificate<\/b><\/a><span style=\"font-weight: 400;\">, a dedicated IP would be one of the key requirements. Many hosts that offer security certificates include that in their <\/span><b>SSL bundle<\/b><span style=\"font-weight: 400;\">, but you will need your address if you are setting up a third-party solution.&nbsp;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Custom app requirements<\/b><span style=\"font-weight: 400;\"> &#8211; many clients choose to utilize a cloud VPS because of its <\/span><i><span style=\"font-weight: 400;\">flexibility <\/span><\/i><span style=\"font-weight: 400;\">and <\/span><i><span style=\"font-weight: 400;\">versatility<\/span><\/i><span style=\"font-weight: 400;\">. More often than not, enterprises are hosting specific apps of <\/span><b>heavily customized solutions for the job<\/b><span style=\"font-weight: 400;\">, and those will sometimes work best with a dedicated IP.&nbsp;<\/span><\/li>\n<\/ul>\n<p><b>IMPORTANT: <\/b><i><span style=\"font-weight: 400;\">For more information, you can check our extensive blog article about <\/span><\/i><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-a-dedicated-ip-and-why-do-you-need-it\/\"><b><i>Dedicated IPs and their benefits<\/i><\/b><\/a><i><span style=\"font-weight: 400;\"> for various online projects.<\/span><\/i><i><span style=\"font-weight: 400;\">&nbsp;<\/span><\/i><\/p>\n<h2><b>Configuring your Dedicated IP<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">ScalaHosting offers a free dedicated IP on all managed VPS plans, <\/span><b>simplifying and automating the process<\/b><span style=\"font-weight: 400;\"> for the end user. Still, if you find yourself in a position where you have to configure your dedicated address manually, you have to be prepared to tackle the task:<\/span><\/p>\n<h3><b>Configuring a Dedicated IP via WHM<\/b><\/h3>\n<p><b>There are just a few steps to properly configure a dedicated IP through the Web Host Manager (WHM):<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Log in <\/span><b>WHM<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click on the <\/span><b>IP Functions<\/b><span style=\"font-weight: 400;\"> option.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">On the next page, you will see the <\/span><b>Add a New IP Address<\/b><span style=\"font-weight: 400;\"> button.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Type the <\/span><b>new IP<\/b><span style=\"font-weight: 400;\"> or <\/span><b>IP range<\/b><span style=\"font-weight: 400;\"> you wish to use.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Make sure the<\/span><b> Select a subnet mask for the IP<\/b><span style=\"font-weight: 400;\"> field is <\/span><i><span style=\"font-weight: 400;\">255.255.255.0<\/span><\/i><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Submit <\/b><span style=\"font-weight: 400;\">to save the changes.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Your new dedicated IP should now be associated with your account and start functioning right away.<\/span><\/p>\n<h3><b>Configuring a Dedicated IP at OS level<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">If you are on a <\/span><a href=\"https:\/\/www.scalahosting.com\/cloud-vps-hosting.html\"><b>self-managed cloud VPS plan<\/b><\/a><span style=\"font-weight: 400;\">, you would have to manually go through the process of IP configuration. Here is how the process goes within different Linux server environments:<\/span><b><\/b><\/p>\n<ul>\n<li aria-level=\"1\"><b>CentOS and Fedora<\/b><\/li>\n<\/ul>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Log into your cloud server as <\/span><b>Root<\/b><span style=\"font-weight: 400;\"> via an <\/span><a href=\"https:\/\/www.scalahosting.com\/blog\/what-is-ssh-and-how-to-use-it\/\"><b>SSH client<\/b><\/a><span style=\"font-weight: 400;\"> of your choice.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Run the following command:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">cd \/etc\/sysconfig\/network-scripts<\/span><\/p>\n<ol start=\"3\">\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Create<\/b><span style=\"font-weight: 400;\"> a new file via your chosen text editor. You can name it <\/span><b>ifcfg-eth0:0<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Open <\/b><span style=\"font-weight: 400;\">the file and edit it with the following text:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">DEVICE=eth0:0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">BOOTPROTO=none<\/span><\/p>\n<p><span style=\"font-weight: 400;\">ONPARENT=yes<\/span><\/p>\n<p><span style=\"font-weight: 400;\">IPADDR=xxx.xxx.xxx.xxx<\/span><\/p>\n<p><span style=\"font-weight: 400;\">NETMASK=255.255.255.0<\/span><\/p>\n<p><b>IMPORTANT: <\/b><span style=\"font-weight: 400;\">In the IPADDR field, fill in your dedicated IP values. The DEVICE name should be the same as the latter part of your file name.<\/span><\/p>\n<ol start=\"5\">\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Save <\/b><span style=\"font-weight: 400;\">the changes.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Restart <\/b><span style=\"font-weight: 400;\">the network:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">service network restart<\/span><\/p>\n<ol start=\"7\">\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Check if the newly configured dedicated IP works correctly:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">ifconfig<\/span><\/p>\n<ul>\n<li aria-level=\"1\"><b>Debian and Ubuntu<\/b><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Although Debian and Ubuntu are Linux distributions as well, the process of configuring an IP on those operating systems may slightly differ.<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Log into your <\/span><b>SSH client<\/b><span style=\"font-weight: 400;\"> as an <\/span><b>administrator<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Find the file <\/span><b>\/etc\/network\/interfaces<\/b><span style=\"font-weight: 400;\"> and open it in the text editor of your choice.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Edit it with the following text:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\"># The primary network interface<\/span><\/p>\n<p><span style=\"font-weight: 400;\">auto eth0:0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">iface eth0:0 inet static<\/span><\/p>\n<p><span style=\"font-weight: 400;\">address xxx.xxx.xxx.xxx<\/span><\/p>\n<p><span style=\"font-weight: 400;\">netmask 255.255.255.0<\/span><\/p>\n<ol start=\"4\">\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Again, replace the <\/span><b>Address <\/b><span style=\"font-weight: 400;\">field with your dedicated IP.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Save <\/b><span style=\"font-weight: 400;\">the file changes.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You can now <\/span><b>restart <\/b><span style=\"font-weight: 400;\">the network. For Debian, type:<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">\/etc\/init.d\/networking restart<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For Ubuntu, you can go with the following command:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">ifdown -a &#8211;exclude=lo; ifup -a &#8211;exclude=lo<\/span><\/p>\n<ol start=\"7\">\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Run the<\/span><b> ifconfig<\/b><span style=\"font-weight: 400;\"> command to test if the changes have gone through.<\/span><\/li>\n<\/ol>\n<h3><b>Configuring a Dedicated IP via SPanel<\/b><\/h3>\n<p><a href=\"https:\/\/www.scalahosting.com\/spanel.html\"><b>SPanel<\/b><\/a><span style=\"font-weight: 400;\"> is ScalaHosting&#8217;s state-of-the-art hosting management solution. The control panel is <\/span><b>lightweight<\/b><span style=\"font-weight: 400;\">, <\/span><b>secure<\/b><span style=\"font-weight: 400;\">, and packs a <\/span><b>ton of features<\/b><span style=\"font-weight: 400;\"> for managed cloud VPS users. Configuring an IP address as an SPanel client is as easy as you can imagine.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In fact, it&#8217;s so easy that <\/span><b>you don&#8217;t have to do a thing<\/b><span style=\"font-weight: 400;\">.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Each virtual server customer gets a <\/span><b>dedicated IP completely free of charge<\/b><span style=\"font-weight: 400;\"> with their server, and our support team ensures it is properly activated on the server. No need for additional contacts or ticket requests &#8211; we have got you covered already!<\/span><\/p>\n<h2><b>Adding and Removing Dedicated IP Addresses<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Within the SPanel VPS environment, each client gets one dedicated IP, and there is <\/span><b>no option to add more<\/b><span style=\"font-weight: 400;\">. This has a rather simple explanation &#8211; a <\/span><b>global shortage of IPv4 addresses<\/b><span style=\"font-weight: 400;\"> that has been going on for years. After all, there are just so many combinations you can do with four strings of numbers. In fact, it was somewhere <\/span><b>around 2018-2019<\/b><span style=\"font-weight: 400;\"> when the entire chain of IPv4 addresses was exhausted.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The IPv6 technology was introduced <\/span><b>more than 20 years ago<\/b><span style=\"font-weight: 400;\"> with the purpose to &#8220;take over&#8221; once the IPv4 options are all taken, but its adoption is still going pretty slow. The reason lies mainly in <\/span><b>compatibility<\/b><span style=\"font-weight: 400;\">. Large parts of the internet infrastructure are <\/span><b>built upon IPv4<\/b><span style=\"font-weight: 400;\">, and a direct switch to IPv6 is not really possible.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Should you need extra dedicated IP addresses, your best bet would be getting <\/span><b>another VPS solution<\/b><span style=\"font-weight: 400;\">.&nbsp;<\/span><\/p>\n<p><a href=\"https:\/\/www.scalahosting.com\/contact-us.html\"><b>Contact ScalaHosting<\/b><\/a><span style=\"font-weight: 400;\"> if you need more information about IP configuration on a virtual server plan.<\/span><\/p>\n\n\n<p class=\"youtube-player\" id=\"qwGE9xz5eb8\">How To Point a Domain Name To a Web Hosting Provider<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n    {\n        \"@context\": \"https:\/\/schema.org\",\n        \"@type\": \"VideoObject\",\n        \"name\": \"How To Point a Domain Name To a Web Hosting Provider\",\n        \"description\": \"You can actually buy web hosting and domain name from different providers and just link these two things together. In this video we'll show you exactly how.\",\n        \"thumbnailUrl\": [\n            \"https:\/\/i3.ytimg.com\/vi\/qwGE9xz5eb8\/maxresdefault.jpg\"\n        ],\n        \"uploadDate\": \"2022-04-11\",\n        \"duration\": \"PT3M45S\",\n        \"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=qwGE9xz5eb8\"\n    }\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Operating your own cloud VPS server, one of the most essential components is your dedicated IP address. This is one of the great perks that give virtual private services an edge over shared hosting.&nbsp; In this article, we will find out more about dedicated IPs and how we can configure them on our cloud VPS. [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[27],"tags":[],"class_list":["post-2599","post","type-post","status-publish","format-standard","hentry","category-vps-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=2599"}],"version-history":[{"count":7,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2599\/revisions"}],"predecessor-version":[{"id":5200,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2599\/revisions\/5200"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=2599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=2599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=2599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}