{"id":473,"date":"2011-05-29T18:00:24","date_gmt":"2011-05-29T18:00:24","guid":{"rendered":"http:\/\/www.knowledgement.ie\/?p=473"},"modified":"2011-05-29T18:00:24","modified_gmt":"2011-05-29T18:00:24","slug":"set-static-ip-address-for-ubuntudebian-server","status":"publish","type":"post","link":"https:\/\/targetintegration.com\/en_in\/set-static-ip-address-for-ubuntudebian-server\/","title":{"rendered":"Set Static IP Address for Ubuntu\/Debian Server"},"content":{"rendered":"<p>If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP address automatically from the DHCP server. In order to change the DHCP IP address to a static IP address you can edit \/etc\/network\/interfaces file of your server and set it to static IP address as follows:<\/p>\n<p><strong>Content of original file:<\/strong><\/p>\n<p>{code}<br \/>\n# This file describes the network interfaces available on your system<br \/>\n# and how to activate them. For more information, see interfaces(5).<\/p>\n<p># The loopback network interface<br \/>\nauto lo<br \/>\niface lo inet loopback<\/p>\n<p># The primary network interface<br \/>\nauto eth0<br \/>\niface eth0 inet dhcp<br \/>\n{\/code}<\/p>\n<p>Now, remove dhcp and change it to static. Below that enter the details of your static IP address.<\/p>\n<p><strong>Updated interfaces file:<\/strong><\/p>\n<p>{code}<\/p>\n<p># This file describes the network interfaces available on your system<br \/>\n# and how to activate them. For more information, see interfaces(5).<\/p>\n<p># The loopback network interface<br \/>\nauto lo<br \/>\niface lo inet loopback<\/p>\n<p># The primary network interface<br \/>\nauto eth0<br \/>\niface eth0 inet static<\/p>\n<p>address 10.0.0.243<br \/>\nnetmask 255.255.255.0<br \/>\nnetwork 10.0.0.0<br \/>\nbroadcast 10.0.0.255<br \/>\ngateway 10.0.0.1<br \/>\n{\/code}<\/p>","protected":false},"excerpt":{"rendered":"<p>If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP&#8230;<\/p>","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[44],"class_list":["post-473","post","type-post","status-publish","hentry","category-article","tag-online-services"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set Static IP Address for Ubuntu\/Debian Server -<\/title>\n<meta name=\"description\" content=\"[vc_row][vc_column][vc_column_text]If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP address automatic...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/targetintegration.com\/en_in\/set-static-ip-address-for-ubuntudebian-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set Static IP Address for Ubuntu\/Debian Server -\" \/>\n<meta property=\"og:description\" content=\"[vc_row][vc_column][vc_column_text]If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP address automatic...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/targetintegration.com\/en_in\/set-static-ip-address-for-ubuntudebian-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Target Integration\" \/>\n<meta property=\"article:published_time\" content=\"2011-05-29T18:00:24+00:00\" \/>\n<meta name=\"author\" content=\"Aman Thakral\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aman Thakral\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/\"},\"author\":{\"name\":\"Aman Thakral\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d\"},\"headline\":\"Set Static IP Address for Ubuntu\/Debian Server\",\"datePublished\":\"2011-05-29T18:00:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/\"},\"wordCount\":196,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/targetintegration.com\/#organization\"},\"keywords\":[\"online services\"],\"articleSection\":[\"Article\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/\",\"url\":\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/\",\"name\":\"Set Static IP Address for Ubuntu\/Debian Server -\",\"isPartOf\":{\"@id\":\"https:\/\/targetintegration.com\/#website\"},\"datePublished\":\"2011-05-29T18:00:24+00:00\",\"description\":\"[vc_row][vc_column][vc_column_text]If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP address automatic...\",\"breadcrumb\":{\"@id\":\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/targetintegration.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set Static IP Address for Ubuntu\/Debian Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/targetintegration.com\/#website\",\"url\":\"https:\/\/targetintegration.com\/\",\"name\":\"Target Integration\",\"description\":\"Empowering You!\",\"publisher\":{\"@id\":\"https:\/\/targetintegration.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/targetintegration.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/targetintegration.com\/#organization\",\"name\":\"Target Integration\",\"url\":\"https:\/\/targetintegration.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg\",\"contentUrl\":\"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg\",\"width\":172,\"height\":65,\"caption\":\"Target Integration\"},\"image\":{\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d\",\"name\":\"Aman Thakral\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\/\/targetintegration.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g\",\"caption\":\"Aman Thakral\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set Static IP Address for Ubuntu\/Debian Server -","description":"[vc_row][vc_column][vc_column_text]If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP address automatic...","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:\/\/targetintegration.com\/en_in\/set-static-ip-address-for-ubuntudebian-server\/","og_locale":"en_US","og_type":"article","og_title":"Set Static IP Address for Ubuntu\/Debian Server -","og_description":"[vc_row][vc_column][vc_column_text]If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP address automatic...","og_url":"https:\/\/targetintegration.com\/en_in\/set-static-ip-address-for-ubuntudebian-server\/","og_site_name":"Target Integration","article_published_time":"2011-05-29T18:00:24+00:00","author":"Aman Thakral","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aman Thakral","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/#article","isPartOf":{"@id":"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/"},"author":{"name":"Aman Thakral","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d"},"headline":"Set Static IP Address for Ubuntu\/Debian Server","datePublished":"2011-05-29T18:00:24+00:00","mainEntityOfPage":{"@id":"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/"},"wordCount":196,"commentCount":0,"publisher":{"@id":"https:\/\/targetintegration.com\/#organization"},"keywords":["online services"],"articleSection":["Article"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/","url":"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/","name":"Set Static IP Address for Ubuntu\/Debian Server -","isPartOf":{"@id":"https:\/\/targetintegration.com\/#website"},"datePublished":"2011-05-29T18:00:24+00:00","description":"[vc_row][vc_column][vc_column_text]If you install an Ubuntu\/Debian server,\u00a0by default, it is only set up with DHCP and hence it fetches an IP address automatic...","breadcrumb":{"@id":"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/targetintegration.com\/en_us\/set-static-ip-address-for-ubuntudebian-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/targetintegration.com\/"},{"@type":"ListItem","position":2,"name":"Set Static IP Address for Ubuntu\/Debian Server"}]},{"@type":"WebSite","@id":"https:\/\/targetintegration.com\/#website","url":"https:\/\/targetintegration.com\/","name":"Target Integration","description":"Empowering You!","publisher":{"@id":"https:\/\/targetintegration.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/targetintegration.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/targetintegration.com\/#organization","name":"Target Integration","url":"https:\/\/targetintegration.com\/","logo":{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/","url":"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg","contentUrl":"https:\/\/targetintegration.com\/wp-content\/uploads\/\/2021\/05\/ti-logo2-2.svg","width":172,"height":65,"caption":"Target Integration"},"image":{"@id":"https:\/\/targetintegration.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/9956d46591619b474ed534d4bae9a37d","name":"Aman Thakral","image":{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/targetintegration.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5d3832136f194dc02b46be42471b0a19833e6a89e0c27d4f36549afb93d2a431?s=96&d=mm&r=g","caption":"Aman Thakral"}}]}},"_links":{"self":[{"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/posts\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":0,"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/posts\/473\/revisions"}],"wp:attachment":[{"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/categories?post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/targetintegration.com\/en_in\/wp-json\/wp\/v2\/tags?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}