{"id":669,"date":"2012-10-01T15:42:59","date_gmt":"2012-10-01T13:42:59","guid":{"rendered":"http:\/\/www.mythryll.com\/?p=669"},"modified":"2012-10-02T09:10:16","modified_gmt":"2012-10-02T07:10:16","slug":"ubuntu-server-network-configuration","status":"publish","type":"post","link":"https:\/\/www.mythryll.com\/?p=669","title":{"rendered":"Ubuntu Server Network Configuration"},"content":{"rendered":"<p>Here is a link for Ubuntu Server Network Configuration. The guide is valid for 12.04 version.<\/p>\n<p><a href=\"https:\/\/help.ubuntu.com\/12.04\/serverguide\/network-configuration.html\" target=\"_blank\">https:\/\/help.ubuntu.com\/12.04\/serverguide\/network-configuration.html<\/a><\/p>\n<p>Below are some important parts:<\/p>\n<h4>Static IP Address Assignment<\/h4>\n<p>To configure your system to use a static IP address assignment, add the static method to the inet address family statement for the appropriate interface in the file <code>\/etc\/network\/interfaces<\/code>. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the address, netmask, and gateway values to meet the requirements of your network.<\/p>\n<h4>DNS Client Configuration<\/h4>\n<p>Traditionally, the file \/etc\/resolv.conf was a static configuration file that rarely needed to be changed or automatically changed via DCHP client hooks. Nowadays, a computer can switch from one network to another quite often and the resolvconf framework is now being used to track these changes and update the resolver&#8217;s configuration automatically. It acts as an intermediary between programs that supply nameserver information and applications that need nameserver information. Resolvconf gets populated with information by a set of hook scripts related to network interface configuration. The most notable difference for the user is that any change manually done to \/etc\/resolv.conf will be lost as it gets overwritten each time something triggers resolvconf. Instead, resolvconf uses DHCP client hooks, and \/etc\/network\/interfaces to generate a list of nameservers and domains to put in \/etc\/resolv.conf, which is now a symlink:<\/p>\n<p>\/etc\/resolv.conf -&gt; ..\/run\/resolvconf\/resolv.conf<\/p>\n<p>To configure the resolver, add the IP addresses of the nameservers that are appropriate for your network in the file \/etc\/network\/interfaces. You can also add an optional DNS suffix search-lists to match your network domain names. For each other valid resolv.conf configuration option, you can include, in the stanza, one line beginning with that option name with a dns- prefix. The resulting file might look like the following:<\/p>\n<pre>auto eth0\r\niface eth0 inet static\r\naddress 10.0.0.100\r\nnetmask 255.255.255.0\r\ngateway 10.0.0.1\r\ndns-search example.com\r\ndns-nameservers 192.168.3.45 192.168.8.10<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a link for Ubuntu Server Network Configuration. The guide is valid for 12.04 version. https:\/\/help.ubuntu.com\/12.04\/serverguide\/network-configuration.html Below are some important parts: Static IP Address Assignment To configure your system to use a static IP address assignment, add the static method to the inet address family statement for the appropriate interface in the file \/etc\/network\/interfaces&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-669","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts\/669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=669"}],"version-history":[{"count":7,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts\/669\/revisions"}],"predecessor-version":[{"id":677,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=\/wp\/v2\/posts\/669\/revisions\/677"}],"wp:attachment":[{"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mythryll.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}