[CentOS] Virtual IP

Thu Jul 6 08:17:12 UTC 2017
Amine Tengilimoglu <aminetengilimoglu at gmail.com>

 Hİ all;


   i need your helps on setting the virtual ip. I am trying to setup static
virtual ip on CenOS7.  but I want my VIP to should not open when rebooting.


My interface settings like this:

*for ens33 NIC -> ifcfg-ens33*

DEVICE=ens33
BOOTPROTO=none
ONBOOT=yes
PREFIX=24
IPADDR=192.168.2.151


*and for VIP NIC ens33:2* * -> ifcfg-ens33:2*

DEVICE=ens33:2
ONBOOT=no
ONPARENT=no
PREFIX=24
IPADDR=192.168.2.149

i made up ifcfg-ens33:2 from ifcfg-ens33 by copying it... i dont know
 where i do wrong??

i am waiting for your help...

best regards....