Ryan Ernst wrote:
Hi,
I'm trying to run heartbeat on ec2 and am hoping I might get some guidance.
All the tutorials I have seen describing how to use heartbeat use multicast
as the example interface. However, ec2 does not support multicast (nor
broadcast, I think, but I don't really know the difference). So then, I
believe my only other option is unicast. The problem is the documentation
is almost nil on how to configure this.
Really?
http://www.linux-ha.org/ha.cf
Specifically:
http://www.linux-ha.org/ha.cf#ucast
The ucast directive takes an eth
device and a "peer ip address".
What is this peer ip address, and what should each node have for a peer ip
address when using unicast?
If you have eth0 on all nodes and nodes are
node1 with 10.10.10.1
node2 with 10.10.10.2
node3 with 10.10.10.3
Then you should have:
node1:
#ucast eth0 10.10.10.1
ucast eth0 10.10.10.2
ucast eth0 10.10.10.3
node2:
ucast eth0 10.10.10.1
#ucast eth0 10.10.10.2
ucast eth0 10.10.10.3
node3:
ucast eth0 10.10.10.1
ucast eth0 10.10.10.2
#ucast eth0 10.10.10.3
Guess you get the idea now.
What exactly is the difference between
multicast, broadcast and unicast?
In addition to the link above:
http://www.linux-ha.org/ha.cf#bcast
http://www.linux-ha.org/ha.cf#mcast
Regards
Dominik
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems