mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-22 15:07:40 +00:00
bce08efc71
Added chapter07/udev.xml. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4598 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
47 lines
1.2 KiB
XML
47 lines
1.2 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
<sect1 id="ch-scripts-network">
|
|
<title>Configuring the network Script</title>
|
|
<?dbhtml filename="network.html"?>
|
|
|
|
|
|
<sect2>
|
|
<title>Creating Network Interface Configuration Files</title>
|
|
|
|
<para>The following command creates a sample <filename>ipv4</filename> file for the
|
|
<filename>eth0</filename> device:</para>
|
|
|
|
<screen><userinput>cd /etc/sysconfig/network-devices &&
|
|
mkdir ifconfig.eth0 &&
|
|
cat > ifconfig.eth0/ipv4 << "EOF"
|
|
ONBOOT=yes
|
|
SERVICE=ipv4-static
|
|
IP=192.168.1.1
|
|
GATEWAY=192.168.1.2
|
|
PREFIX=24
|
|
BROADCAST=192.168.1.255
|
|
EOF</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 id="resolv.conf">
|
|
<title>Creating the /etc/resolv.conf file</title>
|
|
|
|
<para>Create the file by running the following:</para>
|
|
|
|
<screen><userinput>cat > /etc/resolv.conf << "EOF"
|
|
# Begin /etc/resolv.conf
|
|
|
|
domain {<replaceable>[Your Domain Name]</replaceable>}
|
|
nameserver <replaceable>[IP address of your nameserver]</replaceable>
|
|
|
|
# End /etc/resolv.conf
|
|
EOF</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|