Sample configurations

MultiNICA and IPMultiNIC for AIX

<resources>

<resource name="mna_res1" type="MultiNICA">

<attribute name="Device" context = "sysA">

<val key="en1">11.123.148.47</val>

<val key="en2">11.123.148.48</val>

</attribute>

<attribute name="Device" context = "sysB">

<val key="en1">11.123.148.49</val>

<val key="en2">11.123.148.50</val>

</attribute>

<attribute name="Gateway"><scalar>11.123.144.1</scalar> </attribute>

<attribute name="NetMask"><scalar>255.255.252.0</scalar> </attribute>

<attribute name="BroadcastAddr"><scalar>11.123.151.255 </scalar></attribute>

</resource>

<resource name="ipmnca_res1" type="IPMultiNIC">

<attribute name="Address"><scalar>11.123.148.51</scalar> </attribute>

<attribute name="MultiNICAResName"><scalar> VR_Group.mna_res1</scalar></attribute>

<attribute name="NetMask"><scalar>255.255.252.0</scalar> </attribute>

</resource>

<link parent="ipmnca_res1" child="mna_res1"/>

</resources>

In the following example, two systems, sysa and sysb, each have a pair of network interfaces, en0 and en1. In this example, the two interfaces, en0 and en1, have the same base, or physical, IP address. Note the lines beginning Device@sysa and Device@sysb; the use of different physical addresses shows how to localize an attribute for a particular host.

The MultiNICA resource fails over the IP addresses to the backup NIC in the event of a failure of the active NIC. The resources ip1 and ip2, shown in the following example, have the Address attribute that contains the logical IP address. In the event of a NIC failure on sysa, the physical IP address and the two logical IP addresses fails over from en0 to en1.

However, if both the NICs on sysa are disconnected, the MultiNICA and IPMultiNIC resources work in tandem to fault the group on sysa. The entire group now fails over to sysb.

If you have more than one group using the MultiNICA resource, the other groups can use a Proxy resource. The Proxy resource points to the MultiNICA resource in the first group. The Proxy resource prevents redundant monitoring of the NICs on the same system. The IPMultiNIC resource is always made dependent on the MultiNICA resource.

See IPMultiNIC agent.

group grp1 (

SystemList = { sysa, sysb }

AutoStartList = { sysa }

)

MultiNICA mnic (

Device@sysa = { en0 = "10.128.8.42", en1 = "10.128.8.42" }

Device@sysb = { en0 = "10.128.8.43", en1 = "10.128.8.43" }

NetMask = "255.255.255.0"

Gateway = "10.128.1.1"

BroadcastAddr = "10.128.25.255"

Options = "mtu m"

)

IPMultiNIC ip1 (

Address = "10.128.10.14"

NetMask = "255.255.255.0"

MultiNICAResName = mnic

Options = "mtu m"

)

ip1 requires mnic

group grp2 (

SystemList = { sysa, sysb }

AutoStartList = { sysa }

)

IPMultiNIC ip2 (

Address = "10.128.9.4"

NetMask = "255.255.255.0"

MultiNICAResName = mnic

Options = "mtu m"

)

Proxy proxy (

TargetResName = mnic

)

ip2 requires proxy

MultiNICA and IPMultiNIC for Solaris

<resources>

<resource name="mna_res1" type="MultiNICA">

<attribute name="Device" context = "sysA">

<val key="eth1">11.123.148.47</val>

<val key="eth2">11.123.148.48</val>

</attribute>

<attribute name="Device" context = "sysB">

<val key="en1">11.123.148.49</val>

<val key="en2">11.123.148.50</val>

</attribute>

</resource>

<resource name="ipmnca_res1" type="IPMultiNIC">

<attribute name="Address"><scalar>11.123.148.51</scalar> </attribute>

<attribute name="MultiNICAResName"><scalar> VR_Group.mna_res1</scalar></attribute>

<attribute name="NetMask"><scalar>255.255.240.0</scalar> </attribute>

</resource>

<link parent="ipmnca_res1" child="mna_res1"/>

</resources>

In the following example, two nodes, sysa and sysb, each have a pair of network interfaces, le0 and qfe3. In this example, the two interfaces, le0 and qfe3, have the same base, or physical, IP address. Note the lines beginning Device@sysa and Device@sysb; the use of different physical addresses shows how to localize an attribute for a particular host.

The MultiNICA resource fails over only the physical IP address to the backup NIC during a failure. The IPMultiNIC agent configures the logical IP addresses. The resources ip1 and ip2, shown in the following example, have the Address attribute that contains the logical IP address. If a NIC fails on sysa, the physical IP address and the two logical IP addresses fails over from le0 to qfe3. If qfe3 fails, the address fails back to le0 if le0 is reconnected.

However, if both the NICs on sysa are disconnected, the MultiNICA and IPMultiNIC resources work in tandem to fault the group on sysa. The entire group now fails over to sysb.

If you have more than one group using the MultiNICA resource, the second group can use a Proxy resource. The Proxy resource points to the MultiNICA resource in the first group. The Proxy resource prevents redundant monitoring of the NICs on the same system. The IPMultiNIC resource is always made dependent on the MultiNICA resource. See the IPMultiNIC agent for more information.

group grp1 (

SystemList = { sysa, sysb }

AutoStartList = { sysa }

)

MultiNICA mnic (

Device@sysa = { le0 = "10.128.8.42", qfe3 = "10.128.8.42" }

Device@sysb = { le0 = "10.128.8.43", qfe3 = "10.128.8.43" }

NetMask = "255.255.255.0"

ArpDelay = 5

Options = "trailers"

)

IPMultiNIC ip1 (

Address = "10.128.10.14"

NetMask = "255.255.255.0"

MultiNICResName = mnic

Options = "trailers"

)

ip1 requires mnic

group grp2 (

SystemList = { sysa, sysb }

AutoStartList = { sysa }

)

IPMultiNIC ip2 (

Address = "10.128.9.4"

NetMask = "255.255.255.0"

MultiNICResName = mnic

Options = "trailers"

)

Proxy proxy (

TargetResName = mnic

)

ip2 requires proxy