{"id":78615,"date":"2025-11-26T04:11:37","date_gmt":"2025-11-26T04:11:37","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=78615"},"modified":"2025-11-26T04:11:38","modified_gmt":"2025-11-26T04:11:38","slug":"how-to-assign-a-static-ip-address-to-an-ubuntu-box","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=78615","title":{"rendered":"How to assign a Static IP address to an Ubuntu Box"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a><\/a><a>How to assign a Static IP address to an Ubuntu Box<\/a><\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>sudo nano \/etc\/netplan\/02-network-manager.yaml<\/p>\n\n\n\n<p>The file name can be different<\/p>\n\n\n\n<p>sudo nano \/etc\/netplan\/02-network-manager-all.yaml<\/p>\n\n\n\n<p>Configure as below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"501\" height=\"138\" src=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/11\/image-20.png?resize=501%2C138\" alt=\"\" class=\"wp-image-78617\" srcset=\"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/11\/image-20.png?w=501 501w, https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/11\/image-20.png?resize=300%2C83 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>#Run:<\/strong><\/p>\n\n\n\n<p>sudo netplan apply<\/p>\n\n\n\n<p><strong>Check if you have an IP<\/strong><\/p>\n\n\n\n<p>ip address show<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to assign a Static IP address to an Ubuntu Box sudo nano \/etc\/netplan\/02-network-manager.yaml The file name can be different sudo nano \/etc\/netplan\/02-network-manager-all.yaml Configure as below: #Run: sudo netplan apply Check if you have an IP ip address show<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1978],"tags":[],"class_list":["post-78615","post","type-post","status-publish","format-standard","hentry","category-computer-networks","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":78403,"url":"http:\/\/bangla.sitestree.com\/?p=78403","url_meta":{"origin":78615,"position":0},"title":"How to install a DHCP Server in Ubuntu:","author":"Sayed","date":"August 27, 2025","format":false,"excerpt":"How to install a DHCP Server in Ubuntu: Use these commands and steps in sequence: # Make sure you have an IP address. # If not, please assign an IP address (you can use netplan) # see the next section how to assign an IP address. sudo apt update &&\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/bangla.sitestree.com\/wp-content\/uploads\/2025\/08\/image-15.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":78519,"url":"http:\/\/bangla.sitestree.com\/?p=78519","url_meta":{"origin":78615,"position":1},"title":"Step by step DNS Server installation in ubuntu in a fresh VM","author":"Author-Check- Article-or-Video","date":"September 28, 2025","format":false,"excerpt":"\"Nice \u2014 below is a complete, step-by-step, blog-ready guide to install and configure a simple authoritative + optional recursive BIND9 DNS server on a fresh Ubuntu VM. It\u2019s copyright-free and ready to paste into your notes or blog. Notes before you begin\u2022 This guide assumes Ubuntu 22.04 \/ 24.04 (netplan-based).\u2022\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78439,"url":"http:\/\/bangla.sitestree.com\/?p=78439","url_meta":{"origin":78615,"position":2},"title":"Basic Commands for Networking in Linux","author":"Sayed","date":"August 30, 2025","format":false,"excerpt":"IPV4 Address: 32-bit 192.168.2.34-- IPv6 address : 128 bit : 8 groups of 4 hex digits 3ffe:1900:fe21:4545:0000:0000:0000:0000--- IPV6 Format (From AI Tools\/OpenAI\/ChatGPT) ifconfig command output: to know your network interface configurations. ifconfig Explain the output of the Linux Command (From AI Tools\/OpenAI\/ChatGPT\/Interney)ifconfig instead of ifconfig you can use ip address\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":21831,"url":"http:\/\/bangla.sitestree.com\/?p=21831","url_meta":{"origin":78615,"position":3},"title":"Some Ubuntu Linux Commands used in AWS platform #Unix\/Linux #RHCSA","author":"Author-Check- Article-or-Video","date":"March 7, 2021","format":false,"excerpt":"Some Ubuntu Linux Commands used in AWS platform Some might be run by the parent commands This is kinda cleaned up from .bash_history (removed repeating and sensitive commands), still not perfectly cleaned up - so you will see lots of ls, cd, dir or similar \u00a0 sudo apt-get update sudo\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22776,"url":"http:\/\/bangla.sitestree.com\/?p=22776","url_meta":{"origin":78615,"position":4},"title":"Ubuntu: Creating a user with SSH access and write permission to the web-application folder #Root #By Sayed Ahmed","author":"Author-Check- Article-or-Video","date":"March 20, 2021","format":false,"excerpt":"Ubuntu: Creating a user with SSH access and write permission to the web-application folder The following Linux commands helped sudo chown -R username:username \/home\/username\/.ssh sudo chmod 0700 \/home\/username\/.ssh sudo chmod 0600 \/home\/username\/.ssh\/authorized_keys Also, added the following lines into the file \/etc\/ssh\/sshd_config -> did not check whether these are really required\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":78613,"url":"http:\/\/bangla.sitestree.com\/?p=78613","url_meta":{"origin":78615,"position":5},"title":"Using Let\u2019s Encrypt With Apache2 (HTTPS Setup)","author":"Author-Check- Article-or-Video","date":"November 25, 2025","format":false,"excerpt":"By ChatGPT as is: Below is a clear step-by-step guide to using Let\u2019s Encrypt (free SSL) with Apache2.This assumes you already have a domain pointing to your server\u2019s public IP. \u2705 Using Let\u2019s Encrypt With Apache2 (HTTPS Setup) Method: Certbot (recommended) Let\u2019s Encrypt issues FREE SSL certificates, automated and trusted\u2026","rel":"","context":"In &quot;Computer Networks&quot;","block_context":{"text":"Computer Networks","link":"http:\/\/bangla.sitestree.com\/?cat=1978"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78615"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78615\/revisions"}],"predecessor-version":[{"id":78618,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/78615\/revisions\/78618"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78615"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}