<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>dhcp &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/dhcp/</link>
	<description>Feed of posts on WordPress.com tagged "dhcp"</description>
	<pubDate>Thu, 26 Nov 2009 02:40:47 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Провайдер уронил DHCP]]></title>
<link>http://kuralesov.wordpress.com/2009/11/22/%d0%bf%d1%80%d0%be%d0%b2%d0%b0%d0%b9%d0%b4%d0%b5%d1%80-%d1%83%d1%80%d0%be%d0%bd%d0%b8%d0%bb-dhcp/</link>
<pubDate>Sun, 22 Nov 2009 18:15:46 +0000</pubDate>
<dc:creator>kuralesov</dc:creator>
<guid>http://kuralesov.wordpress.com/2009/11/22/%d0%bf%d1%80%d0%be%d0%b2%d0%b0%d0%b9%d0%b4%d0%b5%d1%80-%d1%83%d1%80%d0%be%d0%bd%d0%b8%d0%bb-dhcp/</guid>
<description><![CDATA[Неожиданно пров что-то накуралесил у себя с DHCP. Винда починилась при помощи магии, а именно запуск]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Неожиданно пров что-то накуралесил у себя с DHCP.<br />
Винда починилась при помощи магии, а именно запуском в безопасном режиме с поддержкой сети. После перезагрузки всё встало на свои места.<br />
С Archlinux проблема решалась перезапуском сетевого демона и последующим ручным поднятием впн для доступа в интернет, но в век автоматизации такой метод дозагрузки не подходит. Решил методом добавление в /etc/rc.local перед строкой запуска VPN запуск dhcpcd.<br />
Как результат вроде как нормальная загрузка сети.<br />
Побочный эффект: увеличение времени загрузки системы т.к. на этапе загрузки network долго висит в состоянии busy, а после ещё dhcpcd получает адреса.<br />
В общем, продолжаем копать&#8230;</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Chapter 5 Review Questions]]></title>
<link>http://cn181.wordpress.com/2009/11/22/chapter-5-review-questions/</link>
<pubDate>Sun, 22 Nov 2009 02:41:14 +0000</pubDate>
<dc:creator>Phil Fenton</dc:creator>
<guid>http://cn181.wordpress.com/2009/11/22/chapter-5-review-questions/</guid>
<description><![CDATA[How many packets are involved in the DHCP Lease process? How many of these packet transmission are b]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><ol>
<li>
<div>How many packets are involved in the DHCP Lease process?</div>
</li>
<li>
<div>How many of these packet transmission are broadcast transmissions?</div>
</li>
<li>
<div>What are the intervals for renewal when a timed lease is implemented?</div>
</li>
<li>
<div>What is the purpose of DHCP relay?</div>
</li>
<li>
<div>Why is DHCP authorization needed in a domain environment? What rights should a userID have in order to run and authorize and DHCP server?</div>
</li>
<li>
<div>What are the configurable elements of DHCP?</div>
</li>
<li>
<div>Define the following terms in relation to DHCP?</div>
<ol type="a">
<li>
<div>Vendor Class</div>
</li>
<li>
<div>User Class</div>
</li>
</ol>
</li>
<li>
<div>How does a reservation differ from an exclusion?</div>
</li>
<li>
<div>How is a superscope used?</div>
</li>
<li>
<div>How is a mulicast scope is used?</div>
</li>
</ol>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Lab Assignment - Day 3 Pt 1]]></title>
<link>http://cn181.wordpress.com/2009/11/18/lab-assignment-day-3-pt-1/</link>
<pubDate>Wed, 18 Nov 2009 16:42:00 +0000</pubDate>
<dc:creator>Phil Fenton</dc:creator>
<guid>http://cn181.wordpress.com/2009/11/18/lab-assignment-day-3-pt-1/</guid>
<description><![CDATA[The first part of today&#8217;s lab is to review the assignment from yesterday&#8217;s lab assignmen]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The first part of today&#8217;s lab is to review the assignment from yesterday&#8217;s lab assignment. The team leader should take the following steps to prepare their group for the lab.</p>
<ol>
<li>Ensure that all computers are connected to a switch.</li>
<li>Make sure group members have their IP addresses configured to use static IPs (you&#8217;ll be given a network prior to beginning the lab)</li>
<li>Ensure that DHCP is not installed on any machine.</li>
<li>Ensure that DHCP Server service is not running on any machine</li>
</ol>
<p>Once these steps have been taken each group member will configure DHCP and, if necessary, troubleshoot DHCP so that every machine in the group is assigned an IP address from the server acting as the DHCP server. Inidividual group members will be responsible for implementing DHCP ON THEIR OWN in a pre-determined amount of time. This process should be repeated for every member of the team. Have me confirm that DHCP has been properly configured prior to moving on to the next team member.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Stawiamy sobie NAT... oraz troszkę o iptables, a jeszcze mniej o DHCP.]]></title>
<link>http://wojlys.wordpress.com/2009/11/17/stawiamy-sobie-nat-oraz-troszke-o-iptables-a-jeszcze-mniej-o-dhcp/</link>
<pubDate>Tue, 17 Nov 2009 12:56:05 +0000</pubDate>
<dc:creator>wojlys</dc:creator>
<guid>http://wojlys.wordpress.com/2009/11/17/stawiamy-sobie-nat-oraz-troszke-o-iptables-a-jeszcze-mniej-o-dhcp/</guid>
<description><![CDATA[Wstęp W wiekszości przypadków ludzie nie mający za wiele wspólnego z systemem Linuks interesują się ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h1>Wstęp</h1>
<p>W wiekszości przypadków ludzie nie mający za wiele wspólnego z systemem Linuks interesują się nim w kontekście prostego serwera dostępowego do sieci Internet.<br />
Nie potrzeba mieć jakiejś szczególnej wiedzy, aby zainstalować dzisiaj Linuksa. W sieci jest pełno dystrybucji przyjaznych dla użytkownika, posiadających konfiguratory i/lub automatycznie konfigurujących siec &#8211; to pięknie, ale czasem warto wiedzieć jak coś skonfigurować &#8220;z palca&#8221;.<br />
Poniżej przedstawiam sposób, w jaki ja, na szybko, ustawiłbym serwer dostępowy.<br />
Podany poniżej przepis działał będzie na pewno na debianie/ubuntu, powinien też działać na klonach RedHat (Centos,Whitebox,Fedora) oraz na większości innych dystrybucji.<br />
<!--more--></p>
<h1>Do dzieła </h1>
<p>Po zainstalowaniu czystego systemu operacyjnego (najlepiej bez serwera X i innych zbędnych narzędzi) zalecam zaktualizowanie systemu do najnowszej wersji w ramach danego wydania, zainstalować swój ulubiony edytor tekstowy i przygotować się na trochę pisania na klawiaturze <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<h2>konfiguracja interfejsów</h2>
<p>Aby nasz komputer mógł pracować jako serwer dostępowy do sieci Internet musi posiadać przynajmniej dwa interfejsy sieciowe. Dla celów opisowych przyjmiemy iż:</p>
<ul>
<li>eth0 &#8211; interfejs od strony sieci lokalnej, na której będzie nasłuchiwał serwer DHCP</li>
<li>eth1 &#8211; interfejs od strony sieci Internet, skonfigurowany automatycznie przez DHCP</li>
</ul>
<p>Interfejs eth1 jest konfigurowany automatycznie przez DHCP dostawcy Internetu (jak to ma miejsce w większości przypadków u lokalnych dostawców Internetu), ale nie niczemu nie przeszkadza, jeśli statycznie skonfigurujemy ten interfejs.<br />
Konfiguracja interfejsów sieciowych w systemie ubuntu/debian znajduje się w pliku <b>/etc/network/interfaces</b>.<br />
W tej chwili mój plik wygląda następująco:</p>
<blockquote><p>
 auto lo<br />
 iface lo inet loopback</p>
<p> auto eth1<br />
 iface eth1 dhcp</p>
<p> auto eth0<br />
 iface eth0 inet static<br />
 address 1.1.1.1<br />
 netmask 255.255.255.0<br />
 network 1.1.1.0<br />
 broadcast 1.1.1.255
</p></blockquote>
<p>Interfejs eth1 jest konfigurowany automatycznie, ale można jego deklaracje skasować i ustawić podobnie do tej, z eth0 wypełniając odpowiednio parametry. Należy pamiętać, iż przy ustawianiu statycznym interfejsu od strony Internetu trzeba jeszcze wskazać w pliku <b>/etc/resolv.conf</b>.<br />
Przykład pliku:</p>
<blockquote><p>
search domena.pl<br />
nameserver x.x.x.x<br />
nameserver x.x.x.x
</p></blockquote>
<p>Opcja search powoduje, że w momencie gdy będziemy chcieli odszukać w sieci komputer i nie będzie on możliwy do odnalezienia przy nazwie, która podaliśmy, to do tej nazwy doda domenę i tak zestawioną nazwę hosta postara się odnaleźć.</p>
<p>Parametr nameserver wskazuje adresy IP serwerów nazw dla naszego komputera. Warto je zapamiętać, bo potrzebne będą przy konfiguracji serwera DHCP (o ile nie posiadamy własnego serwera DNS).</p>
<p>Po zmianie w pliku <b>interfaces</b> wydajemy polecenie <b>/etc/init.d/networking restart</b> i aby wszystko sprawdzić, czy się zgadza <b>ifconfig</b></p>
<h2>Konfiguracja DHCP</h2>
<p>DHCP służy do automatycznego konfigurowania komputerów w sieci. Przedstawiony tutaj przykład jest bardzo prosty, z samym serwerem DHCP można zrobić dużo, ale to nie jest temat na ten artykuł.<br />
Instalujemy paczkę <b>dhcp3-server</b> za pomocą polecenia <b>apt-get install</b>, a następnie edytujemy dwa pliki.<br />
<b>/etc/default/dhcp3-server</b><br />
W parametrze INTERFACES wpisujemy &#8220;eth0&#8243;, lub inny interfejs, na którym serwer DHCP na nasłuchiwać.</p>
<p><b>/etc/dhcp3/dhcpd.conf</b><br />
Ustawiamy:</p>
<ul>
<li>option domain-name &#8220;twoja_domena&#8221;;</li>
<li>option domain-name-servers x.x.x.x,y.y.y.y;  &#8211; adresy ip serwerów DNS oddzielonych przecinkami</li>
</ul>
<p>Usuwamy komentarz (znak &#8216;#&#8217;) z sekcji subnet i ustawiamy następująco:</p>
<blockquote><p>
subnet 1.1.1.0 netmask 255.255.255.0 {<br />
range 1.1.1.2 1.1.1.200;<br />
option routers 1.1.1.1;<br />
}
</p></blockquote>
<p>Oczywiście możecie ustawić to w swoich plikach tak, aby odpowiadało waszym zakresom IP.<br />
Parametr &#8220;range&#8221; wskazuje ile adresów IP będzie przydzielanych przez serwer DHCP, routers przekazuje komputerom klienckim adres IP routera.<br />
Po wszystkich tych czynnościach przeładowujemy serwer DHCP <b>/etc/init.d/dhcp3-server restart</b>.<br />
Jeśli będą wyświetlały się jakieś błędy zobaczcie do pliku konfiguracyjnego czy nie zapomnieliście gdzieś dać średnika &#8216;;&#8217; lub czy wszystkie nawiasy są zamknięte. Konkretne miejsce znajdziecie w syslogu.</p>
<h2>Konfiguracja NAT</h2>
<p>NAT w Linuksie konfiguruje się za pomocą iptables.<br />
Ja to robię w następujący sposób:<br />
Tworzę plik o dowolnej nazwie w /etc/init.d i w nim podaję regułki firewall:<br />
<code><br />
echo '1' &#62; /proc/sys/net/ipv4/ip_forward<br />
iptables -t nat -F<br />
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
</code></p>
<p>pierwsza linia pozwala na przekazywanie pakietów między interfejsami, druga czyści łańcuch &#8220;nat&#8221;, trzecia ustawia maskowanie pakietów &#8211; tutaj podajemy nazwę interfejsu od strony Internetu.</p>
<p>Tak przygotowany plik ustawiamy jako wykonywujący (chmod +x nazwa_pliku) oraz linkujemy go do rcx.d (ln -s /etc/init.d/nazwa_pliku /etc/rc2.d/S99nazwapliku). Owe rcx.d jest odpowiedzialne za uruchamianie odpowiednich usług w zależności od trybu działania systemu (wykracza to poza zakres tego artykułu). Jeśli nie jesteście pewni to zlinkujcie ten plik do rc2.d, rc3.d i rc5.d.</p>
<p>Po restarcie systemu sprawdźcie, czy wszystko działa.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Linux LTSP.- Crear un servidor de terminales]]></title>
<link>http://moramorao.wordpress.com/2009/11/13/linux-ltsp-crear-un-servidor-de-terminales/</link>
<pubDate>Fri, 13 Nov 2009 01:40:52 +0000</pubDate>
<dc:creator>moramorao</dc:creator>
<guid>http://moramorao.wordpress.com/2009/11/13/linux-ltsp-crear-un-servidor-de-terminales/</guid>
<description><![CDATA[He leído en LinuxCáceres, un post, Linux Terminal Server Project o LTSP, que  pongo a continuación, ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>He leído en <a href="http://linuxcaceres.blogspot.com/2009/11/linux-servidor-de-terminales-con-ltsp.html">LinuxCáceres</a>, un post, <strong>Linux Terminal Server Project</strong> o <strong>LTSP, </strong> que  pongo a continuación, y lo pongo porque llevo tiempo queriendo hacer esto. A ver si ahora en Navidades voy &#8220;pal pueblo y con los cacharros viejo me sale algo.</p>
<p><strong>Linux Terminal Server Project</strong> o <strong>LTSP</strong> son un conjunto de aplicaciones servidores que proporcionan la capacidad de ejecutar Linux en computadoras de pocas prestaciones de velocidad o computadoras de bajo costo, permitiendo reutilizar equipos que actualmente resultan obsoletos debido a los altos requerimientos que piden los sistemas operativos. LTSP se distribuye bajo licencia GNU GPL de software libre (Texto sacado de la wikipedia).</p>
<div style="text-align:center;"><a href="http://linuxcaceres.blogspot.com"><img class="aligncenter" style="border:0 none;" src="http://www.salvadorbiedma.com/blog/wp-content/uploads/2008/01/ltsp_default.png" border="0" alt="" width="320" height="190" /></a></div>
<p>Manos a la obra, tengo un ordenador PIII-450 con 128Mb de RAM, un poco desfasado … la verdad. Con este sistema se le puede sacar provecho aún. Aprovechando que tengo un ordenador más potente he montado un servidor de terminales y el PIII tirará de él. Voy a describir los pasos que he seguido para su instalación.</p>
<p>Lo primero de todo … los paquetes que debemos instalar sobre el servidor (todo se hará sobre el servidor, en el cliente no hay que hacer nada … bueno si no tiene arranque por red en bios, sí, pero al final lo describo):</p>
<ul>
<li>Paquete <strong>ltsp-server</strong></li>
<li>Un servidor <strong>tftp</strong></li>
<li>Un servidor dhcp</li>
<li>Un servidor n<strong>fs o nbd</strong> para exportar la imagen a los clientes</li>
</ul>
<p>Continua leyendo la entrada completa en: <a href="http://linuxcaceres.blogspot.com/2009/11/linux-servidor-de-terminales-con-ltsp.html">Linux.-Servidor de terminales con LTSP</a><a href="http://linuxcaceres.blogspot.com/2009/11/linux-servidor-de-terminales-con-ltsp.html">&#62;&#62;LinuxCáceres</a></p>
<p>Podéis ver la <strong>instalación de Chrome</strong> enlace: <a title="Enlace Permanente a Probando Chrome OS" rel="bookmark" href="../2009/11/20/probando-chrome-os/">Probando Chrome OS</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Export DHCP leases to html using powershell &ndash; update]]></title>
<link>http://theadminguy.wordpress.com/2009/11/09/export-dhcp-leases-to-html-using-powershell-update/</link>
<pubDate>Mon, 09 Nov 2009 01:23:51 +0000</pubDate>
<dc:creator>The Admin Guy</dc:creator>
<guid>http://theadminguy.wordpress.com/2009/11/09/export-dhcp-leases-to-html-using-powershell-update/</guid>
<description><![CDATA[There was a minor quirk in the original script, as lease dates where being mixed with hostnames in t]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>There was a minor quirk in the original script, as lease dates where being mixed with hostnames in the final output html. As it turns out it was all a matter of what date it was, when I created the script <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Line 21 in the original: </p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:65a779db-8777-410d-a1f4-f091c74b6c06" class="wlWriterEditableSmartContent">
<pre style="background-color:#C0C0C0;overflow:auto;"><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '[</span><span style="color:#000000;">-</span><span style="color:#000000;">]{</span><span style="color:#000000;">1</span><span style="color:#000000;">}\d{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[</span><span style="color:#000000;">/</span><span style="color:#000000;">]\d{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[</span><span style="color:#000000;">/</span><span style="color:#000000;">]\d{</span><span style="color:#000000;">4</span><span style="color:#000000;">}',''</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>matches dates in the following format: <strong>-xx/yy/zzzz</strong> but not <strong>-x/yy/zzzz</strong> or for that matter <strong>-xx/y/zzzz</strong>. </p>
<p>The correct –replace should have been:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:546f90ff-9cfd-4bde-bf27-23ff9eca0d16" class="wlWriterEditableSmartContent">
<pre style="background-color:#C0C0C0;overflow:auto;"><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '[</span><span style="color:#000000;">-</span><span style="color:#000000;">]{</span><span style="color:#000000;">1</span><span style="color:#000000;">}\d{</span><span style="color:#000000;">1</span><span style="color:#000000;">,</span><span style="color:#000000;">2</span><span style="color:#000000;">}[</span><span style="color:#000000;">/</span><span style="color:#000000;">]\d{</span><span style="color:#000000;">1</span><span style="color:#000000;">,</span><span style="color:#000000;">2</span><span style="color:#000000;">}[</span><span style="color:#000000;">/</span><span style="color:#000000;">]\d{</span><span style="color:#000000;">4</span><span style="color:#000000;">}',''</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
</p>
<p>Thanks you for the comments, which was the final spark to get me to fix it in my production environment <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Configurar Servidor DHCP en Linux]]></title>
<link>http://aimerrivera.wordpress.com/2009/11/06/configurar-servidor-dhcp-en-linux/</link>
<pubDate>Fri, 06 Nov 2009 14:31:47 +0000</pubDate>
<dc:creator>aimerrivera</dc:creator>
<guid>http://aimerrivera.wordpress.com/2009/11/06/configurar-servidor-dhcp-en-linux/</guid>
<description><![CDATA[Este articulo pretende explicar la forma de configurar un servidor DHCP en Linux (está probado sobre]]></description>
<content:encoded><![CDATA[Este articulo pretende explicar la forma de configurar un servidor DHCP en Linux (está probado sobre]]></content:encoded>
</item>
<item>
<title><![CDATA[Continuing adventures with DNS]]></title>
<link>http://thecrane.wordpress.com/2009/11/01/continuing-adventures-with-dns/</link>
<pubDate>Sun, 01 Nov 2009 08:15:26 +0000</pubDate>
<dc:creator>thecrane</dc:creator>
<guid>http://thecrane.wordpress.com/2009/11/01/continuing-adventures-with-dns/</guid>
<description><![CDATA[After installing the new Ubuntu 9.10 over the weekend, I set about again trying to establish my new ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>After installing the new Ubuntu 9.10 over the weekend, I set about again trying to establish my new DNS server running on the platform.  I have found what seems to be a great tutorial for DDNS (i.e. DNS which is updated with DHCP leases) <a href="http://www.cahilig.org/debian-and-ubuntu-ddns-bind9-and-dhcp">here</a>.</p>
<p>I&#8217;m still working through the bugs, but things at least seem to be getting DHCP addresses, so that&#8217;s a good start.  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>A couple of gotchas early one &#8211; Ubuntu runs a thing called AppArmor which seems to cause a lot of problems with applications like DHCP wanting to update BIND and all that.  The comments on <a href="http://www.debianadmin.com/howto-setup-dhcp-server-and-dynamic-dns-with-bind-in-debian.html">this post at DebianAdmin.com</a> outline the changes that are needed to be made, specifically you have to make one last minor change to /etc/apparmor.d/usr.sbin.dhcpd3:</p>
<p><code><br />
/etc/bind/ rw,<br />
/etc/bind/** rw,<br />
</code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to Install and Configure DHCP Server in Ubuntu Server]]></title>
<link>http://sanhom.wordpress.com/2009/10/30/how-to-install-and-configure-dhcp-server-in-ubuntu-server/</link>
<pubDate>Fri, 30 Oct 2009 04:42:11 +0000</pubDate>
<dc:creator>sanhom</dc:creator>
<guid>http://sanhom.wordpress.com/2009/10/30/how-to-install-and-configure-dhcp-server-in-ubuntu-server/</guid>
<description><![CDATA[Title: How to Install and Configure DHCP Server in Ubuntu Server http://www.ubuntugeek.com/how-to-in]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Title: How to Install and Configure DHCP Server in Ubuntu Server</p>
<p><a href="http://www.ubuntugeek.com/how-to-install-and-configure-dhcp-server-in-ubuntu-server.html">http://www.ubuntugeek.com/how-to-install-and-configure-dhcp-server-in-ubuntu-server.html</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How to move DHCP database from one server to another server]]></title>
<link>http://itprojects.wordpress.com/2009/10/29/how-to-move-dhcp-database-from-one-server-to-another-server/</link>
<pubDate>Thu, 29 Oct 2009 06:18:02 +0000</pubDate>
<dc:creator>Thary</dc:creator>
<guid>http://itprojects.wordpress.com/2009/10/29/how-to-move-dhcp-database-from-one-server-to-another-server/</guid>
<description><![CDATA[You use netsh dhcp server command to move DHCP database from one server to another server – for exam]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>You use <em>netsh dhcp server</em> command to move DHCP database from one server to another server – for example moving DHCP database from Windows Server 2003 to Windows Server 2008.</p>
<p>Please note that you must install DHCP server service on a target server before moving the database.</p>
<p><strong>On a source DHCP server (Windows Server 2003):</strong></p>
<ol>
<li>Open a command prompt </li>
<li>Type <b>netsh dhcp server export</b> <i>drive:\dhcp.txt</i> <b>all</b> </li>
<li>Copy the file to a network share folder a thumb drive. </li>
</ol>
<p><strong>On a target DHCP server (Windows Server 2008):</strong></p>
<ol>
<li>Open a command prompt </li>
<li>Type <b>netsh dhcp server import</b> <i>drive:\dhcp.txt</i> <b>all</b> </li>
<li>Activate the scope if necessary. </li>
</ol>
<p>That’s it!</p>
<p><strong>Book</strong></p>
<ul>
<li><a href="http://www.amazon.com/gp/offer-listing/0782141307/?tag=itpr-20&#38;condition=new" target="_blank">Mastering Windows Server 2003</a> by Mark Minasi </li>
<li><a href="http://www.amazon.com/gp/offer-listing/0735624372/?tag=itpr-20&#38;condition=new" target="_blank">Windows Server 2008 Administrator&#8217;s Pocket Consultant</a> by William Stanek </li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Data Center Administrator ]]></title>
<link>http://mindsourceinc.wordpress.com/2009/10/27/data-center-administrator/</link>
<pubDate>Tue, 27 Oct 2009 22:50:43 +0000</pubDate>
<dc:creator>Michelle</dc:creator>
<guid>http://mindsourceinc.wordpress.com/2009/10/27/data-center-administrator/</guid>
<description><![CDATA[*THIS POSITION HAS CLOSED.  THANK YOU FOR YOUR INTEREST.* Our client&#8217;s growing their Technical]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>*THIS POSITION HAS CLOSED.  THANK YOU FOR YOUR INTEREST.*</strong></p>
<p>Our client&#8217;s growing their Technical Operations team to meet the demands of their rapidly growing user community, and have a terrific opportunity for a <strong>DATA CENTER ADMINISTRATOR</strong> with strong attention to detail and excellent communication skills. This position is primarily onsite at local data centers, with occasional onsite work in their Oakland, CA offices, and travel to remote data center locations a few times per year.  Our client&#8217;s team is small, agile and dedicated.  They value diligence and creativity in scaling our infrastructure while consolidating servers as our usage continues to grow.  We are  looking for the right person for this position &#8211; someone who’s ready to dig in on day one, with substantial hands-on experience in data centers and a “can-do” attitude.</p>
<p><strong>RESPONSIBILITIES</strong></p>
<p>As a member of our client&#8217;s Technical Operations team, you will have primary responsibility for the daily operations of our <strong>SAN JOSE, CA</strong> and <strong>SAN FRANCISCO, CA</strong> co-location data centers. Primarily on site in San Jose, you will be the eyes, ears and hands for our client&#8217;s team there &#8211; coordinating everything from rack mounting servers, performing routine maintenance and hardware troubleshooting to structured cable design, operating system installs, cross-connect installs, vendor deliveries and physical plant maintenance.</p>
<p><strong>REQUIREMENTS</strong></p>
<p>You must be self-motivated, capable of managing your time well, and work efficiently without close supervision. Meticulous and well-documented work is an absolute must. You should be enthusiastic about hardware and cabling installation, diagnostics, and repair.  You will be responding to trouble tickets opened by staff members but will also be expected to proactively identify and resolve problems as you gain familarity with our client&#8217;s systems.</p>
<ul>
<li>5 years extensive PC Hardware experience and detailed knowledge of components (x86, x86_64 with a strong preference for white/grey box systems)</li>
<li>Minimum 5 year hands-on UNIX/Linux experience, including solid knowledge of OS install, configuration, and boot</li>
<li>Experience working in a 24/7 customer-facing environment</li>
<li>Experience building &#38; maintaining structured cabling</li>
<li>Strong experience with host-based storage &#38; RAID</li>
<li>Strong understanding of ethernet networking &#38; TCP/IP</li>
<li>Reliable transportation between Oakland, San Jose,  and San Francisco (available as needed, 24/7)</li>
<li>Be able to lift 50lb to a height of 6ft</li>
<li>Available for occasional off-hours (24/7) on-site data center support</li>
</ul>
<p><strong>DESIRED SKILLS</strong></p>
<ul>
<li>Experience with Debian or Ubuntu</li>
<li>Experience with enterprise switches (Cisco, Force10, Arista, Foundry)</li>
<li>Understanding of Load Balancers</li>
<li>Familiarity with optical networks</li>
<li>Scripting in BASH, Perl and/or Python</li>
<li>System monitoring (Nagios, Cacti, Smokeping)</li>
<li>Understanding of DHCP, PXE and automated system installs</li>
</ul>
<p>If you are interested, please send us your resume to <a href="mailto:tsotelo@mindsource.com?subject=Data Center Administrator">tsotelo@mindsource.com</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Membangun DNS,DHCP,FTP,web Server,Mail Server dan Proxy Server di kampus dengan Linux Fedora ]]></title>
<link>http://octavianopratama.wordpress.com/2009/10/27/membangun-dnsdhcpftpweb-servermail-server-dan-proxy-server-di-kampus-dengan-linux-fedora/</link>
<pubDate>Tue, 27 Oct 2009 15:39:37 +0000</pubDate>
<dc:creator>octavianopratama</dc:creator>
<guid>http://octavianopratama.wordpress.com/2009/10/27/membangun-dnsdhcpftpweb-servermail-server-dan-proxy-server-di-kampus-dengan-linux-fedora/</guid>
<description><![CDATA[Setelah Pada artikel Sebelumnya saya membahas tentang &#8220;Tutorial Membangun administrasi Jaringa]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Setelah Pada artikel Sebelumnya saya membahas tentang &#8220;<a href="http://octavianopratama.wordpress.com/2009/06/29/tutorial-membangun-administrasi-jaringan-kampus-dengan-linux-slackware/" target="_blank">Tutorial Membangun administrasi Jaringan kampus dengan Linux Slackware</a>&#8221; pada kesempatan kali ini,saya akan membahas Tutorial Membangun administrasi Jaringan Kampus dengan Linux Fedora..</p>
<p>Di era globalisasi ini kemajuan dalam bidang pendidikan sudah semakin maju terutama dalam bidang teknologi informasi yang sekarang ini sudah semakin canggih dan tentunya sedang dibutuhkan oleh perusahaan untuk menjadi pesaing dengan perusahaan lain.Kemajuan teknologi informasi di era globalisasi ini sangat mendukung semua bidang,hanya saja kita sering mengabaikan akan bermanfaatnya ilmu teknologi saat ini.</p>
<p>Kemajuan teknologi informasi sebenarnya dapat memudahkan dalam berkomunikasi, mencari informasi, bahkan kita pun bisa memperoleh uang dengan keahlian yang kita miliki dengan memanfaatkan teknologi yang ada.Untuk membangun server agar bisa mengatur arus dalam jaringan maka dibutuhkan adanya keahlian dalam memanajemen agar client dapat menjalankan komputernya dengan baik dan benar. Namun dalam membangun sebuah server banyak hal yang perlu kita perhatikan terutama bahan-bahan seperti software dan bahan-bahan lainnya. Adapun beberapa kebutuhan lainnya yang akan kita bahas dalam materi ini.<!--more--></p>
<p>BERIKUT INI DAFTAR ISI DARI TUTORIAL MEMBANGUN DNS,DHCP,FTP,Web Server,Mail Server dan Proxy Server dengan Linux Fedora:</p>
<p>BAB II   LANDASAN TEORI</p>
<p>2.1     Pengertian Jaringan.</p>
<p>2.2    <em> </em> Sistem Operasi Linux.</p>
<p>2.3     DNS (Domain Name Server)</p>
<p>2.4     DHCP (Dynamic Host Configuration Protocol)</p>
<p>2.5     FTP (File Transfer Protokol)</p>
<p>2.6     Web Server</p>
<p>2.5     Mail Server</p>
<p>2.6     Proxy Server</p>
<p>2.7     Samba Server.</p>
<p>BAB III PROSES PRODUKSI</p>
<p>3.1     Waktu dan Tempat Pelaksaan.</p>
<p>3.2     Alat dan Bahan.</p>
<p>3.3     Gambar Kerja.</p>
<p>3.4     Proses Pengerjaan.</p>
<p>3.4.1      Installasi Mail Server.</p>
<p>3.4.2      Installasi Web Server.</p>
<p>3.4.3      Installasi Proxy Server.</p>
<p>3.4.4      Installasi DNS Server.</p>
<p>3.4.5      Installasi FTP Server dan SAMBA Server.</p>
<p>3.5.6      Installasi DHCP Server.</p>
<p>&#160;</p>
<h2>Bagi Yang Menginginkan download Tutorial Lengkap,, dapat</h2>
<h2>me-request Lewat COment Di bawah</h2>
<h2>Bagi Yang Telah me-request,, URL FiLe nya akan sy Kirimkan ke Mail</h2>
<h2>Anda&#8230;</h2>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA['No such host is known' warning while transferring the messages using Narawen Inox POP3 Connector]]></title>
<link>http://narawen.wordpress.com/2009/10/23/no-such-host-is-known-warning-while-transferring-the-messages-using-narawen-inox-pop3-connector/</link>
<pubDate>Fri, 23 Oct 2009 15:11:47 +0000</pubDate>
<dc:creator>Narawen Software</dc:creator>
<guid>http://narawen.wordpress.com/2009/10/23/no-such-host-is-known-warning-while-transferring-the-messages-using-narawen-inox-pop3-connector/</guid>
<description><![CDATA[Symptoms Messages are not transferred. Following warning is reported into Event Log: Report for mess]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Symptoms</strong><br />
Messages are not transferred. Following warning is reported into Event Log:</p>
<blockquote><p>Report for message xxx of xxx from xxxx.</p>
<p>Delivery report:<br />
Status: Not completed<br />
xxx@xxx:<br />
Not delivered. <strong>No such host is known</strong>.</p></blockquote>
<p><strong>Cause</strong><br />
Narawen Inox POP3 Connector used reverse DNS lookup to retrieve mail host name. In some network configurations this query fails with error message &#8216;No such host is known&#8217;.</p>
<p><strong>Solution</strong><br />
Upgrade to the <a href="http://www.narawen.com/inox/get/">latest release</a> of Narawen Inox POP3 Connector.</p>
<p><strong>Applies to</strong><br />
Narawen Inox POP3 Connector 5.2 SR1 (2008-02-05)<br />
Narawen Inox POP3 Connector 5.2 (2007-11-14)<br />
Narawen Inox POP3 Connector 5.1 SR1 (2006-09-25)<br />
Narawen Inox POP3 Connector 5.1 (2006-06-14)<br />
Narawen Inox POP3 Connector 5.0 (2005-11-10)</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Pengertian DHCP]]></title>
<link>http://djembar.wordpress.com/2009/10/21/setting-dhcp/</link>
<pubDate>Wed, 21 Oct 2009 00:09:17 +0000</pubDate>
<dc:creator>djembar</dc:creator>
<guid>http://djembar.wordpress.com/2009/10/21/setting-dhcp/</guid>
<description><![CDATA[DHCP DHCP (Dynamic Host Configuration Protocol) adalah protokol yang berbasis arsitektur client/serv]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>DHCP</strong></p>
<p><strong>DHCP</strong> (<em>Dynamic Host Configuration Protocol</em>) adalah protokol yang berbasis arsitektur <a title="Client/server" href="http://id.wikipedia.org/wiki/Client/server">client/server</a> yang dipakai untuk memudahkan pengalokasian <a title="Alamat IP" href="http://id.wikipedia.org/wiki/Alamat_IP">alamat IP</a> dalam satu <a title="Jaringan komputer" href="http://id.wikipedia.org/wiki/Jaringan_komputer">jaringan</a> dan menyewakan alamat  IP tersebut  ke client pada periode waktu tertentu  . Sebuah jaringan lokal yang tidak menggunakan DHCP harus memberikan alamat IP kepada semua <a title="Komputer" href="http://id.wikipedia.org/wiki/Komputer">komputer</a> secara manual. Jika DHCP dipasang di jaringan lokal, maka semua <a title="Komputer" href="http://id.wikipedia.org/wiki/Komputer">komputer</a> yang tersambung di jaringan akan mendapatkan <a title="Alamat IP" href="http://id.wikipedia.org/wiki/Alamat_IP">alamat IP</a> secara otomatis dari <a title="Server" href="http://id.wikipedia.org/wiki/Server">server</a> DHCP. Selain alamat IP, banyak parameter jaringan yang dapat diberikan oleh DHCP, seperti <em>default gateway</em> dan <a title="DNS" href="http://id.wikipedia.org/wiki/DNS">DNS</a> server.</p>
<h2>Cara Kerja</h2>
<p>Karena DHCP merupakan sebuah protokol yang menggunakan arsitektur <a title="Client/server" href="http://id.wikipedia.org/wiki/Client/server">client/server</a>, maka dalam DHCP terdapat dua pihak yang terlibat, yakni <strong>DHCP Server</strong> dan <strong>DHCP Client</strong>.</p>
<ul>
<li><em>DHCP server</em> merupakan sebuah mesin yang menjalankan layanan yang dapat “menyewakan” alamat IP dan informasi TCP/IP lainnya kepada semua klien yang memintanya. Beberapa sistem operasi jaringan seperti <a title="Windows NT" href="http://id.wikipedia.org/wiki/Windows_NT">Windows NT Server</a>, <a title="Windows 2000" href="http://id.wikipedia.org/wiki/Windows_2000">Windows 2000 Server</a>, <a title="Windows Server 2003" href="http://id.wikipedia.org/wiki/Windows_Server_2003">Windows Server 2003</a>, atau <a title="GNU/Linux" href="http://id.wikipedia.org/wiki/GNU/Linux">GNU/Linux</a> memiliki layanan seperti ini.</li>
<li><em>DHCP client</em> merupakan mesin klien yang menjalankan perangkat lunak klien DHCP yang memungkinkan mereka untuk dapat berkomunikasi dengan DHCP Server. Sebagian besar sistem operasi klien jaringan (<a title="Windows NT" href="http://id.wikipedia.org/wiki/Windows_NT">Windows NT Workstation</a>, <a title="Windows 2000" href="http://id.wikipedia.org/wiki/Windows_2000">Windows 2000 Professional</a>, <a title="Windows XP" href="http://id.wikipedia.org/wiki/Windows_XP">Windows XP</a>, <a title="Windows Vista" href="http://id.wikipedia.org/wiki/Windows_Vista">Windows Vista</a>, atau <a title="GNU/Linux" href="http://id.wikipedia.org/wiki/GNU/Linux">GNU/Linux</a>) memiliki perangkat lunak seperti ini.</li>
</ul>
<p>DHCP server umumnya memiliki sekumpulan alamat yang diizinkan untuk didistribusikan kepada klien, yang disebut sebagai <strong>DHCP Pool</strong>. Setiap klien kemudian akan menyewa alamat IP dari DHCP Pool ini untuk waktu yang ditentukan oleh DHCP, biasanya hingga beberapa hari. Manakala waktu penyewaan alamat IP tersebut habis masanya, klien akan meminta kepada server untuk memberikan alamat IP yang baru atau memperpanjangnya.</p>
<p><em>DHCP Client</em> akan mencoba untuk mendapatkan “penyewaan” alamat IP dari sebuah DHCP server dalam proses empat langkah berikut:</p>
<ol>
<li><strong>DHCPDISCOVER</strong>: DHCP client akan menyebarkan request secara broadcast untuk mencari DHCP Server yang aktif.</li>
<li><strong>DHCPOFFER</strong>: Setelah DHCP Server mendengar broadcast dari DHCP Client, DHCP server kemudian menawarkan sebuah alamat kepada DHCP client.</li>
<li><strong>DHCPREQUEST</strong>: Client meminta DCHP server untuk menyewakan alamat IP dari salah satu alamat yang tersedia dalam DHCP Pool pada DHCP Server yang bersangkutan.</li>
<li><strong>DHCPACK</strong>: DHCP server akan merespons permintaan dari klien dengan mengirimkan paket <a title="Acknowledgment" href="http://id.wikipedia.org/wiki/Acknowledgment">acknowledgment</a>. Kemudian, DHCP Server akan menetapkan sebuah alamat (dan konfigurasi <a title="TCP/IP" href="http://id.wikipedia.org/wiki/TCP/IP">TCP/IP</a> lainnya) kepada klien, dan memperbarui basis data database miliknya. Klien selanjutnya akan memulai proses <em>binding</em> dengan <a title="Protocol stack (belum dibuat)" href="http://id.wikipedia.org/w/index.php?title=Protocol_stack&#38;action=edit&#38;redlink=1">tumpukan protokol</a> <a title="TCP/IP" href="http://id.wikipedia.org/wiki/TCP/IP">TCP/IP</a> dan karena telah memiliki alamat IP, klien pun dapat memulai komunikasi jaringan.</li>
</ol>
<p>Empat tahap di atas hanya berlaku bagi klien yang belum memiliki alamat. Untuk klien yang sebelumnya pernah meminta alamat kepada <em>DHCP server</em> yang sama, hanya tahap 3 dan tahap 4 yang dilakukan, yakni tahap pembaruan alamat (<em>address renewal</em>), yang jelas lebih cepat prosesnya.</p>
<p>Berbeda dengan sistem DNS yang terdistribusi, DHCP bersifat <em>stand-alone</em>, sehingga jika dalam sebuah jaringan terdapat beberapa DHCP server, basis data alamat IP dalam sebuah <em>DHCP Server</em> tidak akan direplikasi ke <em>DHCP server</em> lainnya. Hal ini dapat menjadi masalah jika konfigurasi antara dua <em>DHCP server</em> tersebut berbenturan, karena <a title="Protokol IP" href="http://id.wikipedia.org/wiki/Protokol_IP">protokol IP</a> tidak mengizinkan dua <em>host</em> memiliki alamat yang sama.</p>
<p>Selain dapat menyediakan alamat dinamis kepada klien, DHCP Server juga dapat menetapkan sebuah alamat statik kepada klien, sehingga alamat klien akan tetap dari waktu ke waktu.</p>
<p><strong>Catatan</strong>: DHCP server harus memiliki alamat IP yang statis.</p>
<p><a id="DHCP_Scope" name="DHCP_Scope"></a></p>
<h3>DHCP Scope</h3>
<p><em>DHCP Scope</em> adalah alamat-alamat IP yang dapat disewakan kepada <em>DHCP client</em>. Ini juga dapat dikonfigurasikan oleh seorang <a title="Administrator jaringan (belum dibuat)" href="http://id.wikipedia.org/w/index.php?title=Administrator_jaringan&#38;action=edit&#38;redlink=1">administrator</a> dengan menggunakan peralatan konfigurasi <em>DHCP server</em>. Biasanya, sebuah alamat IP disewakan dalam jangka waktu tertentu, yang disebut sebagai DHCP Lease, yang umumnya bernilai tiga hari. Informasi mengenai DHCP Scope dan alamat IP yang telah disewakan kemudian disimpan di dalam basis data DHCP dalam DHCP server. Nilai alamat-alamat IP yang dapat disewakan harus diambil dari DHCP Pool yang tersedia yang dialokasikan dalam jaringan. Kesalahan yang sering terjadi dalam konfigurasi DHCP Server adalah kesalahan dalam konfigurasi <em>DHCP Scope</em>.</p>
<p><a id="DHCP_Lease" name="DHCP_Lease"></a></p>
<h3>DHCP Lease</h3>
<p><em>DHCP Lease</em> adalah batas waktu penyewaan alamat IP yang diberikan kepada DHCP client oleh DHCP Server. Umumnya, hal ini dapat dikonfigurasikan sedemikian rupa oleh seorang administrator dengan menggunakan beberapa peralatan konfigurasi (dalam Windows NT Server dapat menggunakan <em>DHCP Manager</em> atau dalam Windows 2000 ke atas dapat menggunakan <a title="Microsoft Management Console" href="http://id.wikipedia.org/wiki/Microsoft_Management_Console">Microsoft Management Console</a> [MMC]). <em>DHCP Lease</em> juga sering disebut sebagai <em>Reservation</em>.</p>
<p><a id="DHCP_Options" name="DHCP_Options"></a></p>
<h3>DHCP Options</h3>
<p><em>DHCP Options</em> adalah tambahan pengaturan alamat IP yang diberikan oleh DHCP ke DHCP client. Ketika sebuah klien meminta alamat IP kepada server, server akan memberikan paling tidak sebuah alamat IP dan alamat <a title="Subnet mask" href="http://id.wikipedia.org/wiki/Subnet_mask">subnet jaringan</a>. DHCP server juga dapat dikonfigurasikan sedemikian rupa agar memberikan tambahan informasi kepada klien, yang tentunya dapat dilakukan oleh seorang administrator. DHCP Options ini dapat diaplikasikan kepada semua klien, <em>DHCP Scope</em> tertentu, atau kepada sebuah host tertentu dalam jaringan.</p>
<p>Dalam jaringan berbasis <a title="Windows NT" href="http://id.wikipedia.org/wiki/Windows_NT">Windows NT</a>, terdapat beberapa DHCP Option yang sering digunakan, yang dapat disusun dalam tabel berikut.</p>
<table style="height:209px;" border="0" width="684">
<tbody>
<tr>
<th>Nomor DHCP Option</th>
<th>Nama DHCP Option</th>
<th>Apa yang dikonfigurasikannya</th>
</tr>
<tr>
<td>003</td>
<td><em><a title="Router" href="http://id.wikipedia.org/wiki/Router">Router</a></em></td>
<td>Mengonfigurasikan <em>default</em> <em>gateway</em> dalam konfigurasi alamat IP. <em>Default gateway</em> merujuk kepada alamat <em><a title="Router" href="http://id.wikipedia.org/wiki/Router">router</a></em>.</td>
</tr>
<tr>
<td>006</td>
<td><a title="Domain Name System" href="http://id.wikipedia.org/wiki/Domain_Name_System">DNS Servers</a></td>
<td>Mengonfigurasikan <a title="Alamat IP" href="http://id.wikipedia.org/wiki/Alamat_IP">alamat IP</a> untuk DNS server</td>
</tr>
<tr>
<td>015</td>
<td>DNS Domain Name</td>
<td>Mengonfigurasikan alamat IP untuk DNS server yang menjadi “induk” dari DNS Server yang bersangkutan.</td>
</tr>
<tr>
<td>044</td>
<td><a title="NetBIOS" href="http://id.wikipedia.org/wiki/NetBIOS">NetBIOS over TCP/IP</a> Name Server</td>
<td>Mengonfigurasikan alamat IP dari <a title="WINS" href="http://id.wikipedia.org/wiki/WINS">WINS</a> Server</td>
</tr>
<tr>
<td>046</td>
<td><a title="NetBIOS" href="http://id.wikipedia.org/wiki/NetBIOS">NetBIOS over TCP/IP</a> Node Type</td>
<td>Mengonfigurasikan cara yang digunakan oleh klien untuk melakukan <a title="Nama NetBIOS" href="http://id.wikipedia.org/wiki/Nama_NetBIOS">resolusi nama NetBIOS</a>.</td>
</tr>
<tr>
<td>047</td>
<td><a title="NetBIOS" href="http://id.wikipedia.org/wiki/NetBIOS">NetBIOS over TCP/IP</a> Scope</td>
<td>Membatasi klien-klien NetBIOS agar hanya dapat berkomunikasi dengan klien lainnya yang memiliki alamat DH</td>
</tr>
</tbody>
</table>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Tftp Configuration In PXE-Linux]]></title>
<link>http://testmyskills.wordpress.com/2009/10/20/tftp-configuration-in-pxe-linux/</link>
<pubDate>Mon, 19 Oct 2009 20:23:30 +0000</pubDate>
<dc:creator>Gautam Anand</dc:creator>
<guid>http://testmyskills.wordpress.com/2009/10/20/tftp-configuration-in-pxe-linux/</guid>
<description><![CDATA[INSTALL &amp; CONFIGURE TFTP SERVER *tried on opensuse 11.1 &amp;ubuntu 9.04 1. INSTALL THE REQUIRED]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>INSTALL &#38; CONFIGURE TFTP SERVER</p>
<p>*tried on opensuse 11.1 &#38;ubuntu 9.04</p>
<p><strong><span style="text-decoration:underline;">1. INSTALL THE REQUIRED PACKAGES</span></strong></p>
<p>&#8211;get them from http://packages.ubuntu.com/search?arch=i386&#38;keywords=tftp (may vary if opensuse)</p>
<p>In CLI:</p>
<p>Sudo su -    (changes mode to super user) –user@ server –very important</p>
<p>: ~# apt-get install xinetd tftpd*   (will give the list of packages avaible &#38;supported) root@server</p>
<p>Download required package</p>
<p><strong><span style="text-decoration:underline;">2. Configure tFTP SERVER &#38; make it on</span></strong></p>
<p>: ~cd</p>
<p>: ~cd /</p>
<p>: ~cd /etc</p>
<p>: ~cd xinetd</p>
<p>: ~VI tftp</p>
<p>{Edit as follows:</p>
<p>Service tftp</p>
<p><strong>{</strong></p>
<p>Disable = no</p>
<p>Socket type = dgram</p>
<p>Protocol = udp</p>
<p><strong>Wait</strong> = <strong>yes</strong></p>
<p>User = root</p>
<p>Server = <strong>/</strong>usr<strong>/</strong>sbin<strong>/in</strong>.tftpd</p>
<p>server_args = -s <strong>/</strong>var<strong>/</strong>tftpboot</p>
<p><strong>}</strong></p>
<p>}</p>
<p>Esc+wq   (to write and save changes)</p>
<p>: ~ cd</p>
<p>: ~cd /</p>
<p>: ~cd /etc/init.d/xinetd restart (to restart xinetd daemon &#38; further view changes)</p>
<p><strong><span style="text-decoration:underline;">4. Check that your TFTP SERVER INSTALLED IS RUNNING </span></strong></p>
<p>: ~cd /</p>
<p>: ~netstat –uap (will show a dialog box containing the details of TFTP SERVER both running or not)</p>
<p><strong><span style="text-decoration:underline;">5. SETTING CONF IN DHCP SERVER (package dhcp server needed)</span></strong></p>
<p>: ~cd</p>
<p>: ~cd /</p>
<p>: ~cd /etc</p>
<p>: ~cd dhcp3</p>
<p>: ~vim dhcpd.conf</p>
<p>{Edit as follows:</p>
<pre>Option root-path              "192.168.0.112:/opt/ltsp-4.1/i386";
Filename                      "/lts/vmlinuz-2.4.26-ltsp-2";

Next-server                   192.168.0.254;

}
: ~cd /etc/init.d/dhcpd-server restart</pre>
<p><strong><span style="text-decoration:underline;">6. TFTP AS INTEGRAL PART OF  PXE BOOT SERVER </span></strong></p>
<p>We configured TFTP above as the trivial file transfer protocol (TFTP) is a UDP-based file transfer program that is frequently used to allow diskless hosts to boot over the network.</p>
<p>PXE-PREBOOT execution environment is a environment by which we can boot multiple computers through the network.</p>
<p>It used 2 servers: TFTP, DHCP, and HTTP (optional)</p>
<p>The process explains the pxe boot process:</p>
<p>- when the client computer try to boot with PXE, it first emits a DHCP request on the network to get an IP address.</p>
<p>-Then a DHCP server reply with a DHCP offer that contains a new IP address that was not already allocated and the IP address of the TFTP server .</p>
<ul>
<li>The client receives this DHCP offer and accept it. It connects to the TFTP server (it received its IP address in the previous stage) to get the boot loader files.</li>
</ul>
<ul>
<li>The TFTP server sends the boot loader files .</li>
</ul>
<ul>
<li>The client displays the pxeboot  prompt, and the user can choose the boot options. It then requests the TFTP server the kernel and initramfs files necessary to boot the system .</li>
</ul>
<ul>
<li>The TFTP server sends the kernel and initramfs files to the client .</li>
</ul>
<ul>
<li>The client boots on this kernel .</li>
</ul>
<ul>
<li>During its initialization the kernel makes a DHCP request again because of the ip=dhcp kernel boot parameters.</li>
</ul>
<ul>
<li>The client downloads the system  file except the kernel into RAM from an HTTP server. The IP address of this web server was sent to the client by the tftp server with the kernel boot options.</li>
</ul>
<ul>
<li>The client mounts system file and it can now complete the boot process.</li>
</ul>
<ul>
<li>At this stage the client holds all the files in memory and it does not require any boot server any more</li>
</ul>
<p>(System file refers here some OS BOOT file )</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[High-Availability DHCP]]></title>
<link>http://techsterity.wordpress.com/2009/10/19/high-availability-dhcp/</link>
<pubDate>Mon, 19 Oct 2009 02:29:10 +0000</pubDate>
<dc:creator>techsterity</dc:creator>
<guid>http://techsterity.wordpress.com/2009/10/19/high-availability-dhcp/</guid>
<description><![CDATA[The Dynamic Host Configuration Protocol (DHCP) is at the core of almost every enterprise network for]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>The Dynamic Host Configuration Protocol (DHCP) is at the core of almost every enterprise network forming a mission-critical service that is the cornerstone of reliable and simplifies workstation management. Yet, this service is usually configured as a single point of failure with little thought to high availability or disaster recovery. While longer lease durations are often used to provide some cushion in the event of unavailability, this should not be used as the only protection against system failure. Even in modestly-sized environment, the volume of lease requests and the risk associated with the failure of DHCP beg for a better solution.</p>
<h1>Technology Overview</h1>
<h2>What IS DHCP?</h2>
<p>When TCP/IP-based networks were first being developed and used, all network configuration was done manually. IP addresses, subnets and the like were all configured on the individual hosts and had to be manually tracked and documented. This worked for small businesses and controlled environments where constant attention by a single network administrator could be provided or where very tight controls on documentation could be achieved. As these networks grew and larger enterprises adopted the technology, the management burden grew to the point of being unmanageable – a centralized, enterprise solution is needed.</p>
<p>The Dynamic Host Configuration Protocol is the answer to this problem. DHCP provides a service to hosts on an enterprise network that allows the hosts to request and receive IP Addresses, subnet information, and other important configuration information. This also acts as a single enterprise database for this information where a network administrator can access all configuration assignments from one place.</p>
<p><span style="color:#17365d;font-size:13pt;"><strong>The Role of DHCP in the Enterprise<br />
</strong></span></p>
<p>In a large network, this database and the configuration tools surrounding the service act as a single point of management for all of these data. This means that wide-sweeping configuration changes can be controlled and effected from a single location further reducing the management burden on the network administration staff. Imagine trying to make a simple subnet change on 10,000 workstations by hand!</p>
<p>As an environment grows, the load on the DHCP servers will linearly increase and the addition of branch office sites can create the need for additional DHCP servers to manage these sites. While this handles the load, it introduces additional single points of failure to the enterprise.</p>
<p><span style="color:#17365d;font-size:13pt;"><strong>Finding DHCP Servers and Scopes<br />
</strong></span></p>
<p>When a workstation needs to find a DHCP server, it will send broadcast packets onto the network advertizing its need for a DHCP server. Any DHCP servers that hear this message will respond advertizing their ability to provide configuration information. The first acknowledgement that the Host receives will be the server that the workstation will use for DCHP in this transaction – all following responses from other DHCP servers are ignored. This is important, as we&#8217;ll be exploiting this behavior to provide highly-available DHCP service to the workstations.</p>
<p>For more information on the inner workings of the DHCP Protocol see:</p>
<ul>
<li><a href="http://www.faqs.org/rfcs/rfc2131.html">RFC 2131</a></li>
<li><a href="http://support.microsoft.com/kb/300429">Configuring DHCP (Microsoft KB 300429)</a></li>
<li><a href="http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/cnet/cncb_dhc_zbfl.mspx?mfr=true">How DHCP Communication Works</a></li>
</ul>
<p><span style="color:#17365d;font-size:13pt;"><strong>IP Helper-Address<br />
</strong></span></p>
<p>There are some limitations though. Since workstations that are requesting configuration information do not yet have valid IP addresses, they have to rely on network broadcasts to find a DHCP server, request an address, and secure a lease. This means that all of these communications occur on Layer-2 of the network and are not routable – at least not without some help from the network infrastructure. Most enterprise-class routers and switches can forward DHCP packets directly to a specified server in another network or subnet. This is called an IP Helper, or just helper address.</p>
<p>In the Cisco product line, this is specified at the network or subnet level as:</p>
<p>    <span style="font-family:Courier New;">IP Helper-address &#60;Destination IP Address&#62;<br />
</span></p>
<p><span style="color:#17365d;font-size:15pt;"><strong>The NAK Poisoning Issue<br />
</strong></span></p>
<p>When designing redundant or highly-available DHCP configurations, there is one additional hurdle that we must overcome – the problem of Negative Acknowledgement (NAK) Poisoning. The goal of installing additional DHCP servers is to provide uninterrupted service with a minimum of management overhead. It may seem intuitive that one would just want to configure a second DHCP server and give it a new scope so that workstations would be able to receive configuration information from either server. Unfortunately, this will result in occasional &#8220;quirkiness&#8221; where some workstations will not be assigned addresses when they try to renew. This leads to frustrating and difficult to track network problems.</p>
<p>When 50% of the license duration is up, the host will attempt to contact the server from which it originally received the license by renewing. If this is not available or unresponsive, the host will try again later. If 87.5% of the lease duration has expired, the host will broadcast on the network again and will bind to any DHCP server that responds to the request (rebinding). If this server cannot renew the lease, the workstation can end up in a state where is does not have a valid address and cannot participate in network communications.</p>
<p>Let&#8217;s look at what happens (translated into English for your enjoyment):</p>
<p style="margin-left:36pt;"><span style="color:#76923c;">(Client) &#8220;Hey DHCP Server, I need to renew my address. 87.5% of my lease time is up.&#8221; (Rebinding)<br />
</span><span style="color:#244061;">(Server) &#8220;I can certainly do that for you. What address would you like to renew.&#8221;</span><br />
<span style="color:#76923c;">(Client) &#8220;Well, I have been using 10.1.1.53/24. I&#8217;d like to keep using that one.&#8221;</span><br />
<span style="color:#244061;">(Server) &#8220;Hmm, I am authoritative for 10.1.2.0/24. Your address is not in my network. I can&#8217;t renew that one.&#8221; (This is the NAK)<br />
</span><span style="color:#76923c;">(Client) &#8220;I guess I can&#8217;t get an address…&#8221;</span></p>
<p>At this point, the workstation is a bit lost as to what to do. It will continue to use its IP address until the lease is up and will try to renew again later. In some cases, the workstation will find the original DHCP server before the address lease expires, but in some cases, the above communication will continue and the workstation will eventually stop communication when it no longer has a valid address.</p>
<p><span style="color:#17365d;font-size:13pt;"><strong>Avoiding the NAK<br />
</strong></span></p>
<p>The best way to overcome this is to avoid it altogether. Your DHCP servers don&#8217;t have to be able to provide addresses for all scopes, but they should be aware of the scopes so that they can serve those clients. To do this reciprocal exclusions should be used to divide the scope into pieces – let&#8217;s look at a 50/50 split for the 10.1.1.1/24 subnet as an example:</p>
<p style="text-align:center;"> <img class="aligncenter size-full wp-image-3" title="101909_0229_HighAvailab1.png" src="http://techsterity.wordpress.com/files/2009/10/101909_0229_highavailab1.png" alt="101909_0229_HighAvailab1.png" width="237" height="169" /></p>
<p><strong>Now the communication looks like this:<br />
</strong></p>
<p style="margin-left:36pt;"><span style="color:#76923c;">(Client) &#8220;Hey DHCP Server, I need to renew my address. 87.5% of my lease time is up.&#8221;<br />
</span><span style="color:#244061;">(Server 2) &#8220;I can certainly do that for you. What address would you like to renew.&#8221;</span><br />
<span style="color:#76923c;">(Client) &#8220;Well, I have been using 10.1.1.53/24. I&#8217;d like to keep using that one.&#8221;</span><br />
<span style="color:#244061;">(Server 2) &#8220;Hmm, I am authoritative for 10.1.0/24, but I have an exclusion on that address. How about 10.1.1.222?&#8221;<br />
</span><span style="color:#76923c;">(Client) &#8220;Thanks! 10.1.1.222 it is.</span></p>
<p><span style="color:#17365d;font-size:15pt;"><strong>High-Availability Scenarios<br />
</strong></span></p>
<p>Now we have all the pieces to pull together effective high-availability DHCP solutions to serve our enterprise. Just as there are a number of different network configurations, there are different configurations of DHCP that can be deployed to support them. It should also be noted that that using MSCS clusters to support DHCP isn&#8217;t an ideal solution as this tends to work inconsistently and is expensive.</p>
<p><span style="color:#17365d;font-size:13pt;"><strong>Centralized/ Redundant DHCP<br />
</strong></span></p>
<p>Centralizing DHCP can provide a single point of management for all of your workstation configuration changes and will allow a tightly-focused network administration staff control the whole environment from one point. This kind of configuration works best when you have a single large site or when you are willing to accept the single points of failure associated with your WAN links. Generally, though, this is usually done to provide on-segment redundancy for a single DHCP server.</p>
<p>On a network with only one subnet or router, you will be able to rely on the local network broadcasts to associate servers with workstations – whichever one happens to respond the fastest will become the DHCP server for that request. If you have multiple sites or subnets/ VLANs, you&#8217;ll need IP Helper Addresses pointing at both of the servers. Depending on the network hardware, you may find that the order that these are listed has an effect on the balance between the servers. (I have not found this to be the case on Cisco gear though.) In this configuration, you will want to start with a 50/50 split in your exclusions. Over time, you may find that you&#8217;ll have to adjust this split to compensate for differences in network speeds and hardware capacity.</p>
<p><strong>Setup Steps:</strong></p>
<ol>
<li>Plan and diagram out your scopes. You generally want to plan for at least a 50% growth margin for DHCP to accommodate network growth as well as a long-term outage of one of your DHCP servers.</li>
<li>Configure all scopes on both servers</li>
<li>Configure 50/50 reciprocal exclusions on both servers</li>
<li>Configure any manual reservations on both servers</li>
<li>Test failover by disabling DHCP on each server and forcing a renew on the client (IPConfig /release &#124; IPConfig /renew)</li>
</ol>
<p><span style="color:#17365d;font-size:13pt;"><strong>Distributed DHCP<img class="alignright size-full wp-image-4" title="101909_0229_HighAvailab2.png" src="http://techsterity.wordpress.com/files/2009/10/101909_0229_highavailab2.png" alt="101909_0229_HighAvailab2.png" width="293" height="286" /><br />
</strong></span></p>
<p>In larger environments with many sites, it is important to provide local DHCP services to clients for immediate response to lease requests, but also to provide a centralized backup that is able to server requests in the event that there is a problem with the local server. This removes the risk associated with relying on the WAN links for a mission-important service like DHCP.</p>
<p>In this scenario, we will be relying on the fact that the WAN link is much slower than the on-segment network. The router/ switch must be configured with an IP helper to route the DHCP request to the centralized server, but the time needed to make this round trip will be significantly longer than the time needed to serve the request on the local network.</p>
<p>The sample scenario to the right is a three-site scenario comprised as a main HQ site and two branch offices. In this configuration, the scopes have been configured in an 80/20 distribution with 80% of the available IP address leases residing on the local network and 20% across the WAN as failover. It should also be noted that since the backup DHCP server is the second local server at the HQ site, it is splitting the DHCP load 50/50.</p>
<p>Often, network engineers will choose to only have a single DHCP server per site, but having a separate server at the main site will allow the load to be controlled and avoids a single point of failure at the HQ site. This may seem a bit complicated, but is relatively simple to configure and allow you to build all additional sites against a common design pattern.</p>
<p>Finally, you should let the network design and WAN connectivity act as a guide for the designing of highly available DHCP configurations. If you are set up as a hub and spoke configuration, the solution will be slightly different that in you have a few main sites with spokes off of each. Just make sure that you are taking the entire topology into consideration as you plan the final solution.</p>
<p><strong>Setup Steps:</strong></p>
<ol>
<li>Plan and diagram out your scopes. You generally want to plan for at least a 50% growth margin for DHCP to accommodate network growth as well as a long-term outage of one of your DHCP servers.</li>
<li>Make sure you understand your network topology and plan your DHCP setup to avoid awkward network hops.</li>
<li>Configure the Primary DHCP servers for each site</li>
<li>Configure all scopes the backup DHCP server</li>
<li>Configure 80/20 reciprocal exclusions between the Branch Office DHCP servers and the Backup server.</li>
<li>Configure any manual reservations on both servers</li>
<li>Configure IP Helper-address commands on the routers/ switches at the branch offices.</li>
<li>Test failover by disabling DHCP on each server and forcing a renew on the client (IPConfig /release &#124; IPConfig /renew)</li>
</ol>
<p> </p>
<p><span style="color:#17365d;font-size:15pt;"><strong>Conclusion<br />
</strong></span></p>
<p>Configuring highly-available DHCP solutions is not complicated or tricky if you understand the technology and plan using your network topology as a guide. Whether it is just configuring a single site failover for DHCP or an enterprise-scoped failover topology, using reciprocal scopes and IP helper-addresses will ensure that DHCP services are always available. One last note, be sure that you are monitoring your DHCP services. Even with HA servers backing up your primary scopes, you want to be sure that you are notified of server problems when then happen so you can react to them quickly. The best failover scenario is one that you never have to use.</p>
<p><strong>Other Links:<br />
</strong></p>
<ul>
<li><a href="http://technet2.microsoft.com/WindowsServer/en/library/75cd0e1f-f464-40ea-ac88-2060e6769f331033.mspx">Microsoft DHCP Best Practices</a><strong><br />
</strong></li>
<li><a href="http://technet2.microsoft.com/WindowsServer/en/library/b681244f-9e06-48f6-ab67-050ff95307101033.mspx">Backing Up DHCP</a></li>
<li><a href="http://technet2.microsoft.com/WindowsServer/en/library/5df3d4e9-e846-413a-bd9a-99645ac580991033.mspx">Clustering DHCP</a></li>
</ul>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[DHCP - Should we use it?  Is there an alternative?]]></title>
<link>http://ittidbits.wordpress.com/2009/10/18/dhcp-should-we-use-it-is-there-an-alternative/</link>
<pubDate>Sun, 18 Oct 2009 23:24:26 +0000</pubDate>
<dc:creator>Michael Thompson</dc:creator>
<guid>http://ittidbits.wordpress.com/2009/10/18/dhcp-should-we-use-it-is-there-an-alternative/</guid>
<description><![CDATA[This prompt was posted in to my TCP/IP networking class.  This is my response that prompt (I encoura]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><em>This prompt was posted in to my TCP/IP networking class.  This is my response that prompt (I encourage comment):</em></p>
<p>DHCP is by far the most robust and most &#8220;dynamic&#8221;, if you&#8217;ll excuse the dynamic reference. There are alternatives, each with its pros and cons. Once such alternative is BOOTP which uses UDP and can only be used on IPv4 networks. BOOTP was used primarily for disk-less operating systems. I still remember using BOOTP to boot to a Novell network from floppy just before installing Windows 95 from a network operating system. Another alternative is AUTOIP. The advantage with AUTOIP is that you don&#8217;t need a DHCP server.</p>
<p>Should we use it? Well, it depends. Aside from the aforementioned &#8216;dynamic&#8217; protocols, the only other means to assign IP addresses would be to statically assign them. This is more &#8217;secure&#8217; than DHCP, but becomes a management nightmare. If you are running a network that needs to support 100&#8217;s+ users, then I would suggest DHCP. If it is a small office with a fixed number of workstations, a static IP environment might be best.</p>
<p>A few issue with DHCP. You will not want your servers getting IP addresses from DHCP. You either need to statically assign an IP to the server, or setup a DHCP reservation. This goes with printers as well. A DHCP reservation essentially &#8216;tells&#8217; the DHCP server to always assign the same IP address to a particular MAC.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Export DHCP leases to html using powershell]]></title>
<link>http://theadminguy.wordpress.com/2009/10/14/export-dhcp-leases-to-html-using-powershell/</link>
<pubDate>Wed, 14 Oct 2009 20:56:39 +0000</pubDate>
<dc:creator>The Admin Guy</dc:creator>
<guid>http://theadminguy.wordpress.com/2009/10/14/export-dhcp-leases-to-html-using-powershell/</guid>
<description><![CDATA[So I was in a need of having the active leases in my DHCP server exported to an web (html) page: On ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>So I was in a need of having the active leases in my DHCP server exported to an web (html) page:</p>
<p>On the surface this would not present a problem, however as there is only one way to read the DHCP leases, netsh.exe, and the output format of this app is somewhat … I also got the chance to to play with regular expressions (love those) and &#60;string&#62; –replace</p>
<p>Just so everyone can share the pain, this is the <strong>netsh </strong>command:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:f6313d1f-5723-4ab4-aac3-3a21200aea77" class="wlWriterEditableSmartContent">
<pre style="background-color:#C0C0C0;white-space:pre-wrap;overflow:auto;font-family:Verdana;font-size:9px;"><span style="color:#000000;">netsh dhcp server </span><span style="color:#000000;">1.1.1.1</span><span style="color:#000000;"> scope </span><span style="color:#000000;">1.1.1.0</span><span style="color:#000000;"> show clients </span><span style="color:#000000;">1</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>And this is the output:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:cc38d8c1-5908-4f01-b917-af42e995b108" class="wlWriterEditableSmartContent">
<pre style="background-color:#C0C0C0;white-space:pre-wrap;overflow:auto;font-family:Verdana;font-size:9px;"><span style="color:#000000;">Changed the current scope context to </span><span style="color:#000000;">1.1.1.0</span><span style="color:#000000;"> scope.

Type : N - NONE</span><span style="color:#000000;">,</span><span style="color:#000000;"> D - DHCP B - BOOTP</span><span style="color:#000000;">,</span><span style="color:#000000;"> U - UNSPECIFIED</span><span style="color:#000000;">,</span><span style="color:#000000;"> R - RESERVATION IP
</span><span style="color:#000000;">============================================================================================</span><span style="color:#000000;">
IP Address      - Subnet Mask    - Unique ID           - Lease Expires        -Type -Name
</span><span style="color:#000000;">============================================================================================</span><span style="color:#000000;">

</span><span style="color:#000000;">1.1.1.5</span><span style="color:#000000;">     - </span><span style="color:#000000;">255.255.0.0</span><span style="color:#000000;">    - </span><span style="color:#000000;">00</span><span style="color:#000000;">-ff-ff-ff-ff-ff   -</span><span style="color:#000000;">10</span><span style="color:#000000;">/</span><span style="color:#000000;">13</span><span style="color:#000000;">/</span><span style="color:#000000;">2009</span><span style="color:#000000;"> </span><span style="color:#000000;">12</span><span style="color:#000000;">:</span><span style="color:#000000;">33</span><span style="color:#000000;">:</span><span style="color:#000000;">16</span><span style="color:#000000;"> AM  -D-  host01.domain.com
:::
::: Lot of lines here
:::
</span><span style="color:#000000;">1.1.1.227</span><span style="color:#000000;">   - </span><span style="color:#000000;">255.255.0.0</span><span style="color:#000000;">    - </span><span style="color:#000000;">00</span><span style="color:#000000;">-ff-ff-ff-ff-ff   -</span><span style="color:#000000;">10</span><span style="color:#000000;">/</span><span style="color:#000000;">13</span><span style="color:#000000;">/</span><span style="color:#000000;">2009</span><span style="color:#000000;"> </span><span style="color:#000000;">12</span><span style="color:#000000;">:</span><span style="color:#000000;">42</span><span style="color:#000000;">:</span><span style="color:#000000;">06</span><span style="color:#000000;"> AM  -D-  host10.domain.com

No of Clients(version </span><span style="color:#000000;">4</span><span style="color:#000000;">): </span><span style="color:#000000;">355</span><span style="color:#000000;"> in the Scope : </span><span style="color:#000000;">1.1.1.0</span><span style="color:#000000;">.

Command completed successfully.
</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>So is there any logic here? Double tabs, single tabs from which I can split? No. only spaces…. and hyphens.. and useless data</p>
<p>As I only needed the IP and hostnames in a html table, this is what I ended up with in powershell:</p>
<div style="display:inline;float:none;margin:0;padding:0;" id="scid:57F11A72-B0E5-49c7-9094-E3A15BD5B5E6:6b0e98ec-5cd1-4918-9e88-a5cac5102673" class="wlWriterEditableSmartContent">
<pre style="background-color:#C0C0C0;white-space:pre-wrap;overflow:auto;font-family:Verdana;font-size:9px;"><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> (netsh dhcp server </span><span style="color:#000000;">1.1</span><span style="color:#000000;">.</span><span style="color:#000000;">1.1</span><span style="color:#000000;"> scope </span><span style="color:#000000;">1.1</span><span style="color:#000000;">.</span><span style="color:#000000;">1.0</span><span style="color:#000000;"> show clients </span><span style="color:#000000;">1</span><span style="color:#000000;">)

</span><span style="color:#800080;">$lines</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">@</span><span style="color:#000000;">()
</span><span style="color:#008000;">#</span><span style="color:#008000;">start by looking for lines where there is both IP and MAC present:</span><span style="color:#008000;">
</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;"> (</span><span style="color:#800080;">$i</span><span style="color:#000000;"> </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$a</span><span style="color:#000000;">){
    </span><span style="color:#0000FF;">if</span><span style="color:#000000;"> (</span><span style="color:#800080;">$i</span><span style="color:#000000;"> </span><span style="color:#008080;">-match</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}</span><span style="color:#800000;">"</span><span style="color:#000000;">){
        </span><span style="color:#0000FF;">If</span><span style="color:#000000;"> (</span><span style="color:#800080;">$i</span><span style="color:#000000;"> </span><span style="color:#008080;">-match</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">[0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9a-f]{2}[:-][0-9a-f]{2}</span><span style="color:#800000;">"</span><span style="color:#000000;">){
            </span><span style="color:#800080;">$lines</span><span style="color:#000000;"> </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$i</span><span style="color:#000000;">.Trim()
        }
    }
}
</span><span style="color:#800080;">$csvfile</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#000000;">@</span><span style="color:#000000;">()
</span><span style="color:#008000;">#</span><span style="color:#008000;">Trim the lines for uneeded stuff, leaving only IP, Subnet mask and hostname.</span><span style="color:#008000;">
</span><span style="color:#0000FF;">foreach</span><span style="color:#000000;"> (</span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#0000FF;">in</span><span style="color:#000000;"> </span><span style="color:#800080;">$lines</span><span style="color:#000000;">){
    </span><span style="color:#800080;">$Row</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">""</span><span style="color:#000000;"> </span><span style="color:#000000;">&#124;</span><span style="color:#000000;"> select Hostname,IP
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '[</span><span style="color:#000000;">0</span><span style="color:#000000;">-</span><span style="color:#000000;">9a</span><span style="color:#008080;">-f</span><span style="color:#000000;">]{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[:</span><span style="color:#000000;">-</span><span style="color:#000000;">][</span><span style="color:#000000;">0</span><span style="color:#000000;">-</span><span style="color:#000000;">9a</span><span style="color:#008080;">-f</span><span style="color:#000000;">]{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[:</span><span style="color:#000000;">-</span><span style="color:#000000;">][</span><span style="color:#000000;">0</span><span style="color:#000000;">-</span><span style="color:#000000;">9a</span><span style="color:#008080;">-f</span><span style="color:#000000;">]{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[:</span><span style="color:#000000;">-</span><span style="color:#000000;">][</span><span style="color:#000000;">0</span><span style="color:#000000;">-</span><span style="color:#000000;">9a</span><span style="color:#008080;">-f</span><span style="color:#000000;">]{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[:</span><span style="color:#000000;">-</span><span style="color:#000000;">][</span><span style="color:#000000;">0</span><span style="color:#000000;">-</span><span style="color:#000000;">9a</span><span style="color:#008080;">-f</span><span style="color:#000000;">]{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[:</span><span style="color:#000000;">-</span><span style="color:#000000;">][</span><span style="color:#000000;">0</span><span style="color:#000000;">-</span><span style="color:#000000;">9a</span><span style="color:#008080;">-f</span><span style="color:#000000;">]{</span><span style="color:#000000;">2</span><span style="color:#000000;">}', ''
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> ' </span><span style="color:#000000;">-</span><span style="color:#000000;"> ',','
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '\s{</span><span style="color:#000000;">4</span><span style="color:#000000;">,}',''
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '</span><span style="color:#000000;">--</span><span style="color:#000000;">','</span><span style="color:#000000;">-</span><span style="color:#000000;">'
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '</span><span style="color:#000000;">-</span><span style="color:#000000;">D</span><span style="color:#000000;">-</span><span style="color:#000000;">','</span><span style="color:#000000;">-</span><span style="color:#000000;">'
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '[</span><span style="color:#000000;">-</span><span style="color:#000000;">]{</span><span style="color:#000000;">1</span><span style="color:#000000;">}\d{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[</span><span style="color:#000000;">/</span><span style="color:#000000;">]\d{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[</span><span style="color:#000000;">/</span><span style="color:#000000;">]\d{</span><span style="color:#000000;">4</span><span style="color:#000000;">}',''
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '\d{</span><span style="color:#000000;">1</span><span style="color:#000000;">,</span><span style="color:#000000;">2</span><span style="color:#000000;">}[:]\d{</span><span style="color:#000000;">2</span><span style="color:#000000;">}[:]\d{</span><span style="color:#000000;">2</span><span style="color:#000000;">}',''
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> 'AM',''
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> 'PM',''
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '\s{</span><span style="color:#000000;">1</span><span style="color:#000000;">}',''
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">`n</span><span style="color:#800000;">"</span><span style="color:#000000;">
    </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$l</span><span style="color:#000000;"> </span><span style="color:#008080;">-replace</span><span style="color:#000000;"> '[,][</span><span style="color:#000000;">-</span><span style="color:#000000;">]',','
    </span><span style="color:#800080;">$Row</span><span style="color:#000000;">.IP </span><span style="color:#000000;">=</span><span style="color:#000000;"> (</span><span style="color:#800080;">$l</span><span style="color:#000000;">.Split(</span><span style="color:#800000;">"</span><span style="color:#800000;">,</span><span style="color:#800000;">"</span><span style="color:#000000;">))[</span><span style="color:#000000;">0</span><span style="color:#000000;">]
    </span><span style="color:#008000;">#</span><span style="color:#008000;">Subnet mask not used, but maybe in a later version, so let's leave it in there:</span><span style="color:#008000;">
</span><span style="color:#000000;">    </span><span style="color:#008000;">#</span><span style="color:#008000;">$Row.SubNetMask = ($l.Split(","))[1]</span><span style="color:#008000;">
</span><span style="color:#000000;">    </span><span style="color:#800080;">$Row</span><span style="color:#000000;">.Hostname </span><span style="color:#000000;">=</span><span style="color:#000000;"> (</span><span style="color:#800080;">$l</span><span style="color:#000000;">.Split(</span><span style="color:#800000;">"</span><span style="color:#800000;">,</span><span style="color:#800000;">"</span><span style="color:#000000;">))[</span><span style="color:#000000;">2</span><span style="color:#000000;">]
    </span><span style="color:#800080;">$csvfile</span><span style="color:#000000;"> </span><span style="color:#000000;">+=</span><span style="color:#000000;"> </span><span style="color:#800080;">$Row</span><span style="color:#000000;">
}

</span><span style="color:#008000;">#</span><span style="color:#008000;">let create a csv file, in case we need i later..</span><span style="color:#008000;">
</span><span style="color:#800080;">$csvfile</span><span style="color:#000000;"> </span><span style="color:#000000;">&#124;</span><span style="color:#000000;"> sort</span><span style="color:#000000;">-</span><span style="color:#000000;">object Hostname </span><span style="color:#000000;">&#124;</span><span style="color:#000000;"> Export</span><span style="color:#000000;">-</span><span style="color:#000000;">Csv </span><span style="color:#800000;">"</span><span style="color:#800000;">Out_List.csv</span><span style="color:#800000;">"</span><span style="color:#000000;">

</span><span style="color:#008000;">#</span><span style="color:#008000;">Create the HTML formating</span><span style="color:#008000;">
</span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">&#60;style&#62;</span><span style="color:#800000;">"</span><span style="color:#000000;">
</span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">body {margin: 10px; width: 600px; font-family:arial; font-size: 12px;}</span><span style="color:#800000;">"</span><span style="color:#000000;">
</span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}</span><span style="color:#800000;">"</span><span style="color:#000000;">
</span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">TH{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: rgb(179,179,179);align='left';}</span><span style="color:#800000;">"</span><span style="color:#000000;">
</span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">TD{border-width: 1px;padding: 2px;border-style: solid;border-color: black;background-color: white;}</span><span style="color:#800000;">"</span><span style="color:#000000;">
</span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">=</span><span style="color:#000000;"> </span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">+</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">&#60;/style&#62;</span><span style="color:#800000;">"</span><span style="color:#000000;">

</span><span style="color:#008000;">#</span><span style="color:#008000;">And create HTML file...</span><span style="color:#008000;">
</span><span style="color:#000000;">Write</span><span style="color:#000000;">-</span><span style="color:#000000;">Host </span><span style="color:#800000;">"</span><span style="color:#800000;">Please contact theadmin@void.null for support</span><span style="color:#800000;">"</span><span style="color:#000000;"> </span><span style="color:#000000;">&#124;</span><span style="color:#000000;"> Out</span><span style="color:#008080;">-File</span><span style="color:#000000;"> </span><span style="color:#800000;">"</span><span style="color:#800000;">DHCPLeases.html</span><span style="color:#800000;">"</span><span style="color:#000000;">
</span><span style="color:#800080;">$csvfile</span><span style="color:#000000;"> </span><span style="color:#000000;">&#124;</span><span style="color:#000000;"> sort</span><span style="color:#000000;">-</span><span style="color:#000000;">object Hostname </span><span style="color:#000000;">&#124;</span><span style="color:#000000;"> ConvertTo</span><span style="color:#000000;">-</span><span style="color:#000000;">HTML </span><span style="color:#000000;">-</span><span style="color:#000000;">head </span><span style="color:#800080;">$a</span><span style="color:#000000;"> </span><span style="color:#000000;">&#124;</span><span style="color:#000000;"> Out</span><span style="color:#008080;">-File</span><span style="color:#000000;"> </span><span style="color:#000000;">-</span><span style="color:#000000;">Append </span><span style="color:#800000;">"</span><span style="color:#800000;">DHCPLeases.html</span><span style="color:#800000;">"</span></pre>
<p><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --></div>
<p>The resulting output, then looks like this:</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td valign="top" width="200">HostName</td>
<td valign="top" width="200">IP</td>
</tr>
<tr>
<td valign="top" width="200">host01.domain.com</td>
<td valign="top" width="200">1.1.1.5</td>
</tr>
<tr>
<td valign="top" width="200">host10.domain.com</td>
<td valign="top" width="200">1.1.1.227</td>
</tr>
</tbody>
</table>
<p>which is what I wanted. Another great job by powershell.</p>
<p>I hope that this might prove useful to someone else, and a my thanks goes out to the powershell community and all the people who might recognize some of the code, no one mentioned, no one forgotten.</p>
<p>Please do drop a line if you have comments or suggestions to how the script could be optimized. Life is a learning curve and I love climbing <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[HowTo: backup automatico con dhcpd]]></title>
<link>http://idl3.wordpress.com/2009/10/14/howto-backup-automatico-con-dhcpd/</link>
<pubDate>Wed, 14 Oct 2009 05:13:36 +0000</pubDate>
<dc:creator>idl3</dc:creator>
<guid>http://idl3.wordpress.com/2009/10/14/howto-backup-automatico-con-dhcpd/</guid>
<description><![CDATA[Sui sistemi GNU/Linux esistono vari modi per fare i backup, per mettere al sicuro i nostri dati in c]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Sui sistemi GNU/Linux esistono <strong>vari modi per fare i backup</strong>, per mettere al sicuro i nostri dati in caso di eventi (piu&#8217; o meno) catastrofici. Uno di questi sistemi e&#8217; il backup di <em>host</em> GNU/Linux attraverso <a href="http://en.wikipedia.org/wiki/Dhcpd">dhcpd</a>. Il tutto con alcuni semplici <strong>script</strong> e <strong>dhcp3</strong>. Vediamo passo passo come fare [<a href="#bacd1">1</a>]<a name="bacda">.</a></p>
<p><img src="http://idl3.wordpress.com/files/2009/10/backup.jpg?w=150" alt="backup" title="backup" width="150" height="111" class="alignleft size-thumbnail wp-image-418" />Dobbiamo agire sia sul server sia sul (o sui) <em>client</em>. Cominciamo dal <strong>server</strong>.</p>
<p><strong>SERVER</strong> &#8211; Dobbiamo <strong>configurare dhcp3</strong>, apriamo dunque il file di configurazione:<br />
<code># nano /etc/dhcp3/dhcps.conf</code><br />
e <strong>aggiungiamo</strong> queste righe:</p>
<pre>---8&#60;---
on commit {
  execute (
    "/etc/dhcp3/startbackup.sh",
    "start",
    binary-to-ascii(10,8,".",leased-address)
  );
}
---8&#60;---</pre>
<p>Queste righe richiamano uno <strong>script bash</strong> che ancora non esiste, creiamolo dunque:<br />
<code># vi /etc/dhcp3/startbackup.sh</code><br />
e questo e&#8217; il contenuto:</p>
<pre><tt>---8&#60;---
<i><font color="#9A1900">#!/bin/bash</font></i>
<b><font color="#0000FF">case</font></b> <font color="#FF0000">"$1"</font> <b><font color="#0000FF">in</font></b>
start<font color="#990000">)</font>
  sudo -u backup /etc/dhcp3/rsync<font color="#990000">.</font>sh $<font color="#993399">2</font>
<font color="#990000">;;</font>
<font color="#990000">*)</font>
<font color="#990000">;;</font>
<b><font color="#0000FF">esac</font></b>
<b><font color="#0000FF">exit</font></b> <font color="#993399">0</font>

---8&#60;---</tt></pre>
<p>In questo primo script se ne richiama un secondo, creiamo dunque anche l&#8217;altro:<br />
<code># vi /etc/dhcp3/rsync.sh</code><br />
con questo contenuto:</p>
<pre><tt>---8&#60;---
<i><font color="#9A1900">#!/bin/bash</font></i>
nohup rsync -azuvb backup@$<font color="#993399">1</font><font color="#990000">:</font>/home /backup<font color="#990000">/</font>$<font color="#993399">1</font> <font color="#990000">&#38;</font>

---8&#60;---</tt></pre>
<p>Non ci resta che <strong>creare la directory che conterra&#8217; i backup</strong>:<br />
<code># mkdir /backup</code></p>
<p>Aggiungiamo l&#8217;<strong>utente</strong> <em>backup</em>:<br />
<code># useradd backup</code><br />
e diciamo (con <acronym title="CHange OWNer">chown</acronym>) al sistema di assegnare la directory backup all&#8217;utente backup:<br />
<code># chown backup:backup /backup</code></p>
<p>Creiamo la <strong>chiave <acronym title="Secure SHell">SSH</acronym></strong> (pubblica e privata):<br />
<code>$ ssh-keygen -t rsa</code><br />
e copiamo la <strong>chiave pubblica</strong> in tutti gli <em>host</em> di cui vogliamo fare il backup:<br />
<code>$ ssh-copy-id -i ~/.ssh/id_rsa backup@[host]</code><br />
al posto di <em>host</em> va messo l&#8217;<strong>hostname</strong> o l&#8217;<strong>indirizzo IP</strong>.</p>
<p>Possiamo <strong>configurare sudo</strong>:<br />
<code>sudo visudo</code><br />
cosi&#8217;:</p>
<pre>---8&#60;---
dhcpd ALL=(backup)NOPASSWD: /etc/dhcp3/startbackup.sh, /etc/dhcp3/rsync.sh
---8&#60;---</pre>
<p>Cambiamo anche <strong>AppArmor</strong>:<br />
<code># vi /etc/apparmor.d/usr.sbin.dhcpd3</code><br />
la parte che contiene queste righe:</p>
<pre>---8&#60;---
/etc/dhcp3/ r,
/etc/dhcp3/** r,
/etc/dhcpd.conf r,
/etc/dhcpd_ldap.conf r,
---8&#60;---</pre>
<p>va <strong>sostituita</strong> con queste:</p>
<pre>---8&#60;---
/etc/dhcp3/ r,
/etc/dhcp3/** r,
/etc/dhcp3/startbackup.sh Uxr,
/etc/dhcpd.conf r,
/etc/dhcpd_ldap.conf r,
---8&#60;---</pre>
<p><strong>Riavviamo</strong> AppArmor e dhcp3:<br />
<code># /etc/init.d/apparmor restart</code><br />
<code># /etc/init.d/dhcp3-server restart</code></p>
<p><img src="http://idl3.wordpress.com/files/2009/10/backup-dati.jpg?w=150" alt="backup-dati" title="backup-dati" width="150" height="113" class="alignright size-thumbnail wp-image-419" />E qui si concludono le operazioni da effettuare sul server. Ora <strong>dobbiamo agire sui client</strong>.</p>
<p><strong>CLIENT</strong> &#8211; Ahhiungiamo dunque l&#8217;utente backup:<br />
<code># useradd backup</code><br />
<code># usermod -G root</code></p>
<p>Abbiamo <strong>finito</strong>, il sistema e&#8217; pronto.</p>
<p>Proviamo dunque a vedere se tutto funziona correttamente, <strong>facciamo un backup</strong> di prova:<br />
<code>sudo dhclient [interface]</code><br />
al posto di <em>interface</em> dovete inserire l&#8217;interfaccia che ci interessa (<em>eth0</em> ad esempio).</p>
<p>Finita la procedura nel <strong>server</strong> avremo un <strong>backup del client</strong>.</p>
<p>[<a name="bacd1">1</a>] Scopiazzato da: <a href="http://www.howtoforge.com/automated-backups-using-dhcpd-on-ubuntu">Automated Backups Using dhcpd On Ubuntu</a>. [<a href="#bacda">^</a>]</p>
<hr />
<p style="text-align:right;"><a href="#content" title="torna su">[^] torna su</a>&#160;&#124;&#160;<a href="http://postli.com/post?u=http://idl3.wordpress.com/2009/10/14/howto-backup-automatico-con-dhcpd/&#38;t=HowTo: backup automatico con dhcpd" title="Post to Postli" style="color:blue;text-decoration:none;">post<span style="color:orange;">&#60;</span><span style="color:red;">li</span><span style="color:orange;">&#62;</span></a>&#160;&#124;&#160;<a href="http://www.wikio.it/vote?url=http://idl3.wordpress.com/2009/10/14/howto-backup-automatico-con-dhcpd/" target="_blank"><img src="http://www.wikio.it/shared/img/vote/wikio2.gif" border="0" /></a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Finding your true computer name on the network]]></title>
<link>http://saherneklawy.wordpress.com/2009/10/13/finding-your-true-computer-name-on-the-network/</link>
<pubDate>Tue, 13 Oct 2009 18:57:35 +0000</pubDate>
<dc:creator>saherneklawy</dc:creator>
<guid>http://saherneklawy.wordpress.com/2009/10/13/finding-your-true-computer-name-on-the-network/</guid>
<description><![CDATA[In many cases, it is essential to find the name of a computer over a local network. Such fits well w]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>In many cases, it is essential to find the name of a computer over a local network. Such fits well when on a DHCP network, and need to always reach a certain machine.</p>
<p>An easy way to obtain this data, is via the python <a href="http://docs.python.org/library/socket.html">socket</a> library. The ip of the desired machine is obtained via <code>ipconfig</code> (windows) or <code>ifconfig</code> (linux). For the sake of the example, assume that the ip from the DHCP network is 10.0.0.5.</p>
<p>In the python interpretor, execute the following code:<br />
<code><br />
import socket<br />
true_name = socket.gethostbyaddr("10.0.0.5")[0]<br />
print true_name<br />
</code></p>
<p>The code above prints the true name of the machine, as seen on the network. This name is not always the machine name. For example the machine name could be &#8220;saher-desktop&#8221;, while the name on the network is &#8220;saher-desktop.local&#8221;.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Configuring Multiple Gateways]]></title>
<link>http://nogitech.wordpress.com/2009/10/09/configuring-multiple-gateways/</link>
<pubDate>Fri, 09 Oct 2009 05:04:48 +0000</pubDate>
<dc:creator>nogi</dc:creator>
<guid>http://nogitech.wordpress.com/2009/10/09/configuring-multiple-gateways/</guid>
<description><![CDATA[This post will provide fault tolerance in case of a router outage and continuously connected on inte]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>This post will provide fault tolerance in case of a router outage and continuously connected on internet, you can choose to configure Windows computers so that they can use multiple default gateways in a multiple router and ISP environment. When you assign multiple gateways, Windows uses the gateway metric to determine which gateway is used. The gateway with the lowest metric indicates the routing cost of using gateway. The gateway with the lowest routing cost, or metric, is used first. If the computer can&#8217;t communicate with this gateway, Windows tries to use the gateway with the next lowest metric.</p>
<p>The best way to configure multiple gateways depends on the configuration of your network. If your organization&#8217;s companies computers use DHCP, you&#8217;ll probably want to configure the additional gateways through settings on the DHCP server. If the computers use static IP address or you want to set gateways specifically, assign them by following these steps:</p>
<p>1. Click <strong>Start</strong> and then click <strong>Network</strong>. In Network Explorer, click <strong>Network and Sharing Center</strong> on the toolbar.</p>
<p>2. In the Network and Sharing Center, click <strong>Manage Network Connections</strong>. in Network Connections, right click the connection you want to work with and then select <strong>Properties</strong>.</p>
<p>3. Double-click <strong>IPv4</strong> or <strong>IPv6</strong> as appropriate for the type of IP address you are configuring.</p>
<p>4. Click <strong>Advanced</strong> to open the Advance TCP/IP Settings dialog box.</p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-337" title="advanced" src="http://nogitech.wordpress.com/files/2009/10/advanced.jpg" alt="advanced" width="333" height="370" /></p>
<p>5. The Default Gateways panel shows the current gateways that have been manually configured (if any). You can enter additional default gateways as necessary. Click <strong>Add</strong> and then type gateway address in the Gateway text box.</p>
<p>6. By default, Windows automatically assigns a metric to the gateway. You can also assign the metric manually. To do this, clear the <strong>Automatic Metric</strong> check box and then enter a metric in the text box provided.</p>
<p>7. Click <strong>Add</strong> and then repeat 5-7 for each gateway you want to add.</p>
<p style="text-align:center;"><img class="aligncenter size-full wp-image-345" title="add" src="http://nogitech.wordpress.com/files/2009/10/add.jpg" alt="add" width="330" height="394" /></p>
<p style="text-align:center;">
<p>8. Click <strong>Ok</strong> and then click <strong>Close</strong>.</p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:559px;width:1px;height:1px;"><img src="/DOCUME%7E1/admin/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /></div>
</div>]]></content:encoded>
</item>

</channel>
</rss>
