old-www/HOWTO/PLIP-Install-HOWTO-9.html

104 lines
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE> PLIP Install HOWTO: Network parameters</TITLE>
<LINK HREF="PLIP-Install-HOWTO-10.html" REL=next>
<LINK HREF="PLIP-Install-HOWTO-8.html" REL=previous>
<LINK HREF="PLIP-Install-HOWTO.html#toc9" REL=contents>
</HEAD>
<BODY>
<A HREF="PLIP-Install-HOWTO-10.html">Next</A>
<A HREF="PLIP-Install-HOWTO-8.html">Previous</A>
<A HREF="PLIP-Install-HOWTO.html#toc9">Contents</A>
<HR>
<H2><A NAME="s9">9. Network parameters</A> </H2>
<P>
<P>We will make a plip point-to-point network with this IP
configuration:
<UL>
<LI> <B>target</B>: 192.168.0.1 netmask 255.255.255.255</LI>
<LI> <B>source</B>: 192.168.0.2 netmask 255.255.255.255
</LI>
</UL>
<P>You should not already have those names in your name space:
<P>
<PRE>
$ ping source
ping: unknown host source
$ ping target
ping: unknown host target
</PRE>
<P>You should not already have those IP addresses in your network space:
<P>
<PRE>
$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.168.0.1 64 chars, ret=-1
--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
$ ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.168.0.2 64 chars, ret=-1
--- 192.168.0.2 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
</PRE>
<P>If those commands don't give you errors, change the names or the
addresses.
<P>You can choose other addresses, names or netmask (netmask must be the
same on both sides). In the rest of this document, I'll suppose you
choose these addresses and these names.
<P>
<P>Add a line in <B><CODE>/etc/exports</CODE></B>
<P>
<PRE>
#### file /etc/exports ####
...
/cdrom source(ro) target(ro)
#### EOF ####
</PRE>
<P>
<P>Because the portmapper tries to resolve IP addresses, add the IP
addresses and names in <B><CODE>/etc/hosts</CODE></B>
<P>
<PRE>
#### file /etc/hosts ####
...
192.168.0.1 target
192.168.0.2 source
#### EOF ####
</PRE>
<P>Verify you have the item <B><CODE>files</CODE></B> for the
<B><CODE>hosts</CODE></B> search list in the file
<B><CODE>/etc/nsswitch.conf</CODE></B>
<P>
<PRE>
#### file /etc/nsswitch.conf ####
...
hosts: files nis dns
...
#### EOF ####
</PRE>
<P>
<P>
<P>
<HR>
<A HREF="PLIP-Install-HOWTO-10.html">Next</A>
<A HREF="PLIP-Install-HOWTO-8.html">Previous</A>
<A HREF="PLIP-Install-HOWTO.html#toc9">Contents</A>
</BODY>
</HTML>