{"id":602,"date":"2009-02-17T15:30:32","date_gmt":"2009-02-17T23:30:32","guid":{"rendered":"http:\/\/www.laurenwood.org\/anyway\/?p=602"},"modified":"2009-02-17T15:30:32","modified_gmt":"2009-02-17T23:30:32","slug":"opensolaris-hostname-on-dhcp","status":"publish","type":"post","link":"https:\/\/www.laurenwood.org\/anyway\/2009\/02\/opensolaris-hostname-on-dhcp\/","title":{"rendered":"OpenSolaris Hostname on&nbsp;<span class=\"caps\">DHCP<\/span>"},"content":{"rendered":"<p>By default, OpenSol\u00adar\u00adis does\u00adn\u2019t broad\u00adcast the host\u00adname on the loc\u00adal net\u00adwork, just the <span class=\"caps\">IP<\/span> address. To rec\u00adti\u00adfy this, find out what net\u00adwork inter\u00adface you have (often <em>nge0<\/em>) by run\u00adning <code>ifconfig -a<\/code>. It\u2019ll be the one with the <span class=\"caps\">IP<\/span> address giv\u00aden by the router (i.e., not <code>127.0.0.1<\/code>).<\/p>\n<p>Then, as root, edit the file <em>\/etc\/default\/dhcpagent<\/em>. Find the line <code># CLIENT_ID=<\/code>, delete the # to uncom\u00adment the line, and append your host\u00adname. Find the line <code># REQUEST_HOSTNAME=no<\/code> and change to <code>REQUEST_HOSTNAME=yes<\/code>. As doc\u00adu\u00admented in that file, you also need to edit your <em>\/etc\/hostname.&lt;if&gt;<\/em> file, where &lt;if&gt; is your net\u00adwork inter\u00adface (often nge0), adding the line <code>inet <em>hostname<\/em><\/code>. <\/p>\n<p>You can then either reboot the machine, or renew the <span class=\"caps\">DHCP<\/span> lease on a con\u00adsole on the machine (since it will dis\u00adcon\u00adnect you from any <span class=\"caps\">SSH<\/span> ses\u00adsions). As root, first execute <code>ifconfig &lt;if&gt; dhcp release<\/code> to dis\u00adcard the cur\u00adrent lease, then <code>ifconfig &lt;if&gt; dhcp start<\/code> to start <span class=\"caps\">DHCP<\/span> on the inter\u00adface again. Com\u00adplete doc\u00adu\u00adment\u00ada\u00adtion can be found through the <code>man ifconfig<\/code> and <code>man dhcpagent<\/code> pages.<\/p>\n<p>Res\u00adult: I can see the host\u00adname through the <span class=\"caps\">DHCP<\/span> serv\u00ader now, which I could\u00adn\u2019t before, but I still can\u00ad\u2019t see it from the Win\u00addows box. So that\u2019s anoth\u00ader piece of the puzzle to track&nbsp;down.<\/p>\n<p>Mind you, I need to give the Sol\u00adar\u00adis box a stat\u00adic <span class=\"caps\">IP<\/span> address for serving web\u00adsites, so the <span class=\"caps\">DHCP<\/span> nam\u00ading thing is moot. It would be nice to be able to <code>ssh &lt;hostname&gt;<\/code> from oth\u00ader machines on the net\u00adwork rather than using the <span class=\"caps\">IP<\/span> address though.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, OpenSol\u00adar\u00adis does\u00adn\u2019t broad\u00adcast the host\u00adname on the loc\u00adal net\u00adwork, just the <span class=\"caps\">IP<\/span> address. To rec\u00adti\u00adfy this, find out what net\u00adwork inter\u00adface you have (often nge0) by run\u00adning ifcon\u00adfig \u2011a. It\u2019ll be the one with the <span class=\"caps\">IP<\/span> address giv\u00aden by the router (i.e., not 127.0.0.1). Then, as root, edit the file \/etc\/default\/dhcpagent. Find the \u2026 <a href=\"https:\/\/www.laurenwood.org\/anyway\/2009\/02\/opensolaris-hostname-on-dhcp\/\" class=\"more-link\">Con\u00adtin\u00adue read\u00ading<span class=\"screen-reader-text\"> \u201cOpenSol\u00adar\u00adis Host\u00adname on&nbsp;<span class=\"caps\">DHCP<\/span>\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wp_typography_post_enhancements_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":""},"categories":[6],"tags":[76,20],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-technology","tag-dhcp","tag-opensolaris"],"_links":{"self":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/comments?post=602"}],"version-history":[{"count":10,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"predecessor-version":[{"id":612,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/posts\/602\/revisions\/612"}],"wp:attachment":[{"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurenwood.org\/anyway\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}