| 
OS | 
Centos Final 6.4 | 
| 
Requirements | 
·        
  Gcc kernel-headers kernel-devel 
·        
  Keepalived package | 
| 
Procedure: 
·        
  # yum install gcc kernel-headers kernel-devel 
·        
  #yum install keepalived 
 Go to  configuration file 
First machine 
192.168.32.130 
 #vim /etc/keepalived/keepalived.conf 
      Vrrp_instance
  VI_1 { 
       Interface eth1 
      State MASTER 
      Virtual_router_id
   10 
      Priority 101 
      Virtual_ipaddress
  { 
           
  192.168.32.129} 
} 
On another machine 
192.168.32.131 
Vrrp_instance VI_1{ 
           Interface
  eth1 
          Stare BACKUP 
          Virtual_router_id 10 
          Priority
  100 
          Virtual_ipaddress{ 
           
  192.168.32.129 
} 
} 
Start keepalived 
# /etc/init.d/keepalived start 
# chkconfig keepalived on 
Checking 
#ip addr show eth1 | |
Important:   
         #echo  “1” > /proc/sys/net/ipv4/ip_forwarding
For kernel routing
 
No comments:
Post a Comment