This site best when viewed with a modern standards-compliant browser. We recommend Firefox Get Firefox!.

Linux-HA project logo
Providing Open Source High-Availability Software for Linux and other OSes since 1999.

USA Flag UK Flag

Japanese Flag

ホームページ

サイトについて

コンタクト情報

使用条件

協力方法

セキュリティ

This web page is no longer maintained. Information presented here exists only to avoid breaking historical links.
The Project stays maintained, and lives on: see the Linux-HA Reference Documentation.
To get rid of this notice, you may want to browse the old wiki instead.

2010.1.28
追加パッケージ集リニューアル
追加パッケージ集は、こちらから

2008.8.28
RHEL用rpm更新
更新情報はこちらから

2008.8.18
Heartbeat 2.1.4
リリース!
Downloadはこちらから

2007.11.13
Linux-ha-japan日本語ML移植しました

2007.10.5
日本語サイトOPEN
日本語MLも開設しました

2007.10.5
OSC2007 Tokyo/Fall で Heartbeat紹介
発表資料を公開しました

Last site update:
2017-12-17 04:46:19

Heartbeat IPaddr resource agent

The IPaddr resource agent is used by Heartbeat to configure IPv4 ServiceAddresses. Most resource groups will contain at least one IPaddr or IPaddr2 resource.

The basic syntax of an IPaddr resource is

  IPaddr::ip-address[/netmask[/interface][/broadcast]]

This can be abbreviated simply to:

  ip-address[/netmask[/interface][/broadcast]]

So, the following forms of addressing are legal:

  address
  address/netmask
  address/netmask/broadcast
  address/netmask/interface
  address/netmask/interface/broadcast

By far the most common case is the simplest one:

  ip-address

In this form, appropriate defaults are taken as described below.

Default Interface

If the interface was omitted, we use the system routing tables to determine which interface would be used to route a packet to the given address. That is, IPaddr selects the preferred interface for sending packets to that subnet. If no such interface can be found, heartbeat will issue a message something like this:

ERROR: unable to find an interface for given-ip-address

Default netmask

If the CIDR netmask is omitted, we choose the netmask associated with the route to the subnet to which packets to the given IP address would be routed. That is, we simply look up the routing information for that address, and use it to compute the correct netmask (and other items as described below).

Default broadcast address

If the broadcast address was omitted, IPaddr defaults to the highest address in the subnet (the usual default).

Examples

  135.9.216.100
  135.9.216.100/24                  (implies a 255.255.255.0 netmask)
  135.9.216.100/24/135.9.216.255
  135.9.216.100/24/eth0
  135.9.216.100/24/eth0/135.9.216.255

Special Note

The interface mentioned above does not include an alias number. Heartbeat assigns them dynamically according to the available alias names.

IPaddr has a limit of around 100 aliases it can manage for any given interface.

See http://www.doom.net/docs/netmask.html for a table explaining CIDR address format and their relationship to life, the universe and everything.

See Also

ResourceAgent, HeartbeatResourceAgent, IPaddr2 resource agent, Linux Hacks article on our send_arp command