[NTLUG:Discuss] Multiple IP's on a NIC

Gregory L. Camp Gregory.Camp at osc.com
Fri Sep 29 13:40:53 CDT 2000


Well, when I try that, I get the same net effect as before:  if I issue ifup
eth0:0 I get an alias ip for eth0.  However, if I issue ifdown eth0:0 it
takes down the NIC itself!  If possible, I would like to be able to
add/delete alias ip's "on the fly."

Try it for yourself.  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!

Gregory L. Camp
Gregory.Camp at osc.com


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

--
OSC, a subsidiary of Billing Concepts Corp., a NASDAQ listed Company,
Symbol: "BILL"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ntlug.org/pipermail/discuss/attachments/20000929/c8051608/attachment.html


More information about the Discuss mailing list