Am 14.03.2011 12:49, schrieb Pavel Levshin: > 14.03.2011 12:27, Klaus Darilion пишет: >>>> 2. before adding the IP address, it will delete the IP address if the >>>> address is already configured (on any interface, with any netmask). >>>> Thus >>>> the "add" will always work. >>> This particular part is not good. The same address could be configured >>> on other interface, notably loopback. It should not be dropped in this >>> case. >> Ok, but what is a valid use case for having an IP address configured on >> multiple interfaces? Especially on lo? > > For us, it is a way to bind a daemon to a floating address. Our daemons > need to run permanently, and active one is selected by simply assigning > floating address to the network interface (with arp_ignore/arp_announce > sysctls set properly). > > Something alike may be achieved by setting ip_nonlocal_bind, but our way > is more strict.
I wonder how IPaddr2's find_interface() behaves if the IP address is configured on multiple interfaces. Which netmask do you configure on the loopback interface, /24 or the same as on the physical interface? regards klaus _______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker