General discussion


add virtual ip addresses to red hat 8

By jhayesit ·
Hi i have linux red hat 8, and i want to be able to add multiple ip addresses on the same nic (virtual ip addresses). Does anybody know how?



This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by sachuv In reply to add virtual ip addresses ...


Adding virtual IP address is simple on Linux/Unix box.

#ifconfig eth0:1 up

eth0:1 -> logical interface -> virtual IP

Collapse -

by les In reply to add virtual ip addresses ...

use the redhat gui...


Collapse -

by f-2158441 In reply to add virtual ip addresses ...

It is called multi-homing. It is supported by everybody--including MS. The guy above answered it. I just wanted to give you the key words to use should you need more help.

Collapse -

by penguinvitamins2 In reply to add virtual ip addresses ...

Interface configurations are stored in /etc/sysconfig/network-scripts/ifcfg-[cardname]
The machine's first Ethernet network interface is eth0 and is stored in /etc/sysconfig/network-scripts/ifcfg-eth0

Virtual IP addresses are specified with a column ? and a number e.g. eth0:1, eth0:2, eth1:1

To create a virtual address simply copy the file ifcfg-eth0 to ifcfg-eth0:1
cp -a ifcfg-eth0 ifcfg-eth0:1
Now edit the new file and change the name to the virtual name
e.g. DEVICE=eth0 to DEVICE=eth0:1
Change the other lines according to your requirements.

Bring the new interface up:
ifup eth0:1

And to display it:
ifconfig eth0:1

Back to Linux Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums