Apple Mac OS X Server Network Card User Manual


 
246 Chapter 14 Working with Network Services
Email notification is sent when the secondary server detects a failover condition or a
network anomaly, and when the IP address is relinquished back to the primary server.
Enabling IP Failover
You enable IP failover by adding command lines to the file /etc/hostconfig on the
primary and the secondary server. Be sure to enter these lines exactly as shown with
regard to spaces and punctuation marks.
To enable IP failover:
1 On the primary server, add the following line to /etc/hostconfig:
FAILOVER_BCAST_IPS="10.0.0.255 100.0.255.255"
Substitute the broadcast addresses used on your server for the public and private
networks. This tells the server to send broadcast messages over relevant network
interfaces, indicating that the server at those IP addresses is functioning.
2 Restart the primary server so that your changes can take effect.
3 Disconnect the primary server from both the public and private networks.
4 On the secondary server, add the following lines to /etc/hostconfig:
FAILOVER_PEER_IP="10.0.0.1"
FAILOVER_PEER_IP_PAIRS="en0:100.0.0.10"
FAILOVER_EMAIL_RECIPIENT="admin@example.com"
In the first line, substitute the IP address of the primary server on the private network.
In the second line, enter the local network interface that should adopt the primary
server’s public IP address, then a colon, and then the primary server’s public IP address.
In the third line, enter the email address for notification messages regarding the
primary server status. If this line is omitted, email notifications are sent to the root
account on the local computer.
5 Restart the secondary server so your changes can take effect and allow the secondary
server to acquire the primary’s public IP address.
Important: Before you enable IP failover, verify on both servers that the port used for
the public network is at the top of the Network Port Configurations list in the Network
pane of System Preferences. Also verify that the port used for the private network
contains no DNS configuration information.
6 Reconnect the primary server to the private network, wait 15 seconds, and then
reconnect the primary server to the public network.
7 Verify that the secondary server relinquishes the primary server’s public IP address.