<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sun Solaris System Admin &#187; dhcp</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/dhcp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>How to setup DHCP client in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/networking/how-to-setup-dhcp-client-in-sun-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-setup-dhcp-client-in-sun-solaris</link>
		<comments>http://www.sunsolarisadmin.com/networking/how-to-setup-dhcp-client-in-sun-solaris/#comments</comments>
		<pubDate>Tue, 06 May 2008 18:17:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/?p=54</guid>
		<description><![CDATA[  Setting up a Sun Solaris Server to receive its IP address from a DHCP Server is fairly straight forward and is infact just a matter of setting up files on your Solaris Server. Ensure that every interface that is up and connects to a network has a file /etc/hostname.interface file created say /etc/hostname.pcn0 where <a href='http://www.sunsolarisadmin.com/networking/how-to-setup-dhcp-client-in-sun-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p> <div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><br />
Setting up a Sun Solaris Server to receive its IP address from a DHCP Server is fairly straight forward and is infact just a matter of setting up files on your Solaris Server.</p>
<p><span id="more-54"></span></p>
<p>Ensure that every interface that is up and connects to a network has a file /etc/hostname.interface file created say /etc/hostname.pcn0 where pcn0 is my network interface. If they are not found the create a file as follows:</p>
<blockquote><p><strong>solaris10# touch /etc/hostname.pcn0</strong></p></blockquote>
<p>where pcn0 is my network interface card. </p>
<p>dhcpagent is the dhcp client thats running on your Solaris operating system. With this in place create the following file:</p>
<p><strong><span style="text-decoration: underline;">Create /etc/dhcp.&lt;interface&gt;</span></strong></p>
<p>Similarly, create a /etc/dhcp.&lt;interface&gt; file (here /etc/hostname.pcn0)</p>
<blockquote><p><strong>solaris10# touch /etc/dhcp.pcn0</strong></p></blockquote>
<p>Again, if there are more than one network interface and if each of these receive IP Address from DHCP servers in their networks then a /etc/dhcp.&lt;interface&gt; file has to be created for each of these interfaces.</p>
<p>The system by default waits for 30 seconds for the DHCP Server to respond. However, this can be modified by entering the wait time in the dhcp.&lt;interface&gt; file. For instance, if I decide to let my solaris server wait for 90 seconds  then enter the wait time as follows</p>
<blockquote><p><strong>solaris10# cat /etc/dhcp.pcn0<br />
</strong>wait 90</p></blockquote>
<p>If it is a primary interface then this can be mentioned as follows</p>
<blockquote><p><strong>solaris10# cat /etc/dhcp.pcn0<br />
</strong>wait 90<br />
primary</p></blockquote>
<p>This should make your Sun Solaris Server a DHCP client to receive IP Address from a DHCP Server. For more customisation options <a title="DHCP Agent customisation in Sun Solaris" href="http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/" target="_self">click here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/networking/how-to-setup-dhcp-client-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Control/Modify dhcpagent configuration in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=controlmodify-dhcpagent-configuration-in-sun-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 19:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[broadcast-address]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[dnsdomain]]></category>
		<category><![CDATA[dnsserver]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[netmask]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/</guid>
		<description><![CDATA[Do you you DHCP to get the IP Address for your Solaris Server or workstation then its worth understanding what your DHCP Agent by default requests for from the DHCP server and help avoid certain network issues like &#8220;unknown&#8221; hostname issue as I&#8217;ve descrbed here. The DHCP Agent by default requests for the Subnet Mask <a href='http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><br />
Do you you DHCP to get the IP Address for your Solaris Server or workstation then its worth understanding what your DHCP Agent by default requests for from the DHCP server and help avoid certain network issues like &#8220;unknown&#8221; hostname issue as I&#8217;ve descrbed <a href="http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/" title="Fix Unknown Hostname issue in Solaris DHCP" target="_blank">here</a>.</p>
<p>The DHCP Agent by default requests for the</p>
<blockquote><p><strong>Subnet Mask</strong></p>
<p><strong>Default Router</strong></p>
<p><strong>Hostname</strong></p>
<p><strong>DNS Domain</strong></p>
<p><strong>Broadcast Address</strong></p>
<p><strong>Encapsulated Vendor Option (vendor specific information as described in <a href="http://www.faqs.org/rfcs/rfc2132.html" title="RFC 2132" target="_blank">RFC 2132</a>)</strong></p></blockquote>
<p><span id="more-43"></span><br />
The DHCP Agent config file is</p>
<blockquote><p><strong>/etc/default/dhcpagent</strong></p></blockquote>
<p>In the file look for the line</p>
<blockquote><p><strong>PARAM_REQUEST_LIST=1,3,6,12,15,28,43</strong></p></blockquote>
<p>This is the line that defines what is being requested for from the DHCP Server. Here, each number stands for one of the above mentioned parameters where</p>
<blockquote><p><strong>1</strong> = subnet mask</p>
<p><strong>3</strong> = Default Router</p>
<p><strong>6</strong> = DNS Server</p>
<p><strong>12</strong> = hostname</p>
<p><strong>15</strong> = DNS Domain Name</p>
<p><strong>28</strong> = broadcast address</p>
<p><strong>43</strong> = Encapsulated Vendor options</p></blockquote>
<p>If you decide to not request for any of the above parameters then all you need to do is to remove the corresponding number from the <strong>PARAM_REQUEST_LIST</strong>. Let&#8217;s say you do not want to request for the hostname then simply remove the number &#8220;3&#8243; and the &#8220;,&#8221; that follows so it looks as follows</p>
<blockquote><p><strong>PARAM_REQUEST_LIST=1,6,12,15,28,43</strong></p></blockquote>
<p>Once done,save the file. The next time the system restarts the hostname is not requested for from the DHCP Server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/controlmodify-dhcpagent-configuration-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix: No hostname when using DHCP in Sun Solaris 8/9/10</title>
		<link>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-no-hostname-when-using-dhcp-in-sun-solaris-8910</link>
		<comments>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/#comments</comments>
		<pubDate>Sat, 22 Mar 2008 19:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpagent]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[nodename]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/</guid>
		<description><![CDATA[If you are using DHCP to receive IP Address for your Sun Solaris system, you may end up with no hostname assigned to the system. This can be confirmed when there is no hostname at the prompt or if the output for the command &#8220;hostname&#8221; is as follows: # hostname unknown or the /etc/hosts file <a href='http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
If you are using DHCP to receive IP Address for your Sun Solaris system, you may end up with no hostname assigned to the system. This can be confirmed when there is no hostname at the prompt or if the output for the command &#8220;hostname&#8221; is as follows:</p>
<blockquote><p><strong># hostname<br />
</strong>unknown</p>
<p>or the /etc/hosts file has an entry as follows:</p>
<p><strong># cat /etc/hosts<br />
</strong>#<br />
# Internet host table<br />
#<br />
127.0.0.1       localhost<br />
192.168.0.3     unknown # Added by DHCP</p></blockquote>
<p><span id="more-42"></span><br />
This happens when the DHCP server doesn&#8217;t provide a hostname for your server. Most of the DHCP Servers or routers acting as a DHCP Server doesn&#8217;t provide a hostname and Solaris DHCP agent relies on the DHCP server for its hostname.</p>
<p>To fix this problem, edit the dhcpagent config and set it not to request a Hostname from the DHCP server and then add a hostname to the /etc/hosts &amp; /etc/nodename file.</p>
<p><u><strong>Edit DHCPAGENT config</strong></u></p>
<p><strong><em>[For Solaris 10, this is not required as setting the hostname in /etc/nodename overrides the hostname provided by the DHCP Server. Move onto the next step]</em></strong></p>
<p>Edit the dhcpagent config file /etc/default/dhcpagent with your favorite editor</p>
<blockquote><p><strong># vi /etc/default/dhcpagent</strong></p>
<p>and look for</p>
<p>PARAM_REQUEST_LIST=1,3,6,12,15,28,43</p>
<p>and remove the Parameter &#8220;12&#8243; from the above to look as follows:</p>
<p>PARAM_REQUEST_LIST=1,3,6,15,28,43</p>
<p>and save the file.</p></blockquote>
<p>Now, add the hostname to the /etc/nodename &amp; /etc/hosts as follows</p>
<blockquote><p><strong># vi /etc/nodename</strong></p></blockquote>
<p>and add the hostname you want it to have (solarisserver for me)</p>
<blockquote><p><strong># cat /etc/nodename</strong><br />
solarisserver</p></blockquote>
<p>and edit the /etc/hosts file</p>
<blockquote><p><strong># vi /etc/hosts</strong></p></blockquote>
<p>and add the line similar to the following</p>
<blockquote><p><strong>192.168.0.3     solarisserver loghost</strong></p></blockquote>
<p>Now,reboot the server and you should be all fine with hostname set for the system.</p>
<p><strong># init 6</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-8/fix-no-hostname-when-using-dhcp-in-sun-solaris-8910/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

