mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 05:57:43 +00:00
594fd06a31
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2586 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<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,
|
|
just creating a basic /etc/hosts file, and downloading some very
|
|
high-quality network information files.</para>
|
|
|
|
<para>The first step is to create /etc/hosts. This file contains
|
|
information allowing resolution of hostnames to IP addresses. Create a
|
|
very basic one (we'll make a better one later) with the following
|
|
command:</para>
|
|
|
|
<para><screen><userinput>echo '127.0.0.1 $(hostname) localhost' > /etc/hosts</userinput></screen></para>
|
|
|
|
<para>Now unpack the Lfs-Utils tarball again, as we're going to copy two
|
|
necessary files from it. One is the /etc/services file, which is used to
|
|
resolv service numbers to human-readable names, and the /etc/protocols
|
|
file, which does the same for protocol numbers. Copy them with the
|
|
following command after you have entered the Lfs-Utils directory:</para>
|
|
|
|
<para><screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen></para>
|
|
|
|
</sect1>
|
|
|