Fred Mushel wrote:

> I would like to create virtual IP's for one NIC card so my computer will 
> respond to various IP addresses (to simulate seperate computers (web/ftp 
> servers for different departments of company) but really using one 
> server with one NIC.
> How is this accomplished?
> I tried making "copies" of eth0 interface in Network Config panel, but 
> this didn't work.

Manually, you can create new virtual interfaces using the ifconfig 
command, as follows:

ifconfig eth0:0 a.b.c.d netmask k.l.m.n
ifconfig eth0:1 e.f.g.h netmask k.l.m.n

and so on...

And to have all this automatically setup on boot, copy the 
/etc/sysconfig/ifcfg-eth0 file to /etc/sysconfig/ifcfg-eth0:0 file, and 
edit this new file with the required parameters, and your virtual IP 
will come up on boot next time.

-- 
Anand Buddhdev
http://anand.org



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to