| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/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"<literal>ONBOOT=yesSERVICE=ipv4-staticIP=192.168.1.1GATEWAY=192.168.1.2PREFIX=24BROADCAST=192.168.1.255</literal>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"<literal># Begin /etc/resolv.confdomain {<replaceable>[Your Domain Name]</replaceable>}nameserver <replaceable>[IP address of your primary nameserver]</replaceable>nameserver <replaceable>[IP address of your secondary nameserver]</replaceable># End /etc/resolv.conf</literal>EOF</userinput></screen></sect2></sect1>
 |