<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
</blockquote></div>Hello Tom<div> You can always change anything your network commands do.</div><div>If you are on a home network you may want to use the host file.</div><div>#cat /etc/hosts</div><div>Will list the file.</div>
<div>And you can edit it using your favorite editor </div><div>example </div><div>#vi /etc/hosts</div><div>vi always makes a backup of the file you edit by adding a tilde to the file name ~.hosts</div><div>Add all your machine names and addresses to this file.</div>
<div>You can then copy it to your other computers.</div><div>And they should communicate just fine.</div><div>Here is an example .</div><div><h1 class="section" style="font-family: 'Times New Roman'; font-size: medium; ">
<a name="AEN6160">9.7. The <tt class="filename">/etc/hosts</tt> file</a></h1><p style="font-family: 'Times New Roman'; font-size: medium; ">As your machine gets started, it will need to know the mapping of some hostnames to <span class="acronym">IP</span> addresses before <span class="acronym">DNS</span> can be referenced. This mapping is kept in the <tt class="filename">/etc/hosts</tt> file. In the absence of a name server, any network program on your system consults this file to determine the <span class="acronym">IP</span> address that corresponds to a host name.</p>
<p style="font-family: 'Times New Roman'; font-size: medium; ">Following is a sample <tt class="filename">/etc/hosts</tt> file:<table border="0" bgcolor="#E0E0E0" width="100%"><tbody><tr><td><pre class="programlisting">
<span class="acronym">IP</span>Address Hostname                  Alias
127.0.0.1                        localhost                  <a href="http://deep.openna.com">deep.openna.com</a>
208.164.186.1                <a href="http://deep.openna.com">deep.openna.com</a>                 deep
208.164.186.2                <a href="http://mail.openna.com">mail.openna.com</a>                 mail
208.164.186.3                <a href="http://web.openna.com">web.openna.com</a>                 web
</pre></td></tr></tbody></table>The leftmost column is the <span class="acronym">IP</span> address to be resolved. The next column is that host's name. Any subsequent columns are alias for that host. In the second line, for example, the <span class="acronym">IP</span> address <tt class="literal">208.164.186.1</tt> is for the host <tt class="literal"><a href="http://deep.openna.com">deep.openna.com</a></tt>. Another name for <tt class="literal"><a href="http://deep.openna.com">deep.openna.com</a></tt> is deep.</p>
<p style="font-family: 'Times New Roman'; font-size: medium; ">After you are finished configuring your networking files, don't forget to restart your network for the changes to take effect.<br></p><p style="font-size: medium; ">
<font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">#sudo service network restart</span></font></p>
<p style="font-size: medium; "><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;">Hope that helps and gives you an easy way to set up your network.</span></font></p>
<p style="font-size: medium; "><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br></span></font></p>
</div><div><br>
</div>