1830180 Members
2608 Online
109999 Solutions
New Discussion

Virtual IP address.

 
walter crasto_1
Frequent Advisor

Virtual IP address.

Hi,

How can I allocate Virtual IP address to Linux Redhat Advance server.

Thanks & Regards

Varian
3 REPLIES 3
Logu_2
Advisor

Re: Virtual IP address.

ifconfig interface:v1 netmask broacast

Example:

ifconfig eth0:v1 10.10.1.1 netmask 255.255.255.0 broadcast 10.10.1.255


-logu
Vitaly Karasik_1
Honored Contributor

Re: Virtual IP address.

For permanent configuration you should create a file /etc/sysconfig/network-scripts/ifcfg-eth0:0 (:1 and so on) with the following context:

DEVICE=eth0:0
BOOTPROTO=none
ONBOOT=yes
NETWORK=10.0.1.0
NETMASK=255.255.255.0
IPADDR=10.0.1.27


In fact, you can copy ifcfg-eth0 file and edit "DEVICE" and "IPADDR" fields.
Delrish
Trusted Contributor

Re: Virtual IP address.

There is a virtual IP address in a clustered servers that is called virtual ip.
do you want to add a VIP to a clustered servers? Also you can ad another IP address to you NIC called alias. If you want to add an alias to your system go ahead with the procedure which the other guys sent, if you have a cluster and want to add a vip to it, please let us know about the cluster.