
/etc/hosts:
...
192.168.1.1 rhinohost1-public # Externally visible IP address for rhinohost1
192.168.1.2 rhinohost2-public # Externally visible IP address for rhinohost2
192.168.1.101 rhinohost1-/jointfilesconvert/447134/bge0 # Private test address for interface /jointfilesconvert/447134/bge0 on rhinohost1
192.168.1.102 rhinohost1-/jointfilesconvert/447134/bge1 # Private test address for interface /jointfilesconvert/447134/bge1 on rhinohost1
192.168.1.103 rhinohost2-/jointfilesconvert/447134/bge0 # Private test address for interface /jointfilesconvert/447134/bge0 on rhinohost2
192.168.1.104 rhinohost2-/jointfilesconvert/447134/bge1 # Private test address for interface /jointfilesconvert/447134/bge1 on rhinohost2
If the interfaces have not been used before (they do not appear in
ifconfig -a
), then they need to be “plumbed”, i.e. the device
drivers need to be initialised:
# ifconfig /jointfilesconvert/447134/bge0 plumb
# ifconfig /jointfilesconvert/447134/bge1 plumb
On each host, configure the active interface as follows:
rhinohost1:
# ifconfig /jointfilesconvert/447134/bge0 rhinohost1-/jointfilesconvert/447134/bge0 netmask + broadcast + group savanna deprecated \
-failover up
# ifconfig /jointfilesconvert/447134/bge0 addif rhinohost1-public netmask + broadcast + failover up
rhinohost2:
# ifconfig /jointfilesconvert/447134/bge0 rhinohost2-/jointfilesconvert/447134/bge0 netmask + broadcast + group savanna deprecated \
-failover up
# ifconfig /jointfilesconvert/447134/bge0 addif rhinohost2-public netmask + broadcast + failover up
The first
ifconfig
sets the IP address of the interface to the test address, and adds this interface to the “savanna” group. The
deprecated flag means that applications cannot bind to this address – it will only be used by IPMP’s
in.mpathd
daemon to
monitor the links. The
-failover
flag means this test address will not failover to other interfaces; it is fixed on this interface.
The second
ifconfig
adds a virtual interface on
/jointfilesconvert/447134/bge0
, with the public, virtual address. The failover flag means that this address
can failover to other physical interfaces in the group.
Now configure the standby interface:
rhinohost1:
# ifconfig /jointfilesconvert/447134/bge1 rhinohost1-/jointfilesconvert/447134/bge1 netmask + broadcast + group savanna deprecated \
-failover standby up
rhinohost2:
# ifconfig /jointfilesconvert/447134/bge1 rhinohost2-/jointfilesconvert/447134/bge1 netmask + broadcast + group savanna deprecated\
-failover standby up
This command sets the IP address of the interface to the test address, and adds it to the “savanna” group. Again, the
deprecated
and
-failover
flags mean that applications cannot use the test address, and it will not be failed over. The
standby
flag means
that the interface will not be used for any traffic until it is needed, that is when the active interface goes down.
The “savanna” interface group is now ready. If you run
ifconfig -a
, you should see output similar to the following:
Open Cloud Rhino 1.4.3 Administration Manual v1.1 178
Comentarios a estos manuales