<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.7">
 <TITLE>Red Hat Network Device Configuration Tips: Devices</TITLE>
 <LINK HREF="Network-Config-Tips-6.html" REL=next>
 <LINK HREF="Network-Config-Tips-4.html" REL=previous>
 <LINK HREF="Network-Config-Tips.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="Network-Config-Tips-6.html">Next</A>
<A HREF="Network-Config-Tips-4.html">Previous</A>
<A HREF="Network-Config-Tips.html#toc5">Contents</A>
<HR>
<H2><A NAME="devices"></A> <A NAME="s5">5. Devices</A></H2>

<P><CODE>/etc/sysconfig/network-scripts/ifcfg-*</CODE>
<P>For each interface, there is a corresponding file in
<CODE>/etc/sysconfig/network-scripts</CODE>.  The file is named
<CODE>ifcfg-<EM>DEV</EM></CODE>, where <EM>DEV</EM> is the name
of the network device, such as <CODE>eth0</CODE>, <CODE>ppp0</CODE>, or
<CODE>eth0:1</CODE>.  You can bring an interface up or down by running the
following commands as root from
<CODE>/etc/sysconfig/network-scripts</CODE>:
<P>
<BLOCKQUOTE><CODE>
ifup ifcfg-<EM>DEV</EM><BR>
ifdown ifcfg-<EM>DEV</EM>
</CODE></BLOCKQUOTE>
<P>Alternately this can also be done with the following commands as root from anywhere on the system:
<P>
<BLOCKQUOTE><CODE>
ifup <EM>DEV</EM>
</CODE></BLOCKQUOTE>
<P>For the first ethernet device on the system the command would look like:
<P>
<BLOCKQUOTE><CODE>
<PRE>
        ifup eth0
</PRE>
</CODE></BLOCKQUOTE>
<P>
<DL>
<P>
<DT><B>DEVICE</B><DD><P>The network device name you would give to
<CODE>ifconfig</CODE>, e.g., <CODE>eth0</CODE>, <CODE>ppp0</CODE>, etc.
Also works for aliases, e.g., <CODE>eth0:0</CODE>.
<P>
<DT><B>IPADDR</B><DD><P>IP address to be assigned to this interface.
<P>
<DT><B>NETMASK</B><DD><P>Netmask for this interface.
<P>
<DT><B>NETWORK</B><DD><P>Address for the network attached to this
interface.
<P>
<DT><B>BROADCAST</B><DD><P>Broadcast address for this interface.
<P>
<DT><B>ONBOOT (y/n)</B><DD><P>Whether or not the interface should be
enabled at boot time.
<P>
<DT><B>ISPCMCIA (y/n)</B><DD><P>Whether or not this interface is a PCMCIA
device.
<P>
<DT><B>BOOTPROTO</B><DD><P>One of the following values:
<P>
<DL>
<P>
<DT><B><CODE>bootp</CODE></B><DD><P>Use BOOTP to configure this
interface.
<P>
<DT><B><CODE>dhcp</CODE></B><DD><P>Use DHCP to configure this interface.
<P>
<DT><B><CODE>none</CODE></B><DD><P>Don't use a boot protocol to
configure this interface.
<P>
</DL>
<P>
</DL>
<P>
<P>
<HR>
<A HREF="Network-Config-Tips-6.html">Next</A>
<A HREF="Network-Config-Tips-4.html">Previous</A>
<A HREF="Network-Config-Tips.html#toc5">Contents</A>
</BODY>
</HTML>