<?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>unixzone dot dk &#187; in.dhcpd</title>
	<atom:link href="http://unixzone.dk/unix/tag/in-dhcpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://unixzone.dk/unix</link>
	<description>another day, another blog..</description>
	<lastBuildDate>Mon, 03 May 2010 08:44:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Quick HOWTO: Sun DHCP daemon</title>
		<link>http://unixzone.dk/unix/2010/01/quick-howto-sun-dhcp-daemon/</link>
		<comments>http://unixzone.dk/unix/2010/01/quick-howto-sun-dhcp-daemon/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 17:02:08 +0000</pubDate>
		<dc:creator>lasseoe</dc:creator>
				<category><![CDATA[OpenSolaris]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpd]]></category>
		<category><![CDATA[in.dhcpd]]></category>

		<guid isPermaLink="false">http://unixzone.dk/unix/?p=21</guid>
		<description><![CDATA[Sun&#8217;s own DHCP daemon is not often used for anything besides Jumpstart/PXE boot and SunRay&#8217;s presumably because it&#8217;s not as well documented and accepted as the ISC DHCP daemon. I recently had a need to quickly setup a DHCP server and serve out a range of IP adresses including DNS servers and a default router, [...]]]></description>
			<content:encoded><![CDATA[<p>Sun&#8217;s own DHCP daemon is not often used for anything besides Jumpstart/PXE boot and SunRay&#8217;s presumably because it&#8217;s not as well documented and accepted as the <a href="http://www.isc.org/software/dhcp/">ISC DHCP</a> daemon. I recently had a need to quickly setup a DHCP server and serve out a range of IP adresses including DNS servers and a default router, all in all very basic. Here are my notes.</p>
<p>Setup DHCP in /var/dhcp using the SUNWfiles format<br />
<code># dhcpconfig -D -r SUNWfiles -p /var/dhcp</code></p>
<p>We only want to serve DHCP requests on bge1<br />
<code># /usr/sbin/dhcpconfig -P INTERFACES=bge1</code></p>
<p>Add new network<br />
<code># dhcpconfig -N 172.22.2.0 -m 255.255.255.0 -t 172.22.2.1</code></p>
<p>Display dhcptab table<br />
<code># dhtadm -P</code></p>
<p>Modify network/macro with various options<br />
<code># dhtadm -M -m 172.22.2.0 -d ':Subnet=255.255.255.0:Router=172.22.2.1:Broadcst=172.22.2.255:DNSserv=8.8.8.8 8.8.4.4:LeaseTim=86400:' -g</code></p>
<p>Add one client IP<br />
<code># pntadm -A 172.22.2.101 -c dhcp101 -m 172.22.2.0 172.22.2.0</code></p>
<p>Adding several client IPs<br />
<code># for IP in 102 103 104 105 106 107 108 109 110<br />
do<br />
pntadm -A 172.22.2.${IP} -c dhcp${IP} -m 172.22.2.0 172.22.2.0<br />
done</code></p>
<p>Delete client IP<br />
<code># pntadm -D 172.22.2.107 172.22.2.0</code></p>
<p>Display DHCP network table<br />
<code># pntadm -P 172.22.2.0</code></p>
<p>Documentation: <a href="http://docs.sun.com/app/docs/doc/819-3000/dhcptm-1?l=en&#038;a=view">Solaris System Administration Guide: IP Services &gt; DHCP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://unixzone.dk/unix/2010/01/quick-howto-sun-dhcp-daemon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
