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

Kyle_Davenport@compusa.com Kyle_Davenport at compusa.com
Fri Sep 29 15:50:45 CDT 2000



hmmm.   unless I misunderstood your question, all I did was

ifconfig eth0 192.168.1.2
ifconfig eth0:1 192.168.1.3
ifconfig eth0:2 192.168.1.4

verify all interfaces working

ifconfig eth0:1 down

verified eth0 and eth0:2 are still working.   But if I

ifconfig eth0:0 down

I lose pinging all eth0 interfaces.  Maybe eth0:0 is required.  Put an interface
there that's always on, and you can bring the other interfaces up or down on the
fly as you wish.   I also notice that if I take eth0:0 down, the default route
is removed from my routing table.


_____________________________________________________________




"Gregory L. Camp" <Gregory.Camp at osc.com> on 09/29/2000 01:40:53 PM

Please respond to discuss at ntlug.org

To:   "'discuss at ntlug.org'" <discuss at ntlug.org>
cc:    (bcc: Kyle Davenport/Is/Corporate/CompUSA)
Subject:  RE: [NTLUG:Discuss] Multiple IP's on a NIC



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/4381aa08/att1.htm


More information about the Discuss mailing list