LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2014, 11:41 AM   #1
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 180

Rep: Reputation: Disabled
vrrpd setup please check if I am understanding it correctly


I got two VMs running redhat 6.5 and I am trying setup VRRPD on it. But I am confused about something:

According to what I have read, I need to setup it up like this

VM A has two interfaces, 10.0.0.1 and 10.0.0.2.
VM B has two interfaces, 10.0.0.3 and 10.0.0.2.

10.0.0.2 is the VIP for vrrpd, and .1 and .3 are the VM's own IPs.

These two VMs are on the same network. When I tried to enable the .2 IP on VM B, I get an error

Code:
[root@ssrarmfe2 ~]# ifup eth1
Determining if ip address 10.0.0.2 is already in use for device eth1...
Error, some other host already uses address 10.0.0.2.
which confuses me: If I am to enable vrrpd I need both VMs to have the same VIP assigned to it. As per this doc here: http://www.austintek.com/LVS/LVS-HOW...ml#vrrpd_setup

So am I misunderstanding something?

Thanks
 
Old 10-15-2014, 10:47 PM   #2
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 180

Original Poster
Rep: Reputation: Disabled
as it turns out, i did misunderstand. here is the proper setup"

VM A gets IP 1. VM B gets IP2.

start vrrpd daemon with IP3. this is the VIP address.

vrrpd should run on both VMs and with different priority and the same the router id.

vrrpd does not survive reboot. Therefore you need to add it in rc.local.

vrrpd, after start, will rewrite routing file. this takes about 5 seconds to complete on my VM.

therefore, rc.local will also need to include a sleep statement to let vrrpd finish editing the routing file. and then add in a line to include things such as default gw.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] need help configuring vrrpd jzoudavy Linux - Newbie 1 10-14-2014 08:45 PM
How check if aquasim is correctly installed in ubuntu 12.04 Arktech Linux - Newbie 1 07-12-2014 02:34 PM
Am I understanding the output of `top` correctly? zQUEz Linux - Server 2 01-23-2012 11:04 AM
Check CPU - Red Hat - how to check if CPU working correctly ? dlugasx Linux - Server 8 07-28-2011 02:58 AM
how can i check if my swap partition is being used correctly ? abbasakhtar Linux - Newbie 2 10-07-2003 12:02 PM


All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration