| 123456789101112131415161718192021222324252627 | <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 necessarysoftware has been installed. There isn't all that much to do, really,just creating a basic <filename>/etc/hosts</filename> file, and downloadingsome high-quality network information files.</para><para>The first step is to create <filename>/etc/hosts</filename>. This filecontains information allowing resolution of host names to IP addresses.Create a very basic one (we'll make a better one later) with the followingcommand:</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 twonecessary files from it. One is <filename>/etc/services</filename>, which isused 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-Utilsdirectory:</para><para><screen><userinput>cp -f etc/{services,protocols} /etc</userinput></screen></para></sect1>
 |