To Create VIP’s in Linux Server:
Login as root
# cd /etc/sysconfig/network-scripts
# cp ifcfg-eth0 ifcfg-eth1
# vi ifcfg-eth1
device=eth0:1 (change only this and save the file)
# service network restart
# /sbin/ifconfig eth0:1 10.60.124.89 netmask 255.255.255.0
# /sbin/arping -b -A -c 3 -I eth0 10.60.124.89
Note: 10.60.124.89 is the VIP
255.255.255.0 is the subnetmask.
Login as root
# cd /etc/sysconfig/network-scripts
# cp ifcfg-eth0 ifcfg-eth1
# vi ifcfg-eth1
device=eth0:1 (change only this and save the file)
# service network restart
# /sbin/ifconfig eth0:1 10.60.124.89 netmask 255.255.255.0
# /sbin/arping -b -A -c 3 -I eth0 10.60.124.89
Note: 10.60.124.89 is the VIP
255.255.255.0 is the subnetmask.
No comments:
Post a Comment