2003-05-12 01:18:10 +01:00
|
|
|
<sect1 id="ch06-basic-net">
|
|
|
|
<title>Setting up Basic Networking</title>
|
|
|
|
<?dbhtml filename="basic-net.html" dir="chapter06"?>
|
|
|
|
|
|
|
|
<para>Here will be set up basic networking now that all the necessary
|
|
|
|
software has been installed. There isn't all that much to do, really,
|
2003-08-28 22:19:35 +01:00
|
|
|
just creating a basic <filename>/etc/hosts</filename> file, and downloading
|
|
|
|
some high-quality network information files.</para>
|
2003-05-12 01:18:10 +01:00
|
|
|
|
2003-08-28 22:19:35 +01:00
|
|
|
<para>The first step is to create <filename>/etc/hosts</filename>. This file
|
|
|
|
contains information allowing resolution of host names to IP addresses.
|
2003-10-05 22:51:26 +01:00
|
|
|
Create a very basic one (we'll make a better one later, but Perl needs it now
|
|
|
|
for doing some tests) with the following command:</para>
|
2003-05-12 01:18:10 +01:00
|
|
|
|
2003-05-13 08:50:11 +01:00
|
|
|
<para><screen><userinput>echo "127.0.0.1 $(hostname) localhost" > /etc/hosts</userinput></screen></para>
|
2003-05-12 01:18:10 +01:00
|
|
|
|
|
|
|
<para>Now unpack the Lfs-Utils tarball again, as we're going to copy two
|
2003-08-28 22:19:35 +01:00
|
|
|
necessary files from it. One is <filename>/etc/services</filename>, which is
|
|
|
|
used to resolve service numbers to human-readable names, and the other is
|
|
|
|
<filename>/etc/protocols</filename>, which does the same for protocol numbers.
|
|
|
|
Copy them with the following command after you have entered the Lfs-Utils
|
|
|
|
directory:</para>
|
2003-05-12 01:18:10 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen></para>
|
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|