{"id":10607,"date":"2023-06-10T16:59:00","date_gmt":"2023-06-10T11:29:00","guid":{"rendered":"https:\/\/www.skynats.com\/?p=10607"},"modified":"2025-10-28T10:51:05","modified_gmt":"2025-10-28T05:21:05","slug":"how-to-add-additional-ip-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/how-to-add-additional-ip-in-ubuntu\/","title":{"rendered":"How to add additional IP in Ubuntu 22.04"},"content":{"rendered":"\n<h2 class=\"wp-block-heading has-normal-font-size\" id=\"h-to-add-an-additional-ip-address-in-ubuntu-22-04-you-can-follow-these-steps\">To add an additional IP address in Ubuntu 22.04, you can follow these steps:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open a terminal on your <a href=\"https:\/\/ubuntu.com\/\" target=\"_blank\" rel=\"noopener\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">Ubuntu<\/mark><\/a> system. You can do this by pressing Ctrl+Alt+T.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">2. Identify the network interface to which you want to add the additional IP address. You can use the ifconfig command to list all network interfaces:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ifconfig<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3. Look for the network interface name, such as eth0 or ens33.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the network interface configuration file. Assuming you want to add the additional IP address to the eth0 interface, you can use the following command to open the file in a text editor (replace eth0 with your interface name if necessary):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/netplan\/01-netcfg.yaml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">4. In the configuration file, locate the network interface you identified in Step 2. It will look something like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>network:\n\n&nbsp;&nbsp;version: 2\n\n&nbsp;&nbsp;renderer: networkd\n\n&nbsp;&nbsp;ethernets:\n\n&nbsp;&nbsp;&nbsp;&nbsp;eth0:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dhcp4: true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">5. To add an additional IP address, add a new section under the interface definition. It should look similar to the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>network:\n\n&nbsp;&nbsp;version: 2\n\n&nbsp;&nbsp;renderer: networkd\n\n&nbsp;&nbsp;ethernets:\n\n&nbsp;&nbsp;&nbsp;&nbsp;eth0:\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dhcp4: true\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;addresses: &#91;192.168.1.10\/24, 10.0.0.10\/24]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In the addresses line, you can add one or more IP addresses separated by commas. Make sure to specify the correct subnet mask (e.g., \/24 for a typical subnet).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. Save the changes and exit the text editor. In nano, you can press Ctrl+O to save and Ctrl+X to exit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Apply the new network configuration using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo netplan apply<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command will apply the changes and activate the additional IP address on the network interface<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">8. Verify that the additional IP address is added by running the ifconfig command again:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ifconfig<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should see the new IP address listed under the network interface. Need help on additional IP in Ubuntu 22.04 ? Contact us.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-small-font-size\" id=\"h-conclusion\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re facing challenges while configuring Additional IP in Ubuntu 22.04, our team is here to help. At Skynats, we provide expert <a href=\"https:\/\/www.skynats.com\/linux-server-management\/\">Linux Server Management Services<\/a> to handle complex configurations and ensure smooth server performance. Whether it\u2019s a one-time setup or quick troubleshooting, our <a href=\"https:\/\/www.skynats.com\/hourly-server-support-services\/\">Hourly Server Support<\/a> team can assist you instantly. Contact us today to get professional support tailored to your server needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To add an additional IP address in Ubuntu 22.04, you can follow these steps: 2. Identify the network interface to which you want to add the additional IP address. You can use the ifconfig command to list all network interfaces: 3. Look for the network interface name, such as eth0 or ens33. Edit the network [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,208,328,239],"tags":[25,193,72,22,236],"class_list":["post-10607","post","type-post","status-publish","format-standard","hentry","category-blog","category-centos-7","category-debian","category-linux","tag-cloud-management","tag-plesk-server-management","tag-server-management","tag-server-support","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/10607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=10607"}],"version-history":[{"count":2,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/10607\/revisions"}],"predecessor-version":[{"id":16370,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/10607\/revisions\/16370"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=10607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=10607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=10607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}