[NTLUG:Discuss] Multiple IP's on a NIC
James L. Skidmore
james at linux-guy.com
Fri Sep 29 12:03:14 CDT 2000
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"
>
More information about the Discuss
mailing list