<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [NTLUG:Discuss] Multiple IP's on a NIC</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Well, when I try that, I get the same net effect as before:&nbsp; if I issue ifup eth0:0 I get an alias ip for eth0.&nbsp; However, if I issue ifdown eth0:0 it takes down the NIC itself!&nbsp; If possible, I would like to be able to add/delete alias ip's &quot;on the fly.&quot;</FONT></P>

<P><FONT SIZE=2>Try it for yourself.&nbsp; Just be sure you don't have a problem rebooting, because so far that is what I have had to do to get rid of unwanted aliases!</FONT></P>

<P><FONT SIZE=2>Gregory L. Camp</FONT>
<BR><FONT SIZE=2>Gregory.Camp@osc.com</FONT>
</P>
<BR>

<P><FONT SIZE=2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; From: James L. Skidmore [<A HREF="mailto:james@linux-guy.com">mailto:james@linux-guy.com</A>]</FONT>
<BR><FONT SIZE=2>&gt; Sent: Friday, September 29, 2000 12:03 PM</FONT>
<BR><FONT SIZE=2>&gt; To: 'discuss@ntlug.org'</FONT>
<BR><FONT SIZE=2>&gt; Subject: RE: [NTLUG:Discuss] Multiple IP's on a NIC</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; That's no problem :-)</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Redhat sets the NIC's in /etc/sysconfig/network-scripts/</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; In that directory, you should find at least ifcfg-eth0 and possibly</FONT>
<BR><FONT SIZE=2>&gt; ifcfg-eth1 if you have set up two NIC's.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; copy the ifcfg-eth0 to ifcfg-eth0:0 (eth0:1, etc.) and change the IP</FONT>
<BR><FONT SIZE=2>&gt; address/network addr/broadcast addr - etc.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; You can then use /etc/rc.d/init.d/network </FONT>
<BR><FONT SIZE=2>&gt; (stop|start|restart) to bring</FONT>
<BR><FONT SIZE=2>&gt; up/take down/ restart all of the interfaces.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ifup eth0 to bring the interface up</FONT>
<BR><FONT SIZE=2>&gt; ifdown eth0 to bring down the interface</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; and of course you can still use ifconfig</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Hope this helps</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ============================================================</FONT>
<BR><FONT SIZE=2>&gt; James L. Skidmore&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; james@linux-guy.com</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://linux-guy.com" TARGET="_blank">http://linux-guy.com</A>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; helpline: metro 817-516-7170</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp; Linux - Consulting - Training - Security - Networks</FONT>
<BR><FONT SIZE=2>&gt; ============================================================</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; On Fri, 29 Sep 2000, Gregory L. Camp wrote:</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; Currently I'm using the command string &quot;ifconfig eth0:0 </FONT>
<BR><FONT SIZE=2>&gt; 192.168.1.1</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; broadcast 192.168.1.255 netmask 255.255.255.0 up&quot; to add </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; secondary, and</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; sometimes tertiary, ip's to a NIC.</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; Here's my two questions: Is this the best way to do this? </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; and Is there a way</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; to remove a secondary ip without taking down the entire NIC?</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; TIA. </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; Gregory L. Camp</FONT>
<BR><FONT SIZE=2>&gt; &gt; &gt; &gt; Gregory.Camp@osc.com</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; --</FONT>
<BR><FONT SIZE=2>&gt; &gt; OSC, a subsidiary of Billing Concepts Corp., a NASDAQ </FONT>
<BR><FONT SIZE=2>&gt; listed Company,</FONT>
<BR><FONT SIZE=2>&gt; &gt; Symbol: &quot;BILL&quot;</FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://ntlug.org/mailman/listinfo/discuss" TARGET="_blank">http://ntlug.org/mailman/listinfo/discuss</A></FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>OSC, a subsidiary of Billing Concepts Corp., a NASDAQ listed Company, Symbol: &quot;BILL&quot;</FONT>
</P>

</BODY>
</HTML>