Hi,

Am Mittwoch, 15. August 2007 schrieb mingdao lu:
> I want to add a VLAN IP resource for my network. Could you tell me 
how to
> configure and how to add? Should I use IPaddr or IPaddr2?

Please look here: 

http://hg.linux-ha.org/dev/file/tip/crm/crm-1.0.dtd

http://linux-ha.org/ClusterInformationBase/UserGuide


I use IPaddr2, because there was a BUG in IPaddr (cidr_netmask).
The bug should removed in 2.1.2...

Perhaps IPaddr2 use iproute2 and IPaddr use ifconfig.

This example works for me:
----

 <primitive class="ocf" id="IPaddr_10_19_1_119" provider="heartbeat" 
type="IPaddr2"> 
           <operations>
             <op id="IPaddr_10_19_1_119_mon" interval="5s" 
name="monitor" timeout="10s"/>
           </operations>
           <instance_attributes id="IPaddr_10_19_1_119_inst_attr">
             <attributes>
               <nvpair id="IPaddr_10_19_1_119_attr_0" name="ip" 
value="10.19.1.119"/>
               <nvpair id="IPaddr_10_19_1_119_attr_1" 
name="cidr_netmask" value="25"/>
               <nvpair id="IPaddr_10_19_1_119_attr_2" name="broadcast" 
value="10.19.1.127"/>
               <nvpair id="IPaddr_10_19_1_119_attr_3" name="nic" 
value="vlan255"/>
               <nvpair id="IPaddr_10_19_1_119_attr_4" name="iflabel" 
value="vip01"/>
             </attributes>
           </instance_attributes>
         </primitive>

---


Bye

Andre
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to