<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4585082652082174732</id><updated>2011-04-21T12:02:39.185-07:00</updated><title type='text'>el.samoun.sna2008@gmail.com</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-7632411948239100421</id><published>2008-05-21T06:08:00.000-07:00</published><updated>2008-05-21T06:35:03.825-07:00</updated><title type='text'>Replicate OpenLDAP Servers</title><content type='html'>In this exercise, you configure LDAP replication with your neighbor.&lt;br /&gt;You use a new LDAP entry&lt;br /&gt;“uid=replicator,dc=digitalairlines,dc=com” with password “novell”&lt;br /&gt;for replication.&lt;br /&gt;In part IV, you change the surname of user kbailey from “Bailey” to&lt;br /&gt;“Smith”. You do this on the master to see if the replication works correct.&lt;br /&gt;Do the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;■ Part I - Add the Replicator DN to the Master’s LDAP Directory&lt;br /&gt;■ Part II - Configure the LDAP Master Server&lt;br /&gt;■ Part III - Configure the LDAP Client Server&lt;br /&gt;■ Part IV - Copy the Database and Start the Servers&lt;br /&gt;■ Part V - Test Replication&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part I - Add the Replicator DN to the Master’s LDAP Directory&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1. To add the new LDAP entry on the master create a new LDIF file by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;vi replicator.ldif&lt;br /&gt;&lt;/span&gt;2. Enter the following lines&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;dn: uid=replicator,dc=digitalairlines,dc=com&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;objectClass: inetOrgPerson&lt;br /&gt;uid: replicator&lt;br /&gt;cn: LDAP Replicator&lt;br /&gt;sn: Replicator&lt;br /&gt;&lt;/span&gt;You also can copy the file exercises/section_3/replicator.ldif from the Course DVD.&lt;br /&gt;3. Save the file and exit by entering &lt;span style="color:#ff0000;"&gt;:wq&lt;/span&gt;.&lt;br /&gt;4. Add the entry to the LDAP directory by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldapadd -x -D&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;"cn=Administrator,dc=digitalairlines,dc=com" -W -f&lt;br /&gt;replicator.ldif&lt;/span&gt;&lt;br /&gt;5. To enter a password for the replicator enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldappasswd -x -D&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;"cn=Administrator,dc=digitalairlines,dc=com" -W -S&lt;br /&gt;"uid=replicator,dc=digitalairlines,dc=com"&lt;/span&gt;&lt;br /&gt;6. Enter &lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt; twice as new password.&lt;br /&gt;7. Enter the administrator password (also &lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;) to set the password.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part II - Configure the LDAP Master Server&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1. On the master stop your LDAP server by entering &lt;span style="color:#ff0000;"&gt;rcldap stop&lt;/span&gt;.&lt;br /&gt;2. Open the file /etc/openldap/slapd.conf by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;vi /etc/openldap/slapd.conf&lt;/span&gt;&lt;br /&gt;3. Specify a file where the changes in the LDAP directory are stored by adding the line&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;replogfile /var/lib/ldap/master-slapd.replog&lt;br /&gt;&lt;/span&gt;4. Specify the replication host (all in one line)&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;replica uri=ldap://slave_ip:389&lt;br /&gt;binddn=”uid=replicator,dc=digitalairlines,dc=com”&lt;br /&gt;bindmethod=simple credentials=novell&lt;br /&gt;&lt;/span&gt;slave_ip is the IP address of your neighbor’s computer.&lt;br /&gt;5. Save the file and exit by entering &lt;span style="color:#ff0000;"&gt;:wq&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part III - Configure the LDAP Client Server&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1. Stop your LDAP server by entering &lt;span style="color:#ff0000;"&gt;rcldap stop&lt;/span&gt;.&lt;br /&gt;2. Open the file /etc/openldap/slapd.conf by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;vi /etc/openldap/slapd.conf&lt;/span&gt;&lt;br /&gt;3. Add the following lines&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;updatedn=”uid=replicator,dc=digitalairlines,dc=com”&lt;br /&gt;updateref="ldap://master_ip"&lt;/span&gt;&lt;br /&gt;master_ip is the IP address of your neighbor’s computer.&lt;br /&gt;4. Change the following access rule&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;access to *&lt;br /&gt;by * read&lt;br /&gt;to&lt;br /&gt;access to *&lt;br /&gt;by dn=”uid=replicator,dc=digitalairlines,dc=com” write&lt;br /&gt;by * read&lt;br /&gt;&lt;/span&gt;5. Save the file and exit by entering &lt;span style="color:#ff0000;"&gt;:wq&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part IV - Copy the Database and Start the Servers&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1. On the master server enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;scp -r /var/lib/ldap/ host:/var/lib/ldap/&lt;br /&gt;&lt;/span&gt;Replace host by the host name of the slave server.&lt;br /&gt;2. Enter &lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt; when prompted for a password.&lt;br /&gt;3. On both servers start the slapd by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcldap start&lt;/span&gt;.&lt;br /&gt;4. On the master server start the slurpd by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcslurpd start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Part V - Test Replication&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;1. To change some user information on the master, create a new&lt;br /&gt;LDIF file by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;vi change.ldif&lt;/span&gt;&lt;br /&gt;2. Enter the following lines&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;dn: uid=kbailey,ou=people,dc=digitalairlines,dc=com&lt;br /&gt;cn: Kate Smith&lt;br /&gt;sn: Smith&lt;/span&gt;&lt;br /&gt;You also can copy the file exercises/section_3/change.ldif from the Course DVD.&lt;br /&gt;3. Save the file and exit by entering&lt;span style="color:#ff0000;"&gt; :wq&lt;/span&gt;.&lt;br /&gt;4. To change the LDAP information, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldapmodify -x -D&lt;br /&gt;“cn=Administrator,dc=digitalairlines,dc=com” -W -f&lt;br /&gt;change.ldif&lt;/span&gt;&lt;br /&gt;5. On the master and slave enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldapsearch -x “uid=kbailey”&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-7632411948239100421?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/7632411948239100421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=7632411948239100421' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/7632411948239100421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/7632411948239100421'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/05/replicate-openldap-servers.html' title='Replicate OpenLDAP Servers'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-3442733228337556988</id><published>2008-05-21T06:00:00.000-07:00</published><updated>2008-05-21T06:07:59.955-07:00</updated><title type='text'>Set up an LDAP User Database</title><content type='html'>In this exercise, you create a password (“novell”) for user kbailey.&lt;br /&gt;In part II you enable an automatically creation of the home directory if a user logs in using ssh.&lt;br /&gt;In part III you login as user kbailey to test your configurations.&lt;br /&gt;Do the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;■ Part I - Set LDAP User Password&lt;br /&gt;■ Part II - Configure Automatically Home Directory Creation&lt;br /&gt;■ Part III - Login as kbailey via SSH&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part I - Set LDAP User Password&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1. Use the command &lt;span style="color:#ff0000;"&gt;getent&lt;/span&gt; (Get Entry) to test whether the LDAP database is used by the glibc. Enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;getent passwd&lt;br /&gt;&lt;/span&gt;The users in /etc/passwd and the LDAP database should be&lt;br /&gt;listed. The end of the output may look similar to this:&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash&lt;br /&gt;wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false&lt;br /&gt;geeko:x:1000:100:Geeko Chameleon:/home/geeko:/bin/bash&lt;br /&gt;kbailey:*:1010:100:Kate Bailey:/home/kbailey:/bin/bash&lt;br /&gt;&lt;br /&gt;2. To set the password for the user kbailey, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldappasswd -x -D&lt;br /&gt;"cn=Administrator,dc=digitalairlines,dc=com" -W -S&lt;br /&gt;"uid=kbailey,ou=people,dc=digitalairlines,dc=com"&lt;br /&gt;&lt;/span&gt;3. Enter &lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt; twice as the new password.&lt;br /&gt;4. Enter the administrator password (also &lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;) to set the password.&lt;br /&gt;5. Search for your own LDAP entry by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldapsearch -x -D&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;"cn=Administrator,dc=digitalairlines,dc=com" -x&lt;br /&gt;“uid=kbailey” -W&lt;br /&gt;&lt;/span&gt;6. Enter the administrator password (&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;). Your encrypted user&lt;br /&gt;password should be listed.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Part II - Configure Automatically Home Directory Creation&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;1. Open the file /etc/pam.d/sshd with vi by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;vi /etc/pam.d/sshd&lt;/span&gt;&lt;br /&gt;2. Add the following line&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;session required pam_mkhomedir.so skel=/etc/skel/&lt;br /&gt;umask=0022&lt;br /&gt;&lt;/span&gt;3. Save the file and exit by entering &lt;span style="color:#ff0000;"&gt;:wq&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part III - Login as kbailey via SSH&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;1. Login as user kbailey by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ssh -l kbailey localhost&lt;/span&gt;&lt;br /&gt;2. Enter &lt;span style="color:#ff0000;"&gt;yes&lt;/span&gt; to modify the list of known hosts.&lt;br /&gt;3. Enter the password of kbailey (&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;).&lt;br /&gt;The home directory should be created.&lt;br /&gt;4. Enter &lt;span style="color:#ff0000;"&gt;exit&lt;/span&gt; to log out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-3442733228337556988?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/3442733228337556988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=3442733228337556988' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/3442733228337556988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/3442733228337556988'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/05/set-up-ldap-user-database.html' title='Set up an LDAP User Database'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-3279885041956075032</id><published>2008-05-21T05:29:00.000-07:00</published><updated>2008-05-21T05:59:53.150-07:00</updated><title type='text'>Add Users to the LDAP Directory</title><content type='html'>In this exercise, you add a user with the following information to your LDAP directory:&lt;br /&gt;&lt;br /&gt;Information Value&lt;br /&gt;Login &lt;span style="color:#ff0000;"&gt;kbailey&lt;/span&gt;&lt;br /&gt;Name &lt;span style="color:#ff0000;"&gt;Kate Bailey&lt;br /&gt;&lt;/span&gt;UID &lt;span style="color:#ff0000;"&gt;1010&lt;/span&gt;&lt;br /&gt;GID &lt;span style="color:#ff0000;"&gt;100&lt;/span&gt;&lt;br /&gt;Home directory &lt;span style="color:#ff0000;"&gt;/home/kbailey&lt;/span&gt;&lt;br /&gt;Login shell &lt;span style="color:#ff0000;"&gt;/bin/bash&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;1. There should be some entries in the LDAP directory created by YaST. To see the content of your LDAP directory enter &lt;span style="color:#ff0000;"&gt;ldapsearch -x&lt;br /&gt;&lt;/span&gt;2. Create an LDIF file by entering &lt;span style="color:#ff0000;"&gt;vi example.ldif&lt;/span&gt;&lt;br /&gt;3. To create a Posix accout for a new user kbailey, add the following lines:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;dn: uid=kbailey,ou=people,dc=digitalairlines,dc=com&lt;br /&gt;objectClass: posixAccount&lt;br /&gt;objectClass: shadowAccount&lt;br /&gt;objectClass: inetOrgPerson&lt;br /&gt;uid: kbailey&lt;br /&gt;uidNumber: 1010&lt;br /&gt;gidNumber: 100&lt;br /&gt;cn: Kate Bailey&lt;br /&gt;givenName: Kate&lt;br /&gt;sn: Bailey&lt;br /&gt;homeDirectory: /home/kbailey&lt;br /&gt;loginShell: /bin/bash&lt;br /&gt;shadowMax: 99999&lt;br /&gt;shadowWarning: 7&lt;br /&gt;shadowInactive: -1&lt;br /&gt;shadowMin: 0&lt;br /&gt;shadowLastChange: 12609&lt;br /&gt;&lt;/span&gt;You also can copy the file exercises/section_3/kbailey.ldif from the Course DVD.&lt;br /&gt;4. Save the file and exit the text editor by entering &lt;span style="color:#ff0000;"&gt;:wq&lt;/span&gt;.&lt;br /&gt;5. Add the LDIF file to your LDAP database by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldapadd -x -D &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;"cn=Administrator,dc=digitalairlines,dc=com" -W -f kbailey.ldif&lt;/span&gt;&lt;br /&gt;6. Enter the password for the LDAP administrator (&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;).&lt;br /&gt;7. To see the content of your LDAP directory, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ldapsearch -x "uid=kbailey"&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-3279885041956075032?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/3279885041956075032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=3279885041956075032' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/3279885041956075032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/3279885041956075032'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/05/add-users-to-ldap-directory.html' title='Add Users to the LDAP Directory'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-4818772304286747197</id><published>2008-05-21T05:03:00.000-07:00</published><updated>2008-05-21T05:29:14.694-07:00</updated><title type='text'>Set Up OpenLDAP with YaST</title><content type='html'>In this exercise, you set up an OpenLDAP server and client using YaST. The base DN is “dc=digitalairlines,dc=com” and the common name of the LDAP adminstrator is “cn=Administrator,dc=digitalairlines,dc=com” with password “novell”. TLS/SSL is not used in this exercise. Do the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3366ff;"&gt;■ Part I - Install OpenLDAP&lt;br /&gt;■ Part II - Setup the OpenLDAP Server&lt;br /&gt;■ Part III - Setup the OpenLDAP Client&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part I - Install OpenLDAP&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1. From the main menu, start &lt;span style="color:#ff0000;"&gt;YaST&lt;/span&gt;.&lt;br /&gt;2. Enter the root password (novell) and select &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;br /&gt;3. From the YaST Control Center, select &lt;span style="color:#ff0000;"&gt;Software&lt;/span&gt; &gt; &lt;span style="color:#ff0000;"&gt;Software&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Management&lt;/span&gt;.&lt;br /&gt;4. From the filter drop-down menu, select &lt;span style="color:#ff0000;"&gt;Search&lt;/span&gt;.&lt;br /&gt;5. In the Search field, enter &lt;span style="color:#ff0000;"&gt;ldap&lt;/span&gt;; then select &lt;span style="color:#ff0000;"&gt;Search&lt;/span&gt;.&lt;br /&gt;6. On the right, select the following packages:&lt;br /&gt;❑&lt;span style="color:#ff0000;"&gt; nss_ldap&lt;br /&gt;&lt;/span&gt;❑ &lt;span style="color:#ff0000;"&gt;openldap2&lt;/span&gt;&lt;br /&gt;❑ &lt;span style="color:#ff0000;"&gt;openldap2-client&lt;/span&gt;&lt;br /&gt;❑ &lt;span style="color:#ff0000;"&gt;pam_ldap&lt;/span&gt;&lt;br /&gt;7. Select &lt;span style="color:#ff0000;"&gt;Accept&lt;/span&gt;; then insert the requested SUSE Linux Enterprise&lt;br /&gt;Server 10 DVD.&lt;br /&gt;8. When installation is complete, remove the DVD and close the&lt;br /&gt;YaST Control Center.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part II - Setup the OpenLDAP Server&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1. Start &lt;span style="color:#000000;"&gt;YaST&lt;/span&gt;.&lt;br /&gt;2. Start the YaST module &lt;span style="color:#ff0000;"&gt;Network Services &gt; LDAP Server&lt;/span&gt;.&lt;br /&gt;3. Select &lt;span style="color:#ff0000;"&gt;Yes&lt;/span&gt; to start the LDAP server.&lt;br /&gt;4. Select &lt;span style="color:#ff0000;"&gt;Configure&lt;/span&gt;.&lt;br /&gt;5. In the LDAP Server Configuration dialog select &lt;span style="color:#ff0000;"&gt;Add Database&lt;/span&gt;&lt;br /&gt;to add a database.&lt;br /&gt;6. In the Add Database dialog enter the following information:&lt;br /&gt;Textbox Value&lt;br /&gt;Base DN &lt;span style="color:#ff0000;"&gt;&lt;em&gt;dc=digitalairlines,dc=com&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;LDAP Password &lt;span style="color:#ff0000;"&gt;&lt;em&gt;novell&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;Validate Password &lt;span style="color:#ff0000;"&gt;&lt;em&gt;novell&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;7. Select &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;br /&gt;8. In the left frame select &lt;span style="color:#ff0000;"&gt;Global Settings &gt; TLS Settings&lt;/span&gt;. Make&lt;br /&gt;Sure that the option TLS Active is set to &lt;span style="color:#ff0000;"&gt;no&lt;/span&gt;.&lt;br /&gt;9. Select &lt;span style="color:#ff0000;"&gt;Finish&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Part III - Setup the OpenLDAP Client&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;1. Start the YaST module &lt;span style="color:#ff0000;"&gt;Network Services &gt; LDAP Client&lt;/span&gt;.&lt;br /&gt;2. Select &lt;span style="color:#ff0000;"&gt;Use LDAP&lt;/span&gt; to activate LDAP for user authentication.&lt;br /&gt;3. Make sure that the content of Addresses of LDAP Servers is&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;127.0.0.1&lt;/span&gt;.&lt;br /&gt;4. Make sure that the content of LDAP base DN is&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;dc=digitalairlines,dc=com&lt;/span&gt;&lt;br /&gt;5. Make sure that the option &lt;span style="color:#ff0000;"&gt;LDAP TLS/SSL&lt;/span&gt; is &lt;span style="color:#ff0000;"&gt;deactivated&lt;/span&gt;.&lt;br /&gt;6. Select &lt;span style="color:#ff0000;"&gt;Advanced Configuration&lt;/span&gt;.&lt;br /&gt;7. Select the &lt;span style="color:#ff0000;"&gt;Administration Settings&lt;/span&gt; tab.&lt;br /&gt;8. Enter &lt;span style="color:#ff0000;"&gt;cn=Administrator&lt;/span&gt; in the textbox Administration DN.&lt;br /&gt;9. Activate the option &lt;span style="color:#ff0000;"&gt;Append Base DN&lt;/span&gt;&lt;span style="color:#000000;"&gt;.&lt;/span&gt;&lt;br /&gt;10. Activate the option &lt;span style="color:#ff0000;"&gt;Create Default Configuration Objects&lt;/span&gt;.&lt;br /&gt;11. Activate the option &lt;span style="color:#ff0000;"&gt;Home Directories on This Machine&lt;/span&gt;.&lt;br /&gt;12. Select &lt;span style="color:#ff0000;"&gt;Accept&lt;/span&gt;.&lt;br /&gt;13. Select &lt;span style="color:#ff0000;"&gt;Finish&lt;/span&gt;.&lt;br /&gt;14. When asked to enter the administrator password enter &lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-4818772304286747197?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/4818772304286747197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=4818772304286747197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/4818772304286747197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/4818772304286747197'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/05/set-up-openldap-with-yast.html' title='Set Up OpenLDAP with YaST'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-2025349711164826624</id><published>2008-05-01T03:43:00.000-07:00</published><updated>2008-05-01T03:54:24.374-07:00</updated><title type='text'>Configure Zone Transfers from the Master Server to Slave Server</title><content type='html'>In this exercise, you configure zone transfers from a master to a slave server.&lt;br /&gt;&lt;br /&gt;In part I, you create a 128 bit MD5 key with the name zonetransfer.&lt;br /&gt;&lt;br /&gt;In part II, you configure the master server to use this key for zone transfer. Create a file /etc/named.key where you enter the key zonetransfer options. This file is included into the /etc/named.conf&lt;br /&gt;&lt;br /&gt;In part III, you configure the slave to server to use this key for zone transfer. Copy the file /etc/named.key from the master server to the client server and include it into the file /etc/named.conf.&lt;br /&gt;Do the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;■ Part I: Generate a Key&lt;br /&gt;■ Part II: Configure the Master Server&lt;br /&gt;■ Part III: Configure the Slave Server&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part I: Generate a Key&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1. To stop the DNS server, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed stop&lt;br /&gt;&lt;/span&gt;2. Change the directory by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;cd /var/lib/named&lt;br /&gt;&lt;/span&gt;3. To generate a key, enter (on one line)&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;dnssec-keygen -a HMAC-MD5 -b 128 -n HOST zonetransfer&lt;br /&gt;&lt;/span&gt;4. Record the file name of the key in the space below:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part II: Configure the Master Server&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Do the following:&lt;br /&gt;1. Create a new file &lt;span style="color:#ff0000;"&gt;/etc/named.key&lt;/span&gt; with the following content:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;key zonetransfer {&lt;br /&gt;algorithm HMAC-MD5;&lt;br /&gt;secret “&lt;em&gt;key&lt;/em&gt;”;&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;Instead of &lt;em&gt;&lt;span style="color:#ff0000;"&gt;key&lt;/span&gt;&lt;/em&gt; insert the key you created in part I.&lt;br /&gt;2. Change the owner of the file to named by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;chgrp named /etc/named.key&lt;br /&gt;&lt;/span&gt;3. Remove the read permission for others from the file by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;chmod o-r /etc/named.key&lt;br /&gt;&lt;/span&gt;4. On the master server, open the &lt;span style="color:#ff0000;"&gt;/etc/named.conf&lt;/span&gt; file with a text editor.&lt;br /&gt;5. Add the following line at the beginning of the file:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;include “/etc/named.key”;&lt;br /&gt;&lt;/span&gt;6. Change the content of the zone description of digitalairlines.com as follows:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;zone "digitalairlines.com" in {&lt;br /&gt;type master;&lt;br /&gt;file "master/digitalairlines.com.zone";&lt;br /&gt;allow-transfer {&lt;br /&gt;key zonetransfer;&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;7. Change the content of the zone description of 0.0.10.in-addr.arpa as follows:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;zone “0.0.10.in-addr.arpa” in {&lt;br /&gt;type master;&lt;br /&gt;file “master/10.0.0.zone”;&lt;br /&gt;allow-transfer {&lt;br /&gt;key zonetransfer;&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;8. Save the file and exit the text editor.&lt;br /&gt;9. Open a second terminal window and enter &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt; to get root permissions.&lt;br /&gt;10. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;11. Enter the command&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;12. Switch to the first terminal window and start bind by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed start&lt;br /&gt;&lt;/span&gt;13. From the second terminal window, watch the log output of bind when the slave server is started.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part III: Configure the Slave Server&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Do the following:&lt;br /&gt;1. Copy the file &lt;span style="color:#ff0000;"&gt;/etc/named.key&lt;/span&gt; from the master server to the slave server.&lt;br /&gt;2. Change the owner of the file to named by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;chgrp named /etc/named.key&lt;br /&gt;&lt;/span&gt;3. Remove the read permission for others from the file by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;chmod o-r /etc/named.key&lt;/span&gt;&lt;br /&gt;4. On the slave server, open the &lt;span style="color:#ff0000;"&gt;/etc/named.conf&lt;/span&gt; file with a text editor.&lt;br /&gt;5. Add the following line at the beginning of the file:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;include “/etc/named.key”;&lt;br /&gt;&lt;/span&gt;6. Add the following lines after the option section:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;key zonetransfer {&lt;br /&gt;algorithm HMAC-MD5;&lt;br /&gt;secret “&lt;em&gt;key&lt;/em&gt;”;&lt;br /&gt;};&lt;br /&gt;server &lt;em&gt;IP_address_of_the_master_server&lt;/em&gt; {&lt;br /&gt;keys {&lt;br /&gt;zonetransfer;&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;In the secret option, enter the &lt;em&gt;&lt;span style="color:#ff0000;"&gt;key&lt;/span&gt;&lt;/em&gt; of the master server.&lt;br /&gt;7. Save the file and exit the text editor.&lt;br /&gt;8. Remove the files in the directory /var/lib/named/slave/ by entering:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rm /var/lib/named/slave/*&lt;br /&gt;&lt;/span&gt;9. Open a second terminal window and enter &lt;span style="color:#ff0000;"&gt;su - &lt;/span&gt;to get root&lt;br /&gt;permissions.&lt;br /&gt;10. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;11. Enter the command&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;12. Switch to the first terminal window and start bind by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed start&lt;br /&gt;&lt;/span&gt;13. From the second terminal window, watch the log output of bind to see if the zone transfer will be done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-2025349711164826624?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/2025349711164826624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=2025349711164826624' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/2025349711164826624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/2025349711164826624'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/05/configure-zone-transfers-from-master.html' title='Configure Zone Transfers from the Master Server to Slave Server'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-1687781128451634039</id><published>2008-05-01T02:24:00.000-07:00</published><updated>2008-05-01T20:05:47.369-07:00</updated><title type='text'>Configure DNS Server with Forwarding</title><content type='html'>In this exercise, you work with a partner to configure a DNS master server and a DNS slave server for the domain digitalairlines.com. Both servers should be configured to make zone transfer.&lt;br /&gt;&lt;br /&gt;The range of IP addresses is 10.0.0.2 to 10.0.0.12. The names of the computers in your network are da2 to da12.&lt;br /&gt;&lt;br /&gt;The IP address of your forwarder is 10.0.0.254. Its name is da1.&lt;br /&gt;&lt;br /&gt;In part V you configure a subdomain muc.digitalairlines.com. The master server for this subdomain is the slave server of digitalairlines.com.&lt;br /&gt;&lt;br /&gt;The range of IP addresses in this subdomain is 10.0.1.100 to 10.0.1.102. The names of the computers is da100 to da102.&lt;br /&gt;&lt;br /&gt;The master server of digitalairlines.com forwards requests concerning the subdomain to the slave server.&lt;br /&gt;&lt;br /&gt;You need to work as a team on all parts of the exercise.&lt;br /&gt;Do the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;■ Part I - Switch to Static IP Addresses&lt;br /&gt;■ Part II - Install BIND&lt;br /&gt;■ Part III - Configure the DNS Master Server for the Domain&lt;br /&gt;digitalairlines.com&lt;br /&gt;■ Part IV - Configure the DNS Slave Server for the Domain&lt;br /&gt;digitalairlines.com&lt;br /&gt;■ Part V - Configure the DNS Master Server for the Domain&lt;br /&gt;muc.digitalairlines.com&lt;br /&gt;■ Part VI - Enable Forwarding&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part I - Switch to Static IP Addresses&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To switch to static IP addresses, do the following:&lt;br /&gt;1. From the GNOME desktop, open the main menu.&lt;br /&gt;2. Select &lt;span style="color:#ff0000;"&gt;More Applications&lt;/span&gt;.&lt;br /&gt;3. Enter &lt;span style="color:#ff0000;"&gt;term&lt;/span&gt; into the Filter text box.&lt;br /&gt;4. Select the &lt;span style="color:#ff0000;"&gt;Gnome Terminal&lt;/span&gt; icon to start a terminal emulation.&lt;br /&gt;5. Enter &lt;span style="color:#ff0000;"&gt;/sbin/ip address show&lt;/span&gt; to record the following information for your SUSE Linux Enterprise Server 10 server:&lt;br /&gt;❑ IP address:&lt;br /&gt;❑ Hostname:&lt;br /&gt;6. Close the terminal window.&lt;br /&gt;7. From the main menu, start YaST.&lt;br /&gt;8. Enter the root password (&lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;) and select &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;br /&gt;9. Select &lt;span style="color:#ff0000;"&gt;Network Card&lt;/span&gt; from the &lt;span style="color:#ff0000;"&gt;Network Devices&lt;/span&gt; YaST module.&lt;br /&gt;10. Make sure that &lt;span style="color:#ff0000;"&gt;Traditional Method with ifup&lt;/span&gt; is selected and select &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;Your network card is listed in the upper table.&lt;br /&gt;11. Make sure your network card is selected; then select &lt;span style="color:#ff0000;"&gt;Edit&lt;/span&gt;.&lt;br /&gt;12. Make sure that the &lt;span style="color:#ff0000;"&gt;Address&lt;/span&gt; tab is activated.&lt;br /&gt;13. Switch the setup by selecting &lt;span style="color:#ff0000;"&gt;Static address setup&lt;/span&gt;.&lt;br /&gt;14. In the IP Address field, enter the &lt;em&gt;&lt;span style="color:#ff0000;"&gt;IP address&lt;/span&gt;&lt;/em&gt; from Part I.&lt;br /&gt;15. In the Subnet mask field, enter &lt;span style="color:#ff0000;"&gt;255.255.255.0&lt;/span&gt;.&lt;br /&gt;16. Select &lt;span style="color:#ff0000;"&gt;Host name and name server&lt;/span&gt;.&lt;br /&gt;17. (Conditional) If a dialog appears indicating that the resolv.conf&lt;br /&gt;file has been temporarily modified, continue by selecting&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Modify&lt;/span&gt;.&lt;br /&gt;18. In the Hostname field, enter the &lt;em&gt;&lt;span style="color:#ff0000;"&gt;hostname&lt;/span&gt;&lt;/em&gt; from Part I.&lt;br /&gt;19. In the Domain Name field, enter &lt;em&gt;&lt;span style="color:#ff0000;"&gt;digitalairlines.com&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;20. Select &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;br /&gt;21. Select &lt;span style="color:#ff0000;"&gt;Routing&lt;/span&gt;.&lt;br /&gt;22. In the Default Gateway field, enter the IP address of your Internet&lt;br /&gt;gateway (&lt;span style="color:#ff0000;"&gt;&lt;em&gt;10.0.0.254&lt;/em&gt;&lt;/span&gt;).&lt;br /&gt;23. Select &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;br /&gt;24. Select &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;25. Select &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part II - Install BIND&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To install BIND, do the following:&lt;br /&gt;1. From the YaST Control Center, select&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Software&lt;/span&gt; &gt; &lt;span style="color:#ff0000;"&gt;Software Management&lt;/span&gt;&lt;br /&gt;2. From the &lt;span style="color:#ff0000;"&gt;Filter&lt;/span&gt; drop-down menu, select &lt;span style="color:#ff0000;"&gt;Search&lt;/span&gt;.&lt;br /&gt;3. In the &lt;span style="color:#ff0000;"&gt;Search&lt;/span&gt; field, enter &lt;span style="color:#ff0000;"&gt;bind&lt;/span&gt;; then select &lt;span style="color:#ff0000;"&gt;Search&lt;/span&gt;.&lt;br /&gt;4. On the right, select the &lt;span style="color:#ff0000;"&gt;bind&lt;/span&gt; and the &lt;span style="color:#ff0000;"&gt;bind-chrootenv&lt;/span&gt; package.&lt;br /&gt;5. Select &lt;span style="color:#ff0000;"&gt;Accept&lt;/span&gt;; then insert the requested SUSE Linux Enterprise Server 10 DVD.&lt;br /&gt;6. When installation is complete, remove the DVD and close the YaST Control Center.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Part III - Configure the DNS Master Server for the Domain digitalairlines.com&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Do the following to configure a DNS master server:&lt;br /&gt;1. Open a terminal window and enter &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt; to get root permissions.&lt;br /&gt;2. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;3. To rename the file /etc/named.conf to /etc/named.conf.orig, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;mv /etc/named.conf /etc/named.conf.orig&lt;br /&gt;&lt;/span&gt;4. Create a new configuration file named /etc/named.conf with the following content:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;# /etc/named.conf: Configuration of the master name server&lt;br /&gt;options {&lt;br /&gt;# Where are the files located?&lt;br /&gt;directory "/var/lib/named";&lt;br /&gt;# Forwarding requests to the classroom server&lt;br /&gt;# forwarders { 192.0.2.1; 192.0.2.2; };&lt;br /&gt;};&lt;br /&gt;# Definition of root zone&lt;br /&gt;zone "." in {&lt;br /&gt;type hint;&lt;br /&gt;file "root.hint";&lt;br /&gt;};&lt;br /&gt;# Definition of the zone localhost&lt;br /&gt;zone "localhost" in {&lt;br /&gt;type master;&lt;br /&gt;file "localhost.zone";&lt;br /&gt;};&lt;br /&gt;zone "0.0.127.in-addr.arpa" in {&lt;br /&gt;type master;&lt;br /&gt;file "127.0.0.zone";&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;5. Configure the forwarders line to match the following:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;forwarders {10.0.0.254;};&lt;br /&gt;&lt;/span&gt;Make sure that you delete the comment character from the beginning of the forwarders line.&lt;br /&gt;6. Add the following two zone statements after the existing zone statements:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;zone “digitalairlines.com” in {&lt;br /&gt;type master;&lt;br /&gt;file “master/&lt;em&gt;digitalairlines.com.&lt;/em&gt;zone”;&lt;br /&gt;};&lt;br /&gt;zone “0.0.10.in-addr.arpa” in {&lt;br /&gt;type master;&lt;br /&gt;file “master/10.0.0.zone”;&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;7. Save and close the file.&lt;br /&gt;8. Create a new file &lt;em&gt;&lt;span style="color:#ff0000;"&gt;digitalairlines.com.zone&lt;/span&gt;&lt;/em&gt; in the directory&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;/var/lib/named/master/&lt;/span&gt;.&lt;br /&gt;9. Enter the following zone configuration in the file:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;$TTL 172800&lt;br /&gt;&lt;em&gt;digitalairlines.com&lt;/em&gt;. IN SOA &lt;em&gt;your_FQDN&lt;/em&gt;. hostmaster.&lt;em&gt;digitalairlines.com&lt;/em&gt;. (&lt;br /&gt;serial_number&lt;br /&gt;1D&lt;br /&gt;2H&lt;br /&gt;1W&lt;br /&gt;3H&lt;br /&gt;)&lt;br /&gt;&lt;em&gt;digitalairlines.com&lt;/em&gt;. IN NS &lt;em&gt;your_FQDN&lt;/em&gt;.&lt;br /&gt;&lt;em&gt;digitalairlines.com&lt;/em&gt;. IN NS &lt;em&gt;slave_FQDN&lt;/em&gt;.&lt;br /&gt;da1 IN A 10.0.0.254&lt;br /&gt;da2 IN A 10.0.0.2&lt;br /&gt;da10 IN A 10.0.0.10&lt;br /&gt;da11 IN A 10.0.0.11&lt;br /&gt;da12 IN A 10.0.0.12&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The SOA record (including hostmaster.digitalairlines.com) &lt;em&gt;&lt;span style="color:#ff0000;"&gt;must&lt;/span&gt;&lt;/em&gt; be on a single line.&lt;br /&gt;&lt;br /&gt;Make sure you enter your FQDN (such as &lt;em&gt;&lt;span style="color:#ff0000;"&gt;da50.digitalairlines.com&lt;/span&gt;&lt;/em&gt;) in the SOA and NS records.&lt;br /&gt;&lt;br /&gt;Use the current date and “01” as the serial number (such as &lt;span style="color:#ff0000;"&gt;&lt;em&gt;2006071501&lt;/em&gt;&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;Add an A record for your own host, such as&lt;br /&gt;&lt;em&gt;&lt;span style="color:#ff0000;"&gt;da50 IN A 10.0.0.50&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;10. Save and close the file.&lt;br /&gt;11. Create a new file &lt;em&gt;&lt;span style="color:#ff0000;"&gt;10.0.0.zone&lt;/span&gt;&lt;/em&gt; in the directory &lt;span style="color:#ff0000;"&gt;/var/lib/named/master/&lt;/span&gt;.&lt;br /&gt;12. Enter the following zone configuration in the file:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;$TTL 172800&lt;br /&gt;0.0.10.in-addr.arpa. IN SOA your_FQDN. hostmaster.digitalairlines.com. (&lt;br /&gt;serial_number&lt;br /&gt;1D&lt;br /&gt;2H&lt;br /&gt;1W&lt;br /&gt;3H&lt;br /&gt;)&lt;br /&gt;0.0.10.in-addr.arpa. IN NS your_FQDN.&lt;br /&gt;0.0.10.in-addr.arpa. IN NS slave_FQDN.&lt;br /&gt;254 IN PTR da1.digitalairlines.com.&lt;br /&gt;2 IN PTR da2.digitalairlines.com.&lt;br /&gt;10 IN PTR da10.digitalairlines.com.&lt;br /&gt;11 IN PTR da11.digitalairlines.com.&lt;br /&gt;12 IN PTR da12.digitalairlines.com&lt;/span&gt;.&lt;br /&gt;13. Save and close the file.&lt;br /&gt;14. Open a second terminal window and enter &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt; to get root permissions.&lt;br /&gt;15. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;16. Enter the command&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;17. Switch to the first terminal window and start bind by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed start&lt;/span&gt;&lt;br /&gt;18. From the second terminal window, watch the log output of bind&lt;br /&gt;for any messages such as &lt;span style="color:#ff0000;"&gt;Unknown RR Type&lt;/span&gt; or &lt;span style="color:#ff0000;"&gt;File Not Found&lt;/span&gt;.&lt;br /&gt;If any errors occur, fix them and restart bind.&lt;br /&gt;19. From the first terminal window, start bind automatically when the system is booted by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;insserv named&lt;/span&gt;&lt;br /&gt;20. Open the file &lt;span style="color:#ff0000;"&gt;/etc/resolv.conf&lt;/span&gt; in a text editor.&lt;br /&gt;21. Delete all existing nameserver entries.&lt;br /&gt;22. Add the following entry:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;nameserver &lt;em&gt;your_ip_address&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;23. Save and close the file.&lt;br /&gt;24. Verify that your DNS server works by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;host&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;em&gt; da10.digitalairlines.com&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;This should display the IP address of 10.0.0.10.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part IV - Configure the DNS Slave Server for the Domain digitalairlines.com&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;To configure the DNS slave server, do the following on the DNS slave server:&lt;br /&gt;1. Open a terminal window and and enter&lt;span style="color:#ff0000;"&gt; su -&lt;/span&gt; to get root permissions.&lt;br /&gt;2. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;3. To rename the file /etc/named.conf to /etc/named.conf.orig, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;mv /etc/named.conf /etc/named.conf.orig&lt;br /&gt;&lt;/span&gt;4. Create a new configuration file named /etc/named.conf with the&lt;br /&gt;following settings:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;# /etc/named.conf: Configuration of the slave name server&lt;br /&gt;options {&lt;br /&gt;# Where are the files located?&lt;br /&gt;directory "/var/lib/named";&lt;br /&gt;# Forwarding requests to the classroom server&lt;br /&gt;# forwarders { 192.0.2.1; 192.0.2.2; };&lt;br /&gt;};&lt;br /&gt;# Definition of root zone&lt;br /&gt;zone "." in {&lt;br /&gt;type hint;&lt;br /&gt;file "root.hint";&lt;br /&gt;};&lt;br /&gt;# Definition of the zone localhost&lt;br /&gt;zone "localhost" in {&lt;br /&gt;type master;&lt;br /&gt;file "localhost.zone";&lt;br /&gt;};&lt;br /&gt;zone "0.0.127.in-addr.arpa" in {&lt;br /&gt;type master;&lt;br /&gt;file "127.0.0.zone";&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;5. Configure the forwarders line to match the following:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;forwarders {10.0.0.254;};&lt;br /&gt;&lt;/span&gt;Make sure that you delete the comment character from the beginning of the forwarders line.&lt;br /&gt;6. Enter the following two zone statements after the existing statements:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;zone “&lt;em&gt;digitalairlines.com&lt;/em&gt;” in {&lt;br /&gt;type slave;&lt;br /&gt;file “slave/&lt;em&gt;digitalairlines.com&lt;/em&gt;.zone”;&lt;br /&gt;masters {&lt;br /&gt;&lt;em&gt;master_server_ip_address&lt;/em&gt;;&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;zone “0.0.10.in-addr.arpa” in {&lt;br /&gt;type slave;&lt;br /&gt;file “slave/10.0.0.zone”;&lt;br /&gt;masters {&lt;br /&gt;&lt;em&gt;master_server_ip_address&lt;/em&gt;;&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;7. Save the changes and close the editor.&lt;br /&gt;8. Open a second terminal window and enter &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt; to get root permissions.&lt;br /&gt;9. When prompted, enter the root password &lt;span style="color:#ff0000;"&gt;&lt;em&gt;novell&lt;/em&gt;&lt;/span&gt;.&lt;br /&gt;10. Enter the command&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;11. Switch to the first terminal window and start bind by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed start&lt;br /&gt;&lt;/span&gt;12. From the second terminal window, watch the log output of bind for any messages such as &lt;span style="color:#ff0000;"&gt;Unknown RR Type&lt;/span&gt; or &lt;span style="color:#ff0000;"&gt;File Not&lt;br /&gt;Found.&lt;br /&gt;&lt;/span&gt;13. If any errors occur, try to fix them and restart bind.&lt;br /&gt;14. Start bind automatically when the system boots by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;insserv named&lt;br /&gt;&lt;/span&gt;15. From the first terminal window, open the /etc/resolv.conf file in a text editor.&lt;br /&gt;16. Delete all existing nameserver entries.&lt;br /&gt;17. Add the following entry:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;nameserver &lt;em&gt;server_ip_address&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;18. Save and close the file.&lt;br /&gt;19. Verify that your DNS server works by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;host da10.digitalairlines.com&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Part V - Configure the DNS Master Server for the Domain muc.digitalairlines.com&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;In the following, the slave server will also be configured as master server of the subdomain. To configure the DNS Master Server for the Domain muc.digitalairlines.com, do the following on the slave server:&lt;br /&gt;&lt;br /&gt;1. Open a terminal window and enter&lt;span style="color:#ff0000;"&gt; su -&lt;/span&gt; to get root permissions.&lt;br /&gt;2. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;3. To stop the DNS server, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed stop&lt;br /&gt;&lt;/span&gt;4. Open the file /etc/named.conf with your favorite editor.&lt;br /&gt;5. Add the following two zone statements after the existing zone statements:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;zone “muc.digitalairlines.com” in {&lt;br /&gt;type master;&lt;br /&gt;file “master/muc.digitalairlines.com.zone”;&lt;br /&gt;};&lt;br /&gt;zone “1.0.10.in-addr.arpa” in {&lt;br /&gt;type master;&lt;br /&gt;file “master/10.0.1.zone”;&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;6. Save and close the file.&lt;br /&gt;7. Create a new file &lt;span style="color:#ff0000;"&gt;muc.digitalairlines.com.zone&lt;/span&gt; in the directory&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;/var/lib/named/master/&lt;/span&gt;.&lt;br /&gt;8. Enter the following zone configuration in the file:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;$TTL 172800&lt;br /&gt;muc.digitalairlines.com. IN SOA your_FQDN.&lt;br /&gt;hostmaster.digitalairlines.com. (&lt;br /&gt;serial_number&lt;br /&gt;1D&lt;br /&gt;2H&lt;br /&gt;1W&lt;br /&gt;3H&lt;br /&gt;)&lt;br /&gt;muc.digitalairlines.com. IN NS your_FQDN.&lt;br /&gt;muc.digitalairlines.com. IN MX 1 da1.digitalairlines.com.&lt;br /&gt;da100 IN A 10.0.1.100&lt;br /&gt;da101 IN A 10.0.1.101&lt;br /&gt;da102 IN A 10.0.1.102&lt;br /&gt;&lt;/span&gt;9. Save and close the file.&lt;br /&gt;10. Create a new file &lt;span style="color:#ff0000;"&gt;10.0.1.zone&lt;/span&gt; in the directory&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;/var/lib/named/master/&lt;/span&gt;.&lt;br /&gt;11. Enter the following zone configuration in the file:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;$TTL 172800&lt;br /&gt;1.0.10.in-addr.arpa. IN SOA your_FQDN.&lt;br /&gt;hostmaster.digitalairlines.com. (&lt;br /&gt;serial_number&lt;br /&gt;1D&lt;br /&gt;2H&lt;br /&gt;1W&lt;br /&gt;3H&lt;br /&gt;)&lt;br /&gt;IN NS your_FQDN.&lt;br /&gt;100 IN PTR da100.muc.digitalairlines.com.&lt;br /&gt;101 IN PTR da101.muc.digitalairlines.com.&lt;br /&gt;102 IN PTR da102.muc.digitalairlines.&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;com.&lt;/span&gt;&lt;br /&gt;12. Save and close the file.&lt;br /&gt;13. Open a second terminal window and enter &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt; to get root permissions.&lt;br /&gt;14. When prompted, enter the root password &lt;span style="color:#ff0000;"&gt;&lt;em&gt;novell&lt;/em&gt;&lt;/span&gt;.&lt;br /&gt;15. Enter the command&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;16. Switch to the first terminal window and start bind by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed start&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;17. From the second terminal window, watch the log output of bind for any messages such as &lt;span style="color:#ff0000;"&gt;Unknown RR Type&lt;/span&gt; or &lt;span style="color:#ff0000;"&gt;File Not&lt;br /&gt;Found&lt;/span&gt;.&lt;br /&gt;18. If any errors occur, fix them and restart bind.&lt;br /&gt;19. Open the file &lt;span style="color:#ff0000;"&gt;/etc/resolv.conf&lt;/span&gt; in a text editor.&lt;br /&gt;20. Modify the search entry to:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;search digitalairlines.com muc.digitalairlines.com&lt;br /&gt;&lt;/span&gt;21. Save and close the file.&lt;br /&gt;22. Verify that your DNS server works by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;host da100.muc.digitalairlines.com&lt;br /&gt;&lt;/span&gt;This should display the IP address of 10.0.1.100.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part VI - Enable Forwarding&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To forward requests concerning a subdomain to the master server of the subdomain server, do the following on the master server for digitalairlines.com:&lt;br /&gt;1. Open a terminal window and enter&lt;span style="color:#ff0000;"&gt; su -&lt;/span&gt; to get root permissions.&lt;br /&gt;2. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;3. To stop the DNS server, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed stop&lt;br /&gt;&lt;/span&gt;4. Open the&lt;span style="color:#ff0000;"&gt; /etc/named.conf&lt;/span&gt; file with a text editor.&lt;br /&gt;5. Add the following zone after the other zone definitions:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;zone “muc.digitalairlines.com” in&lt;br /&gt;{&lt;br /&gt;type forward;&lt;br /&gt;forward only;&lt;br /&gt;forwarders {&lt;br /&gt;&lt;em&gt;IP_address_of_the_slave_server&lt;/em&gt;;&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;zone “1.0.10.in-addr.arpa” in&lt;br /&gt;{&lt;br /&gt;type forward;&lt;br /&gt;forward only;&lt;br /&gt;forwarders {&lt;br /&gt;&lt;em&gt;IP_address_of_the_slave_server&lt;/em&gt;;&lt;br /&gt;};&lt;br /&gt;};&lt;br /&gt;&lt;/span&gt;6. Save and close the file.&lt;br /&gt;7. Open a second terminal window and enter &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt; to get root&lt;br /&gt;permissions.&lt;br /&gt;8. When prompted, enter the root password &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;9. Enter the command&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;tail -f /var/log/messages&lt;/span&gt;&lt;br /&gt;10. Switch to the first terminal window and start bind by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed start&lt;br /&gt;&lt;/span&gt;11. From the second terminal window, watch the log output of bind for any messages such as &lt;span style="color:#ff0000;"&gt;Unknown RR Type&lt;/span&gt; or &lt;span style="color:#ff0000;"&gt;File Not&lt;br /&gt;Found&lt;span style="color:#000000;"&gt;.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;12. If any errors occur, fix them and restart bind.&lt;br /&gt;13. Verify that your DNS server works by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;host da100.muc.digitalairlines.com&lt;br /&gt;&lt;/span&gt;This should display the IP address of 10.0.1.100&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-1687781128451634039?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/1687781128451634039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=1687781128451634039' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1687781128451634039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1687781128451634039'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/05/configure-dns-server-with-forwarding.html' title='Configure DNS Server with Forwarding'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-1557817706069348227</id><published>2008-04-30T19:57:00.000-07:00</published><updated>2008-04-30T20:00:47.453-07:00</updated><title type='text'>Troubleshoot DHCP</title><content type='html'>In this exercise, you troubleshoot DHCP.&lt;br /&gt;Do the following:&lt;br /&gt;&lt;br /&gt;1. Run the dhcpdump utility on your server by typing the following&lt;br /&gt;(on one line):&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;tcpdump -lenx -s 1500 port bootps or port bootpc  dhcpdump&lt;br /&gt;&lt;/span&gt;2. Generate some DHCP traffic by restarting the network on a client.&lt;br /&gt;3. Review the output of the tcpdump utility.&lt;br /&gt;4. Run the dhcping utility with the respective client, server, and hardware address parameters from a client (on one line):&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;dhcping -c client_addr -s server_addr -h client_hardware_addr&lt;/span&gt;&lt;br /&gt;5. Review the output on the client and the entries in the file&lt;br /&gt;/var/log/messages&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-1557817706069348227?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/1557817706069348227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=1557817706069348227' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1557817706069348227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1557817706069348227'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/troubleshoot-dhcp.html' title='Troubleshoot DHCP'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-1858588298299675777</id><published>2008-04-30T19:33:00.000-07:00</published><updated>2008-04-30T19:52:47.132-07:00</updated><title type='text'>Use DHCP and Dynamic DNS</title><content type='html'>In this exercise, you configure dynamic DNS for your DHCP server.&lt;br /&gt;&lt;br /&gt;In part I, you generate a new 128 bit MD5 key.&lt;br /&gt;&lt;br /&gt;In part II, you overwrite your DNS configuration file /etc/named.conf with the file named.conf from the Course DVD. You add a key section and allow dynamic updates for the digitalairlines and 10.0.0 zone.&lt;br /&gt;&lt;br /&gt;In part III, you configure the DHCP server to update your DNS server.&lt;br /&gt;&lt;br /&gt;In part IV, you configure your DHCP client.&lt;br /&gt;Do the following:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;■ Part I - Generate a Key&lt;br /&gt;■ Part II - Configure the DNS Server&lt;br /&gt;■ Part III - Configure the DHCP Server&lt;br /&gt;■ Part IV - Configure the DHCP Clients&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part I - Generate a Key&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;1. Start a terminal emulation from the main menu.&lt;br /&gt;2. Switch to user root by entering &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt;.&lt;br /&gt;3. When you are prompted for the root password, enter &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;4. Switch to the directory /var/lib/named/ by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;cd /var/lib/named&lt;br /&gt;&lt;/span&gt;5. To create a key, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;dnssec-keygen -a HMAC-MD5 -b 128 -n HOST dhcp-dns&lt;/span&gt;&lt;br /&gt;The name of the key file is written on the screen by this command. Record it in the space below:&lt;br /&gt;6. Enter &lt;span style="color:#ff0000;"&gt;cat &lt;em&gt;name_of_the_key&lt;/em&gt;.key&lt;/span&gt; and record the key in the space below:&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Part II - Configure the DNS Server&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Do the following:&lt;br /&gt;1. Overwrite your BIND configuration file /etc/named.conf with the file exercises/section_2/named.conf form the 3074 Course DVD.&lt;br /&gt;2. Start your favorite text editor and open the file /etc/named.conf.&lt;br /&gt;3. Append the following after &lt;span style="color:#ff0000;"&gt;options&lt;/span&gt;:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;key dhcp-dns {&lt;br /&gt;algorithm HMAC-MD5;&lt;br /&gt;secret &lt;em&gt;your_key&lt;/em&gt;;&lt;br /&gt;};&lt;br /&gt;zone "&lt;em&gt;digitalairlines.com&lt;/em&gt;" in {&lt;br /&gt;type master;&lt;br /&gt;file "&lt;em&gt;digitalairlines.zone&lt;/em&gt;";&lt;br /&gt;allow-update { key dhcp-dns ;}:&lt;br /&gt;};&lt;br /&gt;zone "0.0.10.in-addr.arpa" in {&lt;br /&gt;type master;&lt;br /&gt;file "10.0.0.zone";&lt;br /&gt;allow-update { key dhcp-dns ;}:&lt;br /&gt;};&lt;/span&gt;&lt;br /&gt;4. Save the file.&lt;br /&gt;5. Restart your DNS server with the new configuration:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcnamed restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part III - Configure the DHCP Server&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Do the following:&lt;br /&gt;1. Open the file /etc/dhcpd.conf with your text editor and enter the following:&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ddns-update-style interim;&lt;br /&gt;ddns-updates on;&lt;br /&gt;key dhcp-dns {&lt;br /&gt;algorithm HMAC-MD5;&lt;br /&gt;secret &lt;em&gt;your_key&lt;/em&gt;;&lt;br /&gt;}&lt;br /&gt;zone &lt;em&gt;digitalairlines.com&lt;/em&gt;. {&lt;br /&gt;key dhcp-dns;&lt;br /&gt;}&lt;br /&gt;zone 0.0.10.in-addr.arpa. {&lt;br /&gt;key dhcp-dns;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;2. Save the file and close the editor.&lt;br /&gt;3. Switch back to the virtual terminal and enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;chmod 600 /etc/dhcpd.conf&lt;/span&gt;&lt;br /&gt;to prevent it from being readable by all users.&lt;br /&gt;4. Close the terminal window.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Part IV - Configure the DHCP Clients&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;1. On your DHCP client, edit the file /etc/HOSTNAME. Change the hostname of the client to something that is unique in your network and not already known to your DNS server. (For example, you could set your lastname as the hostname of your client.)&lt;br /&gt;2. Restart your dhcpd by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;rcdhcpd restart&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-1858588298299675777?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/1858588298299675777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=1858588298299675777' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1858588298299675777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1858588298299675777'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/use-dhcp-and-dynamic-dns.html' title='Use DHCP and Dynamic DNS'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-2680160135456353255</id><published>2008-04-30T19:29:00.000-07:00</published><updated>2008-04-30T19:33:17.052-07:00</updated><title type='text'>Configure DHCP Clients</title><content type='html'>In this exercise, you activate the DHCP client with YaST.&lt;br /&gt;&lt;br /&gt;To configure a DHCP client, do the following:&lt;br /&gt;&lt;br /&gt;1. Start YaST from the main menu.&lt;br /&gt;2. When you are prompted for the root password, enter &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;3. Select &lt;span style="color:#ff0000;"&gt;Network Devices&lt;/span&gt; &gt; &lt;span style="color:#ff0000;"&gt;Network Card&lt;/span&gt;.&lt;br /&gt;4. Select &lt;span style="color:#ff0000;"&gt;Change&lt;/span&gt;.&lt;br /&gt;5. Make sure that your network card is selected in the top field and&lt;br /&gt;select &lt;span style="color:#ff0000;"&gt;Edit&lt;/span&gt;.&lt;br /&gt;6. Select &lt;span style="color:#ff0000;"&gt;Automatic Address Setup (via DHCP)&lt;/span&gt;&lt;span style="color:#000000;"&gt;.&lt;/span&gt;&lt;br /&gt;7. Select &lt;span style="color:#ff0000;"&gt;Host Name and Name Server&lt;/span&gt;.&lt;br /&gt;8. Make sure that the following are selected:&lt;br /&gt;❑ &lt;span style="color:#ff0000;"&gt;Change Host Name via DHCP&lt;br /&gt;&lt;/span&gt;❑ &lt;span style="color:#ff0000;"&gt;Update Name Servers and Search Lists via DHCP&lt;/span&gt;&lt;br /&gt;9. Select &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;br /&gt;10. Select &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;11. Select &lt;span style="color:#ff0000;"&gt;Finish&lt;/span&gt;.&lt;br /&gt;12. Close the YaST window.&lt;br /&gt;13. Start a terminal emulation from the main menu.&lt;br /&gt;14. Switch to user root by entering &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt;.&lt;br /&gt;15. When you are prompted for the root password, enter &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;16. Enter &lt;span style="color:#ff0000;"&gt;ifstatus-dhcp eth0&lt;/span&gt; to see the IP address of your network&lt;br /&gt;card.&lt;br /&gt;17. Close the terminal window.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-2680160135456353255?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/2680160135456353255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=2680160135456353255' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/2680160135456353255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/2680160135456353255'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/configure-dhcp-clients.html' title='Configure DHCP Clients'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-5380159246293078358</id><published>2008-04-30T18:59:00.000-07:00</published><updated>2008-04-30T19:27:22.813-07:00</updated><title type='text'>Configure the DHCP Server</title><content type='html'>&lt;div align="left"&gt;In this exercise, you install and configure a DHCP server for the domain digitalairlines.com. The IP addresses your DHCP server manages are 10.0.0.101 to 10.0.0.120. Your DHCP server should inform the clients about the DNS information and routers (both services on 10.0.0.254). The computers of two of your neighbors should get the IP addresses 10.0.0.151 and 10.0.0.152. The defaul lease time is one day the maximum lease time two days. Do the following:&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;■ Part I - Install the DHCP Server Software&lt;br /&gt;■ Part II: Edit the /etc/sysconfig/dhcpd File&lt;br /&gt;■ Part III - Edit the /etc/dhcpd.conf File&lt;br /&gt;■ Part IV - Test the Configuration&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;Part I - Install the DHCP Server Software&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;To install the DHCP server software, do the following:&lt;br /&gt;&lt;br /&gt;1. Start YaST from the main menu.&lt;br /&gt;2. When you are prompted for the root password, enter &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;span style="color:#000000;"&gt;.&lt;/span&gt;&lt;/em&gt;&lt;br /&gt;3. Select &lt;span style="color:#ff0000;"&gt;Software Management&lt;/span&gt;.&lt;br /&gt;4. Select the &lt;span style="color:#ff0000;"&gt;Filter&lt;/span&gt; pull-down menu; then select &lt;span style="color:#ff0000;"&gt;Search&lt;/span&gt;.&lt;br /&gt;5. Enter &lt;span style="color:#ff0000;"&gt;dhcp &lt;/span&gt;in the Search text box and click &lt;span style="color:#ff0000;"&gt;Search&lt;/span&gt;.&lt;br /&gt;6. Select the check boxes in front of the following packages:&lt;br /&gt;❑ &lt;strong&gt;dhcp&lt;br /&gt;&lt;/strong&gt;❑ &lt;strong&gt;dhcp-server&lt;/strong&gt;&lt;br /&gt;❑ &lt;strong&gt;dhcp-tools&lt;br /&gt;&lt;/strong&gt;7. Select &lt;span style="color:#ff0000;"&gt;Accept&lt;/span&gt;.&lt;br /&gt;8. When the installation is finished, close all YaST windows.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;&lt;span style="color:#000099;"&gt;Part II: Edit the /etc/sysconfig/dhcpd File&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;To edit the /etc/sysconfig/dhcpd file, do the following:&lt;br /&gt;&lt;br /&gt;1. Start a terminal emulation from the main menu.&lt;br /&gt;2. Switch to user root by entering &lt;span style="color:#ff0000;"&gt;su &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;-&lt;/span&gt;.&lt;br /&gt;3. When you are prompted for the root password, enter &lt;span style="color:#ff0000;"&gt;&lt;em&gt;novell&lt;/em&gt;&lt;/span&gt;.&lt;br /&gt;4. Start your favorite text editor and open the file&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;/etc/sysconfig/dhcpd.&lt;/span&gt;&lt;br /&gt;5. Change the line&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;DHCPD_INTERFACE=””&lt;br /&gt;&lt;/span&gt;to&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;DHCPD_INTERFACE=”eth0”&lt;br /&gt;&lt;/span&gt;6. Save the file.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part III - Edit the /etc/dhcpd.conf File&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To edit the /etc/dhcpd.conf file, do the following:&lt;br /&gt;&lt;br /&gt;1. Start a terminal emulation from the main menu.&lt;br /&gt;2. Switch to user root by entering &lt;span style="color:#ff0000;"&gt;su -&lt;/span&gt;.&lt;br /&gt;3. When you are prompted for the root password, enter &lt;em&gt;&lt;span style="color:#ff0000;"&gt;novell&lt;/span&gt;&lt;/em&gt;.&lt;br /&gt;4. Enter &lt;span style="color:#ff0000;"&gt;ip address show &lt;/span&gt;to get the MAC address of your network card.&lt;br /&gt;5. Record your MAC address in the space below:&lt;br /&gt;6. Record the MAC address of your two neighbors in the table below:&lt;br /&gt;Hostname:                          IP:                       MAC:&lt;br /&gt;Hostname:                          IP:                       MAC:&lt;br /&gt;7. Rename the file /etc/dhcpd.conf to /etc/dhcp.conf.orig by entering&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;mv /etc/dhcpd.conf /etc/dhcpd.conf.orig&lt;/span&gt;&lt;br /&gt;8. Open a new file /etc/dhcp.conf with your favorite text editor.&lt;br /&gt;9. To switch off dynamic DNS updates, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;ddns-update-style none;&lt;br /&gt;&lt;/span&gt;10. To set the default lease time to one day, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;default-lease-time 86400;&lt;br /&gt;&lt;/span&gt;11. To set the maximum lease time to two days, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;max-lease-time 172800;&lt;br /&gt;&lt;/span&gt;12. To define the domain name, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;option domain-name “digitalairlines.com”;&lt;br /&gt;&lt;/span&gt;13. To specify the domain name servers, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;option domain-name-servers 10.0.0.254;&lt;br /&gt;&lt;/span&gt;14. To specify the default gateway, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;option routers 10.0.0.254;&lt;br /&gt;&lt;/span&gt;15. To specify the range of IP addresses to be provided by your DHCP server, enter&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;subnet 10.0.0.0 netmask 255.255.255.0&lt;br /&gt;{&lt;br /&gt;range 10.0.0.101 10.0.0.120;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;16. To assign fixed IP addresses to the hosts of two of your neighbors, add&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;host &lt;em&gt;hostname1&lt;/em&gt;.digitalairlines.com&lt;br /&gt;{&lt;br /&gt;hardware ethernet &lt;em&gt;mac1&lt;/em&gt;;&lt;br /&gt;fixed-address 10.0.0.151;&lt;br /&gt;}&lt;br /&gt;host &lt;em&gt;hostname2&lt;/em&gt;.digitalairlines.com&lt;br /&gt;{&lt;br /&gt;hardware ethernet &lt;em&gt;mac2&lt;/em&gt;;&lt;br /&gt;fixed-address 10.0.0.152;&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Instead of &lt;em&gt;&lt;span style="color:#ff0000;"&gt;hostname1&lt;/span&gt;&lt;/em&gt; and &lt;em&gt;&lt;span style="color:#ff0000;"&gt;hostname2&lt;/span&gt;&lt;/em&gt;, enter the hostname of&lt;br /&gt;your neighbor’s computer. Instead of &lt;span style="color:#ff0000;"&gt;&lt;em&gt;mac1&lt;/em&gt;&lt;/span&gt; and &lt;em&gt;&lt;span style="color:#ff0000;"&gt;mac2&lt;/span&gt;&lt;/em&gt;, enter the&lt;br /&gt;MAC address of your neighbor’s computer.&lt;br /&gt;17. Save the file.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Part IV - Test the Configuration&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;To test the configuration, do the following:&lt;br /&gt;&lt;br /&gt;1. Enter &lt;span style="color:#ff0000;"&gt;rcdhcpd syntax-check&lt;/span&gt; to test your configuration.&lt;br /&gt;&lt;br /&gt;You should get an error message that the lease database could&lt;br /&gt;not be opened. That happens because the dhcpd is not started.&lt;br /&gt;There should be no syntax error in the output of &lt;span style="color:#ff0000;"&gt;rcdhcpd&lt;br /&gt;syntax-check.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-5380159246293078358?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/5380159246293078358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=5380159246293078358' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/5380159246293078358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/5380159246293078358'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/configure-dhcp-server.html' title='Configure the DHCP Server'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-7751013366682730714</id><published>2008-04-26T01:25:00.000-07:00</published><updated>2008-04-30T19:54:26.200-07:00</updated><title type='text'>How to Configure Internet Connection Sharing in Windows XP</title><content type='html'>&lt;p&gt;&lt;strong&gt;INTRODUCTION&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;This article describes how to set up and use the Internet Connection Sharing feature in Microsoft Windows XP. With Internet Connection Sharing, you can use networked computers to share a single connection to the Internet. &lt;/p&gt;&lt;p&gt;&lt;strong&gt;How to use Internet Connection Sharing&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;To use Internet Connection Sharing to share your Internet connection, the host computer must have one network adapter that is configured to connect to the internal network, and one network adapter or modem that is configured to connect to the Internet.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;On the host computer&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;On the host computer, follow these steps to share the Internet connection:&lt;br /&gt;1. Log on to the host computer as Administrator or as Owner.&lt;br /&gt;&lt;br /&gt;2. Click &lt;span style="color:#ff0000;"&gt;Start&lt;/span&gt;, and then click &lt;span style="color:#ff0000;"&gt;Control Panel&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;3. Click &lt;span style="color:#ff0000;"&gt;Network and Internet Connections&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;4. Click &lt;span style="color:#ff0000;"&gt;Network Connections&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;5. Right-click the connection that you use to connect to the Internet. For example, if you connect to the Internet by using a modem, right-click the connection that you want under &lt;span style="color:#ff0000;"&gt;Dial-up&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;6. Click &lt;span style="color:#ff0000;"&gt;Properties&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;7. Click the &lt;span style="color:#ff0000;"&gt;Advanced&lt;/span&gt; tab.&lt;br /&gt;&lt;br /&gt;8. Under &lt;span style="color:#ff0000;"&gt;Internet Connection&lt;/span&gt; &lt;span style="color:#ff0000;"&gt;Sharing&lt;/span&gt;, select the &lt;span style="color:#ff0000;"&gt;Allow other network users to connect through this computer's Internet connection&lt;/span&gt; check box.&lt;br /&gt;&lt;br /&gt;9. If you are sharing a dial-up Internet connection, select the &lt;span style="color:#ff0000;"&gt;Establish a dial-up connection whenever a computer on my network attempts to access the Internet&lt;/span&gt; check box if you want to permit your computer to automatically connect to the Internet.&lt;br /&gt;&lt;br /&gt;10. Click &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;. You receive the following message:&lt;br /&gt;&lt;br /&gt;When Internet Connection Sharing is enabled, your LAN adapter will be set to use IPaddress 192.168.0.1. Your computer may lose connectivity with other computers onyour network. If these other computers have static IP addresses, it is a good idea to set themto obtain their IP addresses automatically. Are you sure you want to enable InternetConnection Sharing? &lt;/p&gt;&lt;p&gt;11. Click &lt;span style="color:#ff0000;"&gt;Yes&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The connection to the Internet is shared to other computers on the local area network (LAN). The network adapter that is connected to the LAN is configured with a static IP address of 192.168.0.1 and a subnet mask of 255.255.255.0&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;On the client computer&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;To connect to the Internet by using the shared connection, you must confirm the LAN adapter IP configuration, and then configure the client computer. To confirm the LAN adapter IP configuration, follow these steps:&lt;br /&gt;1. Log on to the client computer as Administrator or as Owner.&lt;br /&gt;&lt;br /&gt;2. Click &lt;span style="color:#ff0000;"&gt;Start&lt;/span&gt;, and then click &lt;span style="color:#ff0000;"&gt;Control&lt;/span&gt; &lt;span style="color:#ff0000;"&gt;Panel&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;3. Click &lt;span style="color:#ff0000;"&gt;Network and Internet Connections&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;4. Click &lt;span style="color:#ff0000;"&gt;Network Connections&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;5. Right-click &lt;span style="color:#ff0000;"&gt;Local Area Connection&lt;/span&gt;, and then click &lt;span style="color:#ff0000;"&gt;Properties&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;6. Click the &lt;span style="color:#ff0000;"&gt;General &lt;/span&gt;tab, click &lt;span style="color:#ff0000;"&gt;Internet Protocol (TCP/IP)&lt;/span&gt; in the This connection uses the following items list, and then click &lt;span style="color:#ff0000;"&gt;Properties&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;7. In the &lt;span style="color:#ff0000;"&gt;Internet Protocol (TCP/IP) Properties&lt;/span&gt; dialog box, click &lt;span style="color:#ff0000;"&gt;Obtain an IP address automatically&lt;/span&gt; (if it is not already selected), and then click &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#33cc00;"&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/span&gt; You can also assign a unique static IP address in the range of 192.168.0.2 to 192.168.0.254. For example, you can assign the following static IP address, subnet mask, and default gateway:&lt;/p&gt;&lt;p&gt;IP Address 192.168.0.2 Subnet mask 255.255.255.0 Default gateway 192.168.0.1 &lt;/p&gt;&lt;p&gt;8. In the &lt;span style="color:#ff0000;"&gt;Local Area Connection Properties&lt;/span&gt; dialog box, click &lt;span style="color:#ff0000;"&gt;OK&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;9. Quit Control Panel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To configure the client computer to use the shared Internet connection, follow these steps:&lt;br /&gt;1. Click &lt;span style="color:#ff0000;"&gt;Start&lt;/span&gt;, and then click &lt;span style="color:#ff0000;"&gt;Control Panel&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;2. Click &lt;span style="color:#ff0000;"&gt;Network and Internet Connections&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;3. Click &lt;span style="color:#ff0000;"&gt;Internet Options&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;4. In the &lt;span style="color:#ff0000;"&gt;Internet Properties&lt;/span&gt; dialog box, click the &lt;span style="color:#ff0000;"&gt;Connections&lt;/span&gt; tab.&lt;br /&gt;&lt;br /&gt;5. Click the &lt;span style="color:#ff0000;"&gt;Setup&lt;/span&gt; button.&lt;/p&gt;&lt;p&gt;The New Connection Wizard starts.&lt;br /&gt;6. On the &lt;span style="color:#ff0000;"&gt;Welcome to the New Connection Wizard&lt;/span&gt; page, click &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;7. Click &lt;span style="color:#ff0000;"&gt;Connect to the Internet&lt;/span&gt;, and then click &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;8. Click &lt;span style="color:#ff0000;"&gt;Set up my connection manually&lt;/span&gt;, and then click &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;9. Click &lt;span style="color:#ff0000;"&gt;Connect using a broadband connection that is always on&lt;/span&gt;, and then click &lt;span style="color:#ff0000;"&gt;Next&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;10. On the &lt;span style="color:#ff0000;"&gt;Completing the New Connection Wizard&lt;/span&gt; page, click &lt;span style="color:#ff0000;"&gt;Finish&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;11. Quit Control Panel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;When you now start Microsoft Internet Explorer, the client computer will try to connect to the Internet by using the host computer's shared Internet connection.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Troubleshooting&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;When you turn on Internet Connection Sharing on the host computer, the host computer's LAN adapter is automatically assigned the IP address of 192.168.0.1. Therefore, one of the following situations may occur:&lt;br /&gt;•&lt;br /&gt;IP address conflictEach computer on the LAN must have a unique IP address. If more than one computer has the same IP address, an IP conflict occurs, and one of the network adapters turns off until the conflict is resolved. To resolve this conflict, configure the client computer to automatically obtain an IP address, or assign it a unique IP address.&lt;br /&gt;•&lt;br /&gt;Loss of network connectivityIf your network is configured with a different IP address range than Internet Connection Sharing uses, you will lose network connectivity with the host computer. To resolve this issue, configure the client computers to automatically obtain an IP address, or assign each client computer a unique IP address in the range of 192.168.0.2 to 192.168.0.254. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-7751013366682730714?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/7751013366682730714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=7751013366682730714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/7751013366682730714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/7751013366682730714'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/how-to-configure-internet-connection.html' title='How to Configure Internet Connection Sharing in Windows XP'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-6454800726770261291</id><published>2008-04-24T21:16:00.000-07:00</published><updated>2008-04-27T18:19:28.530-07:00</updated><title type='text'>Reset password administrator</title><content type='html'>Some program let you reset your administrator password such as &lt;a href="http://www.winternals.com/Products/AdministratorsPak/Default.aspx" target="_blank"&gt;ERD Commander&lt;/a&gt;, but you have to pay for it. With Windows XP cd lets you reset your administrator for free. See how to do below.&lt;br /&gt;&lt;strong&gt;1.&lt;/strong&gt; Boot from Windows XP cd&lt;br /&gt;&lt;strong&gt;2.&lt;/strong&gt; Until you see Welcome to Setup screen, press Enter to setup Windows&lt;br /&gt;&lt;strong&gt;3.&lt;/strong&gt; The Licensing Agreement screen is shown, press&lt;span style="color:#ff0000;"&gt; F8&lt;/span&gt; to accept&lt;br /&gt;&lt;strong&gt;4.&lt;/strong&gt; Then you will see an option for repairing you should select your XP installation and press &lt;span style="color:#ff0000;"&gt;R&lt;/span&gt; to repare&lt;br /&gt;&lt;strong&gt;5.&lt;/strong&gt; Don’t do anything and wait until finishing copying files from the cd for installation and windows will restart automatically and Windows is installing.&lt;br /&gt;&lt;strong&gt;6.&lt;/strong&gt; Looking at the lower left side of the screen until you see Installing Devices progress bar, press &lt;span style="color:#ff0000;"&gt;Shift + F10&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;7.&lt;/strong&gt; A prompt is coming up, type &lt;span style="color:#ff0000;"&gt;NUSRMGR.CPL&lt;/span&gt; and press Enter to access your account in Control Panel.&lt;br /&gt;&lt;strong&gt;8.&lt;/strong&gt; It let you change or remove password as you like.&lt;br /&gt;&lt;strong&gt;9.&lt;/strong&gt; Keep installing process…&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-6454800726770261291?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/6454800726770261291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=6454800726770261291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/6454800726770261291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/6454800726770261291'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/reset-password-administrator.html' title='Reset password administrator'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-1646805977237762679</id><published>2008-04-04T17:45:00.000-07:00</published><updated>2008-04-27T18:25:17.955-07:00</updated><title type='text'>Ntldr is missing</title><content type='html'>&lt;span style="color:#000000;"&gt;Ntldr is missing&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;em&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;1.&lt;/strong&gt;&lt;/span&gt;&lt;/em&gt; Insert the Windows XP bootable CD into the computer.&lt;br /&gt;&lt;em&gt;&lt;strong&gt;2.&lt;/strong&gt;&lt;/em&gt; When prompted to press any key to boot from the CD, press any key.&lt;br /&gt;&lt;em&gt;&lt;strong&gt;3.&lt;/strong&gt;&lt;/em&gt; Once in the Windows XP setup menu press the "&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;R&lt;/span&gt;&lt;/strong&gt;" key to repair Windows.&lt;br /&gt;&lt;em&gt;&lt;strong&gt;4.&lt;/strong&gt;&lt;/em&gt; Log into your Windows installation by pressing the "&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;1&lt;/span&gt;&lt;/strong&gt;" key and pressing enter.&lt;br /&gt;&lt;em&gt;&lt;strong&gt;5.&lt;/strong&gt;&lt;/em&gt; You will then be prompted for your administrator password, enter that password.&lt;br /&gt;&lt;em&gt;&lt;strong&gt;6.&lt;/strong&gt;&lt;/em&gt; Copy the below two files to the &lt;a href="http://www.computerhope.com/jargon/r/root.htm"&gt;root&lt;/a&gt; directory of the primary hard disk. In the below example we are copying these files from the CD-ROM drive letter "E". This letter may be different on your computer. &lt;strong&gt;&lt;span style="color:#ff0000;"&gt;copy e:\i386\ntldr c:\&lt;/span&gt;, &lt;span style="color:#ff0000;"&gt;copy e:\i386\ntdetect.com c:\&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;7.&lt;/strong&gt; Once both of these files have been successfully copied, remove the CD from the computer and reboot.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-1646805977237762679?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/1646805977237762679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=1646805977237762679' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1646805977237762679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/1646805977237762679'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/ntldr-is-missing.html' title='Ntldr is missing'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4585082652082174732.post-6402239468413450145</id><published>2008-04-04T17:27:00.000-07:00</published><updated>2008-04-27T18:29:33.019-07:00</updated><title type='text'>How to install recovery console</title><content type='html'>&lt;span style="color:#cc33cc;"&gt;&lt;strong&gt;To install the Recovery Console, follow these steps:&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;1.&lt;br /&gt;Insert the Windows XP CD into the CD-ROM drive.&lt;br /&gt;2.&lt;br /&gt;Click Start, and then click Run.&lt;br /&gt;3.&lt;br /&gt;In the Open box, type &lt;strong&gt;&lt;span style="color:#ff0000;"&gt;d:\i386\winnt32.exe /cmdcons&lt;/span&gt;&lt;/strong&gt; where d is the drive letter for the CD-ROM drive.&lt;br /&gt;4.&lt;br /&gt;A Windows Setup Dialog Box appears. The Windows Setup Dialog Box describes the Recovery Console option. To confirm the installation, click &lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Yes&lt;/span&gt;&lt;/strong&gt;.&lt;br /&gt;5.&lt;br /&gt;Restart the computer. The next time that you start your computer, "&lt;span style="color:#ff0000;"&gt;Microsoft Windows Recovery Console&lt;/span&gt;" appears on the startup menu.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc33cc;"&gt;&lt;strong&gt;To run the Recovery Console from the Windows XP startup disks or the Windows XP CD-ROM, follow these steps:&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;1.&lt;br /&gt;Insert the Windows XP startup disk into the floppy disk drive, or insert the Windows XP CD-ROM into the CD-ROM drive, and then restart the computer. Click to select any options that are required to start the computer from the CD-ROM drive if you are prompted.&lt;br /&gt;2.&lt;br /&gt;When the "Welcome to Setup" screen appears, press &lt;span style="color:#ff0000;"&gt;R&lt;/span&gt; to start the Recovery Console.&lt;br /&gt;3.&lt;br /&gt;If you have a dual-boot or multiple-boot computer, select the installation that you must access from the Recovery Console.&lt;br /&gt;4.&lt;br /&gt;When you are prompted, type the Administrator password. If the administrator password is blank, just press ENTER.&lt;br /&gt;5.&lt;br /&gt;At the command prompt, type the appropriate commands to diagnose and repair your Windows XP installation. For a list of commands that are available in Recovery Console, type recovery console commands or help at the command prompt, and then press ENTER. For information about a specific command, type help commandname at the command prompt, and then press ENTER.&lt;br /&gt;6.&lt;br /&gt;To exit the Recovery Console and restart the computer, type exit at the command prompt, and then press ENTER.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4585082652082174732-6402239468413450145?l=samoun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samoun.blogspot.com/feeds/6402239468413450145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4585082652082174732&amp;postID=6402239468413450145' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/6402239468413450145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4585082652082174732/posts/default/6402239468413450145'/><link rel='alternate' type='text/html' href='http://samoun.blogspot.com/2008/04/how-to-install-recovery-console.html' title='How to install recovery console'/><author><name>samoun.el</name><uri>http://www.blogger.com/profile/12680756531467276460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='18' src='http://bp1.blogger.com/_PPS6Wnfq-28/SBZ-GphnUDI/AAAAAAAAADU/bdDnhwio1D4/S220/CIST_logo.jpg'/></author><thr:total>0</thr:total></entry></feed>
