{"id":1657,"date":"2020-12-01T13:12:35","date_gmt":"2020-12-01T13:12:35","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=1657"},"modified":"2021-03-14T13:39:54","modified_gmt":"2021-03-14T13:39:54","slug":"add-extra-ip-addresses-to-your-server-configuration-on-ubuntu-17-10-and-later","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/add-extra-ip-addresses-to-your-server-configuration-on-ubuntu-17-10-and-later\/","title":{"rendered":"Add Extra IP addresses to server configuration  On Ubuntu 17.10 and later"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1657\" class=\"elementor elementor-1657\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-633e7cb7 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"633e7cb7\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4d6a8fee\" data-id=\"4d6a8fee\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-51ab2f0 elementor-widget elementor-widget-text-editor\" data-id=\"51ab2f0\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Each failover IP address will need its own line in the configuration file. The configuration file is called \u201c50-cloud-init.yaml\u201d and is located in\u00a0\/etc\/netplan.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4bd4f87 elementor-widget elementor-widget-heading\" data-id=\"4bd4f87\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Determine Ubuntu NIC\u00a0interface<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-faa8148 elementor-widget elementor-widget-code-highlight\" data-id=\"faa8148\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>ifconfig<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d926719 elementor-widget elementor-widget-text-editor\" data-id=\"d926719\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tConnect to your server via SSH and run the following command:\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d4f9655 elementor-widget elementor-widget-heading\" data-id=\"d4f9655\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Create Ubuntu configuration Network file<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-199f810 elementor-widget elementor-widget-text-editor\" data-id=\"199f810\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Edit Ubuntu Network file using your favorite editor like <a href=\"https:\/\/www.xsofthost.com\/help\/how-to-install-and-use-nano-text-editor-commands-in-linux\/\">nano<\/a><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-057f6af elementor-widget elementor-widget-code-highlight\" data-id=\"057f6af\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>nano \/etc\/netplan\/50-cloud-init.yaml<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4994cf5 elementor-widget elementor-widget-text-editor\" data-id=\"4994cf5\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Now, edit the file with the content below, replacing <b>INTERFACE_NAME MAC_ADDRESS and FAILOVER_IP<\/b>:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b8a2ea1 elementor-widget elementor-widget-code-highlight\" data-id=\"b8a2ea1\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>    version: 2\r\n    ethernets:\r\n        INTERFACE_NAME:\r\n            dhcp4: true\r\n            match:\r\n                macaddress: MAC_ADDRESS\r\n            set-name: INTERFACE_NAME\r\n            addresses:\r\n            - FAILOVER_IP\/32\r\n<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bb5823d elementor-widget elementor-widget-text-editor\" data-id=\"bb5823d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\tSave and close the file. You can test the configuration with the following command:\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fee3a4f elementor-widget elementor-widget-heading\" data-id=\"fee3a4f\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Apply changes to Ubuntu Network<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e7a596c elementor-widget elementor-widget-code-highlight\" data-id=\"e7a596c\" data-element_type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>netplan apply<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Each failover IP address will need its own line in the configuration file. The configuration file is called \u201c50-cloud-init.yaml\u201d and is located in\u00a0\/etc\/netplan. Determine Ubuntu NIC\u00a0interface ifconfig Connect to your server via SSH and run the following command: Create Ubuntu configuration Network file Edit Ubuntu Network file using your favorite editor like nano nano \/etc\/netplan\/50-cloud-init.yaml [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":363,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,41,187],"tags":[50,149,142,198],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1657"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=1657"}],"version-history":[{"count":35,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1657\/revisions"}],"predecessor-version":[{"id":1754,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/1657\/revisions\/1754"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/363"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}