<?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:blogger='http://schemas.google.com/blogger/2008' 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-7057684872730015515</id><updated>2024-09-02T04:25:28.474+05:30</updated><category term="linux"/><category term="Servers"/><category term="command"/><category term="networking"/><category term="samba"/><title type='text'>Linux Tips and Tricks</title><subtitle type='html'>Tips,Tricks and Tutorials for Linux Flavors like RedHat,Fedora,CentOS and Ubuntu for all Linux Users and System Administrators</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tipsntricksforlinux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tipsntricksforlinux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sumit Patel</name><uri>http://www.blogger.com/profile/17165622637720498944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_632kt37N0UdjDACvQFyJOxZ-LWOD5D7Rw-Zvz4sDAdS5XnN1s-pUEd47kY7ByQfmYE-njb9TkcvRDR1NnR2d3WxCQZpwjGX1vZWywEuqMuKZyO6QnUnRrqj8E-CTgz8/s220/DSC00043.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7057684872730015515.post-5300026961580711825</id><published>2011-01-18T00:02:00.003+05:30</published><updated>2011-02-04T23:18:33.932+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Servers"/><title type='text'>Enable Mail Notification for CVS Commit on CVS Server</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Ever wanted to be notified by email to know about who has committed which files and when in specific project in CVS ? Well, Following is the configuration and procedure to enable email notification on CVS Server for cvs commit.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold; text-decoration: underline;&quot;&gt;Step 1 :&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; Add the following line in&amp;nbsp;&quot; loginfo&quot; file in the respective CVSROOT ( e.g. /home/cvs/CVSROOT/loginfo) to enable logging of commit for the respective repository&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;^repositoryname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (echo &quot;At `date`, `whoami` has modified/added following file(s).&quot;; echo &quot;New Versions are :&quot; %v . ; cat ; ) | grep -v -w &quot;In directory &quot; &amp;gt;&amp;gt; /var/log/cvslog/commitlog&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In above line &lt;/span&gt;&lt;span style=&quot;font-size: small; font-style: italic; font-weight: bold;&quot;&gt;&quot; ^repositoryname &quot;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; is a repository name for which you want to enable logging. The remainder line is containing the command or filter program&amp;nbsp;to execute whenever any matches found ( i.e. any commit has been made to the specified repository ) . Explanations for each switch used in above command are as follows.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;&amp;nbsp;&quot; &amp;nbsp;s = file name &quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;&amp;nbsp; V = old version number (pre-checkin) &quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot; &amp;nbsp;v = new version number (post-checkin) &quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;So,&amp;nbsp;in simple words what above line will do is whenever any user make cvs commit to that repository, it will collect information such as username, date and time when it is committed, new version numbers, names, etc. and put it into one file ( /var/log/cvslog/commitlog in this case) and it will append the same file for all commit made to that repository&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Now we will set one script to simply send that log file to the specified email as shown in below and we will put this script in crontab to run at 6:00 PM everyday&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold; text-decoration: underline;&quot;&gt;Step 2 :&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Create cvsmail.csh file on your CVS Server linux machine and add following contents into it and save it&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;[root@CVS ~]# vi /home/cvs/cvsmail.csh&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;#!/bin/csh&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;if ( `ll /var/log/cvslog | grep -w commitlog | wc -l` &amp;gt; 0 ) mail -s &quot; CVS Commit Notification for repositoryname&quot; &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;abc@example.com&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt; &amp;lt; /var/log/cvslog/commitlog &amp;amp;&amp;amp; if ( `ll /var/log/cvslog | grep -w commitlog | wc -l` &amp;gt; 0 ) rm -rf /var/log/cvslog/commitlog&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;[root@CVS ~]# chmod +x /home/cvs/cvsmail.csh&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;[root@CVS ~]# su - cvs&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold; text-decoration: underline;&quot;&gt;Step 3 :&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Create Crontab entry to schedule email notification at 6:00 PM daily. add following contents into it and save it. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;[cvs@CVS ~]$ crontab -e&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;00&amp;nbsp; 18 * * * /home/cvs/cvsmail.csh&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small; font-weight: bold;&quot;&gt;[cvs@CVS ~]$&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;What above line will do is it will check if any commit made to any file in specified repository by checking if commitlog log file exists or not , if it is then it will send that log file to the specified email id and then remove that log file. Mail will be sent from id cvs@cvs.com&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;-&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Sumit&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsntricksforlinux.blogspot.com/feeds/5300026961580711825/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2011/01/enable-mail-notification-for-cvs-commit.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/5300026961580711825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/5300026961580711825'/><link rel='alternate' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2011/01/enable-mail-notification-for-cvs-commit.html' title='Enable Mail Notification for CVS Commit on CVS Server'/><author><name>Sumit Patel</name><uri>http://www.blogger.com/profile/17165622637720498944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_632kt37N0UdjDACvQFyJOxZ-LWOD5D7Rw-Zvz4sDAdS5XnN1s-pUEd47kY7ByQfmYE-njb9TkcvRDR1NnR2d3WxCQZpwjGX1vZWywEuqMuKZyO6QnUnRrqj8E-CTgz8/s220/DSC00043.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7057684872730015515.post-1028610133772595111</id><published>2011-01-01T15:28:00.000+05:30</published><updated>2011-01-01T15:28:01.171+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><title type='text'>Configure Linux Server as a Router / Gateway</title><content type='html'>&lt;w:view&gt;&lt;/w:view&gt;&lt;w:trackformatting&gt;&lt;w:punctuationkerning&gt;&lt;w:validateagainstschemas&gt;&lt;w:donotpromoteqf&gt;&lt;w:lidthemecomplexscript&gt;&lt;/w:lidthemecomplexscript&gt; &lt;w:compatibility&gt;&lt;w:breakwrappedtables&gt;&lt;w:snaptogridincell&gt;&lt;w:wraptextwithpunct&gt;&lt;w:useasianbreakrules&gt;&lt;w:dontgrowautofit&gt;&lt;w:splitpgbreakandparamark&gt;&lt;w:dontvertaligncellwithsp&gt;&lt;w:dontbreakconstrainedforcedtables&gt;&lt;w:dontvertalignintxbx&gt;&lt;w:word11kerningpairs&gt;&lt;w:cachedcolbalance&gt;&lt;/w:cachedcolbalance&gt;&lt;m:mathpr&gt;&lt;m:mathfont m:val=&quot;Cambria Math&quot;&gt;&lt;m:brkbin m:val=&quot;before&quot;&gt;&lt;m:brkbinsub m:val=&quot;--&quot;&gt;&lt;m:smallfrac m:val=&quot;off&quot;&gt;&lt;m:dispdef&gt;&lt;m:lmargin m:val=&quot;0&quot;&gt;&lt;m:rmargin m:val=&quot;0&quot;&gt;&lt;m:defjc m:val=&quot;centerGroup&quot;&gt;&lt;m:wrapindent m:val=&quot;1440&quot;&gt;&lt;m:intlim m:val=&quot;subSup&quot;&gt;&lt;m:narylim m:val=&quot;undOvr&quot;&gt;&lt;/m:narylim&gt;&lt;/m:intlim&gt;&lt;/m:wrapindent&gt;&lt;style&gt;
&lt;!--
 /* Font Definitions */
 @font-face
 {font-family:Wingdings;
 panose-1:5 0 0 0 0 0 0 0 0 0;
 mso-font-charset:2;
 mso-generic-font-family:auto;
 mso-font-pitch:variable;
 mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
 {font-family:&quot;Cambria Math&quot;;
 panose-1:2 4 5 3 5 4 6 3 2 4;
 mso-font-charset:1;
 mso-generic-font-family:roman;
 mso-font-format:other;
 mso-font-pitch:variable;
 mso-font-signature:0 0 0 0 0 0;}
@font-face
 {font-family:Calibri;
 panose-1:2 15 5 2 2 2 4 3 2 4;
 mso-font-charset:0;
 mso-generic-font-family:swiss;
 mso-font-pitch:variable;
 mso-font-signature:-520092929 1073786111 9 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
 {mso-style-unhide:no;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:Calibri;
 mso-fareast-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
 {mso-style-priority:34;
 mso-style-unhide:no;
 mso-style-qformat:yes;
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:.5in;
 mso-add-space:auto;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:Calibri;
 mso-fareast-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
 {mso-style-priority:34;
 mso-style-unhide:no;
 mso-style-qformat:yes;
 mso-style-type:export-only;
 margin-top:0in;
 margin-right:0in;
 margin-bottom:0in;
 margin-left:.5in;
 margin-bottom:.0001pt;
 mso-add-space:auto;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:Calibri;
 mso-fareast-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
 {mso-style-priority:34;
 mso-style-unhide:no;
 mso-style-qformat:yes;
 mso-style-type:export-only;
 margin-top:0in;
 margin-right:0in;
 margin-bottom:0in;
 margin-left:.5in;
 margin-bottom:.0001pt;
 mso-add-space:auto;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:Calibri;
 mso-fareast-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
 {mso-style-priority:34;
 mso-style-unhide:no;
 mso-style-qformat:yes;
 mso-style-type:export-only;
 margin-top:0in;
 margin-right:0in;
 margin-bottom:10.0pt;
 margin-left:.5in;
 mso-add-space:auto;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:Calibri;
 mso-fareast-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
 {mso-style-type:export-only;
 mso-default-props:yes;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:Calibri;
 mso-fareast-theme-font:minor-latin;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;
 mso-bidi-font-family:&quot;Times New Roman&quot;;
 mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
 {mso-style-type:export-only;
 margin-bottom:10.0pt;
 line-height:115%;}
@page WordSection1
 {size:8.5in 11.0in;
 margin:1.0in 1.0in 1.0in 1.0in;
 mso-header-margin:.5in;
 mso-footer-margin:.5in;
 mso-paper-source:0;}
div.WordSection1
 {page:WordSection1;}
 /* List Definitions */
 @list l0
 {mso-list-id:204951863;
 mso-list-type:hybrid;
 mso-list-template-ids:-761363224 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
 {mso-level-number-format:bullet;
 mso-level-text:;
 mso-level-tab-stop:none;
 mso-level-number-position:left;
 text-indent:-.25in;
 font-family:Symbol;}
@list l1
 {mso-list-id:472258616;
 mso-list-type:hybrid;
 mso-list-template-ids:-1362481004 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
 {mso-level-number-format:bullet;
 mso-level-text:;
 mso-level-tab-stop:none;
 mso-level-number-position:left;
 text-indent:-.25in;
 font-family:Symbol;}
@list l2
 {mso-list-id:775053320;
 mso-list-type:hybrid;
 mso-list-template-ids:-1140021284 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
 {mso-level-number-format:bullet;
 mso-level-text:;
 mso-level-tab-stop:none;
 mso-level-number-position:left;
 text-indent:-.25in;
 font-family:Symbol;}
@list l2:level2
 {mso-level-number-format:bullet;
 mso-level-text:o;
 mso-level-tab-stop:none;
 mso-level-number-position:left;
 text-indent:-.25in;
 font-family:&quot;Courier New&quot;;}
@list l3
 {mso-list-id:894582344;
 mso-list-type:hybrid;
 mso-list-template-ids:745322410 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l3:level1
 {mso-level-number-format:bullet;
 mso-level-text:;
 mso-level-tab-stop:none;
 mso-level-number-position:left;
 text-indent:-.25in;
 font-family:Symbol;}
@list l4
 {mso-list-id:1426539522;
 mso-list-type:hybrid;
 mso-list-template-ids:929618560 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l4:level1
 {mso-level-text:&quot;%1\)&quot;;
 mso-level-tab-stop:none;
 mso-level-number-position:left;
 text-indent:-.25in;}
@list l5
 {mso-list-id:1527862482;
 mso-list-type:hybrid;
 mso-list-template-ids:-372985370 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l5:level1
 {mso-level-text:&quot;%1\)&quot;;
 mso-level-tab-stop:none;
 mso-level-number-position:left;
 text-indent:-.25in;}
ol
 {margin-bottom:0in;}
ul
 {margin-bottom:0in;}
--&gt;
&lt;/style&gt;  &lt;/m:defjc&gt;&lt;/m:rmargin&gt;&lt;/m:lmargin&gt;&lt;/m:dispdef&gt;&lt;/m:smallfrac&gt;&lt;/m:brkbinsub&gt;&lt;/m:brkbin&gt;&lt;/m:mathfont&gt;&lt;/m:mathpr&gt;&lt;/w:word11kerningpairs&gt;&lt;/w:dontvertalignintxbx&gt;&lt;/w:dontbreakconstrainedforcedtables&gt;&lt;/w:dontvertaligncellwithsp&gt;&lt;/w:splitpgbreakandparamark&gt;&lt;/w:dontgrowautofit&gt;&lt;/w:useasianbreakrules&gt;&lt;/w:wraptextwithpunct&gt;&lt;/w:snaptogridincell&gt;&lt;/w:breakwrappedtables&gt;&lt;/w:compatibility&gt;&lt;/w:donotpromoteqf&gt;&lt;/w:validateagainstschemas&gt;&lt;/w:punctuationkerning&gt;&lt;/w:trackformatting&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;We can configure Linux Server as a Router or Gateway so that we can establish connection between two different networks which are not directly connected with each other without any use of Routing/Gateway Device.&lt;br /&gt;
&amp;nbsp;&lt;b&gt;&lt;u&gt; &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Objective&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;We will create two subnet and will establish connection with two machines which are having different subnet’s IP Address and are not directly connected to each other. We will use Linux&amp;nbsp; Operating System in both PCs and will also use Linux PC which will act as a Router to establish connection between two different networks&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;We should be able to ping both machines from each other successfully&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Requirements:&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Three Linux PCs. Two Linux PC with One NIC and One Linux PC with two NICs&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;2 No. of 8 Port Unmanaged Network Switch&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Network Diagram&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR66tHiFYF0pmXGUmQv06v1WlYHdKNBk-YB-jn6WkQ_VvW56EKbcbzMqv6gOWjH3dH8hdOBI8_1oAe-Qw_Wwo2D1VRZtjBG9cy_kd-_7NhfZOMUxlZ9DsyoSgRFrjA8KwZHkNfPwsD9xc/s1600/linux1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;316&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR66tHiFYF0pmXGUmQv06v1WlYHdKNBk-YB-jn6WkQ_VvW56EKbcbzMqv6gOWjH3dH8hdOBI8_1oAe-Qw_Wwo2D1VRZtjBG9cy_kd-_7NhfZOMUxlZ9DsyoSgRFrjA8KwZHkNfPwsD9xc/s400/linux1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Configuration Details&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;PC1 is connected to 8 port Switch as shown in network diagram. &lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;PC2 is connected to another 8 port Switch as shown in network diagram. &lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;ROUTERPC is connected to 8 port switch through ETH0 as shown in network diagram. &lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;ROUTERPC is connected to another 8 port switch through ETH1 as shown in network diagram. &lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Network1&amp;nbsp; : 10.100.53.0/24&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Network2&amp;nbsp; : 10.100.50.0/24&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;PC1 IP Address : 10.100.50.254&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;PC2 IP Address : 10.100.53.254&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;ROUTERPC’s ETH0 IP Address : 10.100.50.15&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;ROUTERPC’s ETH1 IP Address : 10.100.53.16&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Configuration Steps:&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Assign IP Address 10.100.50.254 to PC1 as shown in below screenshot&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhgzQ0AMqCf8ttOtD68Y4kuY4nmKXSto_4bpZD9XE5ywLx7ZsJ96GaW-N3_246hvZNytX2Sh1-V7QG9gaWyWpJPp9KZy8QEZYvQAMlI-gwC69KRDeic3NXQAFHF4pWy0k5MJr720INyXI/s1600/linux2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhgzQ0AMqCf8ttOtD68Y4kuY4nmKXSto_4bpZD9XE5ywLx7ZsJ96GaW-N3_246hvZNytX2Sh1-V7QG9gaWyWpJPp9KZy8QEZYvQAMlI-gwC69KRDeic3NXQAFHF4pWy0k5MJr720INyXI/s400/linux2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;2)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Assign IP Address 10.100.53.254 to PC2 as shown in below screenshot&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDz1sZAN092ZNacY9yPaBCaYrEk5ufPx9kBje-4mOiMX8lrZx47MbDzw27wYglmbPhM-n7BT5CyBFx77DYsoBoG0-isWoq8ugtfE3MhXO1kKz5DqkMoBdinWPfY3YaEL7lZy9jI2EykEM/s1600/linux3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDz1sZAN092ZNacY9yPaBCaYrEk5ufPx9kBje-4mOiMX8lrZx47MbDzw27wYglmbPhM-n7BT5CyBFx77DYsoBoG0-isWoq8ugtfE3MhXO1kKz5DqkMoBdinWPfY3YaEL7lZy9jI2EykEM/s400/linux3.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;3)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Assign IP Address 10.100.50.15 to ETH0 interface of ROUTERPC&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhplS31mEY3XX73fDPZGARBDBTckQOmyYq-r3RqJpsbeT8M8vAf-BKZr652Kgxgpt_A0V7jconqYZmxEV-Ufc66B-VjY9KUzLBNk5BZJIIJDTQJQbJ31-XtauB8izwxNlPlFpus9GeYVAI/s1600/linux4.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhplS31mEY3XX73fDPZGARBDBTckQOmyYq-r3RqJpsbeT8M8vAf-BKZr652Kgxgpt_A0V7jconqYZmxEV-Ufc66B-VjY9KUzLBNk5BZJIIJDTQJQbJ31-XtauB8izwxNlPlFpus9GeYVAI/s400/linux4.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;4)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Assign IP Address 10.100.53.16 to ETH1 interface of ROUTERPC&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQggZQv7yujlpYoksHtie5V1BsTurFN0r6n9Kz7WEMMd78HcjZA0no6HkF9XVpwUg2UByQBX6kfSqArxugEY1y1nhNqD_CbONzsoUnLU9LozC1gtF5MTXxMnrCoSInA6OvjtffxpH-r_g/s1600/linux5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQggZQv7yujlpYoksHtie5V1BsTurFN0r6n9Kz7WEMMd78HcjZA0no6HkF9XVpwUg2UByQBX6kfSqArxugEY1y1nhNqD_CbONzsoUnLU9LozC1gtF5MTXxMnrCoSInA6OvjtffxpH-r_g/s400/linux5.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;5)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Open /etc/sysctl.conf file in vi editor and set&lt;b&gt;&lt;i&gt; net.ipv4.ip_forward = 1&lt;/i&gt;&lt;/b&gt; . This will enable IP forwarding/Routing on ROUTERPC as shown in below screenshot&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGTyW2DnNkDAbi_wIaUPvCVqg9GL09qqQbS9OsWWV7lIzxuhqBqS7ErKrrtyO9pkwEAACsHrc8Nu1Si9Y4_gMqkmrpfTIFjNMkpWmXMGtmyyalDc4PHFwoo8975yVLLSDD-RO4_nB8VIM/s1600/linux6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGTyW2DnNkDAbi_wIaUPvCVqg9GL09qqQbS9OsWWV7lIzxuhqBqS7ErKrrtyO9pkwEAACsHrc8Nu1Si9Y4_gMqkmrpfTIFjNMkpWmXMGtmyyalDc4PHFwoo8975yVLLSDD-RO4_nB8VIM/s400/linux6.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;6)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Add static route on PC1 as shown below.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeXe4SDFtYTIazDG54aDI9GnTFO8jG3_rn1l83emzJpwGMPmR37MsLFxO5ygozIE4oLJwrF3aj-6nSawFBoMNIHlHhK47PtC8XZlIvpQX5XMAdmm5RPeFjhMG5QA3zFSwsPpfuesXiAig/s1600/linux7.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeXe4SDFtYTIazDG54aDI9GnTFO8jG3_rn1l83emzJpwGMPmR37MsLFxO5ygozIE4oLJwrF3aj-6nSawFBoMNIHlHhK47PtC8XZlIvpQX5XMAdmm5RPeFjhMG5QA3zFSwsPpfuesXiAig/s400/linux7.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;7)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Add static route on PC2 as shown below.&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQvafB-yY_dHnO4HcQ7GqipqoDYThYV9cEC6lwYTfrzmmPb8qCozC_keO7D222EmORm_nW6e3yyAIdWiCsuq6hTCli1eRaqQLhgMU8lKi8RR2KCiTGvwFd3HI_DffadGZmNKW6TtV8tE4/s1600/linux8.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQvafB-yY_dHnO4HcQ7GqipqoDYThYV9cEC6lwYTfrzmmPb8qCozC_keO7D222EmORm_nW6e3yyAIdWiCsuq6hTCli1eRaqQLhgMU8lKi8RR2KCiTGvwFd3HI_DffadGZmNKW6TtV8tE4/s400/linux8.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Expected Results:&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;1)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;PC1 should be able to get ping reply from ROUTERPC&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;2)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;PC1 should be able to get ping reply from PC2&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;3)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;PC2 should be able to get ping reply from ROUTERPC&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;4)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;PC2 should be able to get ping reply from PC1&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;5)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;PC1 should be able to traceroute to PC2 through ROUTERPC&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;6)&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;PC2 should be able to traceroute to PC1 through ROUTERPC&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;o:p&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;u&gt;Testing:&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Ping from PC1 ( 10.100.50.254 ) to ROUTERPC’s ETH0 interface IP ( 10.100.50.15) and Ping from PC1 ( 10.100.50.254 ) to ROUTERPC’s ETH1 interface IP ( 10.100.53.16) as shown in below screenshot&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkKv_BFs7SJ74lTSv5UJtBUwmv7ocM79nwQpu7JXbHNpAcwnApZPXkr8GBT0_0ttj7uaYS5K8qZpIq-q0W0_lmQHDKnu9-zJKtY-1Um23jxjM0HcokXEOCjDb_Bpng_zBEIk9llhs4TWk/s1600/linux9.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;278&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkKv_BFs7SJ74lTSv5UJtBUwmv7ocM79nwQpu7JXbHNpAcwnApZPXkr8GBT0_0ttj7uaYS5K8qZpIq-q0W0_lmQHDKnu9-zJKtY-1Um23jxjM0HcokXEOCjDb_Bpng_zBEIk9llhs4TWk/s400/linux9.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Ping from PC2 ( 10.100.53.254 ) to ROUTERPC’s ETH0 interface IP ( 10.100.50.15) and Ping from PC2 ( 10.100.53.254 ) to ROUTERPC’s ETH1 interface IP ( 10.100.53.16) as shown in below screenshot&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFc4mfH8kC8sFYkoXQQ6uuTnYi-OCf5ywd_rRoO7Kt1KjRewUJpmyY_PTRgnx7zVoXZ9tLOB0rTFGNco5rb-I4MRnegT57-im24ITIQuBi32czB6FNCZZ_lT3Gtx5LUSTVuu2Yya0Brlo/s1600/linux10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFc4mfH8kC8sFYkoXQQ6uuTnYi-OCf5ywd_rRoO7Kt1KjRewUJpmyY_PTRgnx7zVoXZ9tLOB0rTFGNco5rb-I4MRnegT57-im24ITIQuBi32czB6FNCZZ_lT3Gtx5LUSTVuu2Yya0Brlo/s400/linux10.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;&lt;o:p&gt;&amp;nbsp; &lt;/o:p&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Ping from PC1 ( 10.100.50.254 ) to PC2 ( 10.100.53.254 ) and &amp;nbsp;Traceroute to PC2as shown in below screenshot and&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwvDdQg6EmAQEomx4DsNeVd6zCOJ1DIMdNbXgSb91ARevDZwOI52Cm7AM0JXa2qETYGOxlli0NFj4BKtOTKU72BxNm1D_0jtTksQN9lSJKXU4BNx6EI4lDw9KM3p6GQiAtG-BE-ns1Gn4/s1600/linux11.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;201&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwvDdQg6EmAQEomx4DsNeVd6zCOJ1DIMdNbXgSb91ARevDZwOI52Cm7AM0JXa2qETYGOxlli0NFj4BKtOTKU72BxNm1D_0jtTksQN9lSJKXU4BNx6EI4lDw9KM3p6GQiAtG-BE-ns1Gn4/s400/linux11.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1in; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;Ping from PC2 ( 10.100.53.254 ) to PC1 ( 10.100.50.254 ) Traceroute to PC1 as shown in below screenshot&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHGYjmQgKKWnvu0xkE8lmsQ1gthtn-4qmbhd0qSKxeeBbi1QufmJIfjDEoDIQAeOugMIG8x5Zh3AJX9BNJdcTzryr3jKN_9FloDtNEysuASjlTQA0zIVhBVhF1AisX-gHycv5UP4ReeE/s1600/linux12.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;283&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHHGYjmQgKKWnvu0xkE8lmsQ1gthtn-4qmbhd0qSKxeeBbi1QufmJIfjDEoDIQAeOugMIG8x5Zh3AJX9BNJdcTzryr3jKN_9FloDtNEysuASjlTQA0zIVhBVhF1AisX-gHycv5UP4ReeE/s400/linux12.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;Above exercise may helpful to all newbies who have just started using linux and want to gain more knowledge on linux.&amp;nbsp; We can also use iptables to apply ACLs and security restrictions between two networks.&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
Sumit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsntricksforlinux.blogspot.com/feeds/1028610133772595111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2011/01/configure-linux-server-as-router.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/1028610133772595111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/1028610133772595111'/><link rel='alternate' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2011/01/configure-linux-server-as-router.html' title='Configure Linux Server as a Router / Gateway'/><author><name>Sumit Patel</name><uri>http://www.blogger.com/profile/17165622637720498944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_632kt37N0UdjDACvQFyJOxZ-LWOD5D7Rw-Zvz4sDAdS5XnN1s-pUEd47kY7ByQfmYE-njb9TkcvRDR1NnR2d3WxCQZpwjGX1vZWywEuqMuKZyO6QnUnRrqj8E-CTgz8/s220/DSC00043.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR66tHiFYF0pmXGUmQv06v1WlYHdKNBk-YB-jn6WkQ_VvW56EKbcbzMqv6gOWjH3dH8hdOBI8_1oAe-Qw_Wwo2D1VRZtjBG9cy_kd-_7NhfZOMUxlZ9DsyoSgRFrjA8KwZHkNfPwsD9xc/s72-c/linux1.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7057684872730015515.post-6911259159791653089</id><published>2010-12-28T10:21:00.000+05:30</published><updated>2010-12-28T10:21:29.861+05:30</updated><title type='text'>Windows Tips and Tricks: Access / Mount  Linux NFS share under Windows 7</title><content type='html'>&lt;a href=&quot;http://tipsntricksforwindows.blogspot.com/2010/12/access-mount-linux-nfs-share-under.html?spref=bl&quot;&gt;Access / Mount  Linux NFS share under Windows 7&lt;/a&gt;:&lt;br /&gt;Windows 7 has inbuilt Client for NFS..</content><link rel='replies' type='application/atom+xml' href='http://tipsntricksforlinux.blogspot.com/feeds/6911259159791653089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2010/12/windows-tips-and-tricks-access-mount.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/6911259159791653089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/6911259159791653089'/><link rel='alternate' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2010/12/windows-tips-and-tricks-access-mount.html' title='Windows Tips and Tricks: Access / Mount  Linux NFS share under Windows 7'/><author><name>Sumit Patel</name><uri>http://www.blogger.com/profile/17165622637720498944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_632kt37N0UdjDACvQFyJOxZ-LWOD5D7Rw-Zvz4sDAdS5XnN1s-pUEd47kY7ByQfmYE-njb9TkcvRDR1NnR2d3WxCQZpwjGX1vZWywEuqMuKZyO6QnUnRrqj8E-CTgz8/s220/DSC00043.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7057684872730015515.post-1686135366568410393</id><published>2010-12-28T00:42:00.001+05:30</published><updated>2011-01-01T09:39:21.759+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="samba"/><title type='text'>Configure Linux Samba Server as a Primary Domain Controller</title><content type='html'>&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;We can use Samba as a Primary Domain Controller and can add windows machines in that domain. Following is step-by-step guide to configure Samba as a PDC.&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;Step 1 : Configure Samba as PDC ( Primary Domain Controller ) and allow samba to act as a Domain Controller&lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;To allow Samba to act as a Primary Domain Controller, we need to set certain options in smb.conf file. Open &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;/etc/samba/smb.conf&lt;/span&gt; file and under&amp;nbsp; &lt;span style=&quot;font-weight: bold;&quot;&gt;[global] &lt;/span&gt;section, set options as mentioned below.&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;==================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;[global]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;workgroup = smb&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ###Give your desired netbios domain name here e.g. TESTDOMAIN or ABC &lt;span style=&quot;font-weight: bold;&quot;&gt;(without &quot;.com &quot;&lt;/span&gt; ) ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;netbios name = eildap&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;### &lt;/span&gt;This will be netbios name of your samba server&amp;nbsp; ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;server string = Samba PDC Server&amp;nbsp;&amp;nbsp; &lt;/span&gt;### You can set your own description here ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;security = user&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;encrypt passwords = yes&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;hosts allow = 127. 192.168. 172.16.&amp;nbsp;&amp;nbsp; &lt;/span&gt;### List down all networks which you want to allow to access samba services ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;log file = /var/log/samba/%m.log&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;### To enable machine specific log&amp;nbsp; for troubleshooting&amp;nbsp; ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;max log size = 50&amp;nbsp;&amp;nbsp; &lt;/span&gt;### To keep log size limited to 50 KB ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;local master = yes&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;os level = 65&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;domain master = yes&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;preferred master = yes&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;domain logons = yes&amp;nbsp;&amp;nbsp; &lt;/span&gt;### This option will actually enables samba to be a PDC and will act as a domain controller ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;wins support = yes&amp;nbsp;&amp;nbsp; &lt;/span&gt;### WINS Support - Tells the NMBD component of Samba to enable it&#39;s WINS Server ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;username map = /etc/samba/smbusers&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;==================================================&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;Comment out all other options in [global] section if enabled and keep only above mentioned options.&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;Restart samba service by command &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;/etc/init.d/smb restart&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;Step 2 : Set /etc/hosts file to resolve names properly&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;Open /etc/hosts file and make sure you have entries for hostname and samba domain name so that it can resolve names properly without any issue.&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;Step 3 : Set samba password for root so that we can join computer in domain with this username&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;From Linux Terminal type the following command to set the samba password for user root&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;[root@testdomain local]# smabpasswd -a root &lt;/span&gt;### This will enable&amp;nbsp; samba account for user root which we will use to join windows xp computer in domain###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;Step 4 : Add computer account on samba server&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;When we add windows machcine to any Active Directory domain, machine account gets created automatically in&amp;nbsp; OU called Computers in Active Directory, But&amp;nbsp; here in Samba we must add machine account manually on samba server before attempting to add your windows xp client to samba PDC domain . &lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;For example, If I want to add one windows xp machine named &quot; testclient &quot;&amp;nbsp; in samba PDC domain, then I will need to execute following commands on samba server&amp;nbsp; from terminal&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;[root@testdomain local]# useradd -s /bin/false testclient$&amp;nbsp; &lt;/span&gt;&amp;nbsp;### Make sure to suffix &quot; $ &quot; with computername ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;[root@testdomain local]# smabpasswd -a -m testclient$ &lt;/span&gt;### This will add this machine account name in smbpasswd file ###&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;Step 5 : Configure Windows XP Client to add to Samba PDC domain&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;If you are serving IP      addresses through DHCP server then , you can configure your dhcp to set      WINS Server IP on client machine.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;If you are not running dhcp      server and giving static ip to client machine , Go to Control Panel--&amp;gt;      Network Connections --&amp;gt; Right click on &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot; Local      Area Connection &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; and click on &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;Properties&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;. It will open network      properties.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Now select &quot;Internet      Protocol ( TCP/IP) and click on properties --&amp;gt; click on&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt; &quot; Advance &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; --&amp;gt; click on &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;WINS&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; . Now add WINS Server ( IP      of Samba PDC Domain Server )&amp;nbsp; as      shown below. Also click &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;Enable Netbios over TCP/IP &quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRU0SEyXusSYtS96mD1w-B4ZbEnxqlWGBZOhHgQ6leuoBlBhjOqcTIzAV5Y3W1Lg2_OXQpBJtRgSypr97qFhbnKd3SYKbbzZBVWkcVylskhkRkYRCFWlOxKwya0-r60uq5p2lv7ngYWwY/s1600/samba1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRU0SEyXusSYtS96mD1w-B4ZbEnxqlWGBZOhHgQ6leuoBlBhjOqcTIzAV5Y3W1Lg2_OXQpBJtRgSypr97qFhbnKd3SYKbbzZBVWkcVylskhkRkYRCFWlOxKwya0-r60uq5p2lv7ngYWwY/s320/samba1.png&quot; width=&quot;263&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;To force Windows XP      Professional clients to accept Samba as a PDC, we need to use Group Policy      Editor. Go to Start--&amp;gt; Run--&amp;gt; Type &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot;      gpedit.msc &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;      and press &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;ENTER&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;. It will open group policy console.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Expand Computer Configuration      --&amp;gt; Windows Setting--&amp;gt; Security Settings--&amp;gt; Local Policies--&amp;gt; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;User Rights Assignments&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; and Make sure to disable the following policies&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in 0in 0in 0.375in;&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;Domain Member: Digitally encrypt or sign secure channel data (always)&lt;br /&gt;
Domain Member: Digitally sign secure channel data (when possible)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in 0in 0in 0.375in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5muTNF-gD5reh_z1Yq_ev8HA1a_HG00hG2WdYjiqWzqYFnai5NIEq_4v9GLr81CPoJuz60TP5ny-e_Hqy5eAlidcVDK_QGmLf33fs_pcF2SUGPxZkomA122pgcAAG8syrtqsH0tVRzBQ/s1600/samba.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5muTNF-gD5reh_z1Yq_ev8HA1a_HG00hG2WdYjiqWzqYFnai5NIEq_4v9GLr81CPoJuz60TP5ny-e_Hqy5eAlidcVDK_QGmLf33fs_pcF2SUGPxZkomA122pgcAAG8syrtqsH0tVRzBQ/s320/samba.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin: 0in 0in 0in 0.375in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in 0in 0in 0.375in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;Now we are good to go ahead and add this particular windows xp machine in samba pdc domain&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;span style=&quot;font-weight: bold; text-decoration: underline;&quot;&gt;Step 6 : Add Windows XP machine in Samba PDC Domain&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Right Click on &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot; My Computer &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; icon and click on &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;Properties&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; --&amp;gt; Go to &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot;Computer Name &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; tab --&amp;gt; Click on &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot;Change&quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; button&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;Select &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot; Domain &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; radio button and&amp;nbsp;      type Samba PDC Name which we configured earlier in smb.conf, in      this case it is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&amp;nbsp;&quot; SMB &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; and click on OK , it will      prompt you to enter username and password , give username as &quot; root      &quot; and password which we configured in Step 3&amp;nbsp; and click on OK. &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;You should then receive      welcome message e.g. &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-style: italic; font-weight: bold;&quot;&gt;&quot; Welcome to SMB domain &quot;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; , click on OK button and      restart your computer. &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;direction: ltr; margin-bottom: 0in; margin-left: 0.375in; margin-top: 0in; unicode-bidi: embed;&quot; type=&quot;disc&quot;&gt;&lt;li style=&quot;margin-bottom: 0pt; margin-top: 0pt; vertical-align: middle;&quot;&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt;After restart you should be      able to see &lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt; font-weight: bold;&quot;&gt;CTRL + ALT + DEL screen at logon&lt;/span&gt;&lt;span style=&quot;font-family: Calibri; font-size: 12pt;&quot;&gt; and you should be able to      login to domain !!&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;This way you can use Linux Samba Server to act as Primary Domain Controller and&amp;nbsp; at some extent we can implement Group Policy to restrict/allow various access to local computer.!!&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;--&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 12pt; margin: 0in;&quot;&gt;Sumit&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsntricksforlinux.blogspot.com/feeds/1686135366568410393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2010/12/configure-linux-samba-server-as-primary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/1686135366568410393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/1686135366568410393'/><link rel='alternate' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2010/12/configure-linux-samba-server-as-primary.html' title='Configure Linux Samba Server as a Primary Domain Controller'/><author><name>Sumit Patel</name><uri>http://www.blogger.com/profile/17165622637720498944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_632kt37N0UdjDACvQFyJOxZ-LWOD5D7Rw-Zvz4sDAdS5XnN1s-pUEd47kY7ByQfmYE-njb9TkcvRDR1NnR2d3WxCQZpwjGX1vZWywEuqMuKZyO6QnUnRrqj8E-CTgz8/s220/DSC00043.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRU0SEyXusSYtS96mD1w-B4ZbEnxqlWGBZOhHgQ6leuoBlBhjOqcTIzAV5Y3W1Lg2_OXQpBJtRgSypr97qFhbnKd3SYKbbzZBVWkcVylskhkRkYRCFWlOxKwya0-r60uq5p2lv7ngYWwY/s72-c/samba1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7057684872730015515.post-6786961971564730772</id><published>2010-12-13T00:33:00.010+05:30</published><updated>2011-01-01T09:39:36.308+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="command"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Display Timestamp for history command in bash shell</title><content type='html'>&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;br /&gt;
In Linux, We all must be using history command to list down commands which we have used in past and reuse it to save time.&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;Typically when you type &quot; history &quot; command on terminal, it will give you just a list of commands as shown below. &lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;-----------------------------------------------------&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;[root@localhost ~]# history&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp; 980&amp;nbsp; fdisk -l&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp; 981&amp;nbsp; poweroff&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp; 982&amp;nbsp; /etc/init.d/smb status&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp; 983&amp;nbsp; ls&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;-------------------------------------------------------&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;If &lt;b&gt;HISTTIMEFORMAT&lt;/b&gt; variable is set , history command will display Date and Time stamps information for all commands.&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 14pt; margin: 0in;&quot;&gt;[root@localhost ~]# &lt;span style=&quot;font-weight: bold;&quot;&gt;export HISTTIMEFORMAT=&#39; %F %T &#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;[root@localhost ~]# history&lt;span style=&quot;font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp;1012&amp;nbsp; &lt;span style=&quot;font-weight: bold;&quot;&gt;2010-12-12 15:26:16&lt;/span&gt;ifconfig&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp;1013&amp;nbsp; &lt;span style=&quot;font-weight: bold;&quot;&gt;2010-12-12 15:26:23&lt;/span&gt;cat .bashrc&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp;1014&amp;nbsp; &lt;span style=&quot;font-weight: bold;&quot;&gt;2010-12-12 15:26:38&lt;/span&gt;cd /root/&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp;1015&amp;nbsp; &lt;span style=&quot;font-weight: bold;&quot;&gt;2010-12-12 15:26:38&lt;/span&gt;ls&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&amp;nbsp;1016&amp;nbsp; &lt;b&gt;2010-12-12 15:26:43&lt;/b&gt;cd Desktop/&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;[root@localhost Desktop]#&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;---------------------------------------------------------------&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;This can be useful in audit purpose . You can add above mentioned command to your .bashrc&amp;nbsp; file to start storing date and time information as soon as user opens terminal.&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;&lt;br /&gt;
--&lt;/div&gt;&lt;div style=&quot;font-family: Calibri; font-size: 11pt; margin: 0in;&quot;&gt;Sumit&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipsntricksforlinux.blogspot.com/feeds/6786961971564730772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2010/12/display-timestamp-for-history-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/6786961971564730772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7057684872730015515/posts/default/6786961971564730772'/><link rel='alternate' type='text/html' href='http://tipsntricksforlinux.blogspot.com/2010/12/display-timestamp-for-history-command.html' title='Display Timestamp for history command in bash shell'/><author><name>Sumit Patel</name><uri>http://www.blogger.com/profile/17165622637720498944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_632kt37N0UdjDACvQFyJOxZ-LWOD5D7Rw-Zvz4sDAdS5XnN1s-pUEd47kY7ByQfmYE-njb9TkcvRDR1NnR2d3WxCQZpwjGX1vZWywEuqMuKZyO6QnUnRrqj8E-CTgz8/s220/DSC00043.JPG'/></author><thr:total>0</thr:total></entry></feed>