OCF_HEARTBEAT_IPADDR(7)
π ocf_heartbeat_IPaddr π
okay bestie, gather round, because this is the manual page for ocf_heartbeat_IPaddr, and it lives in the OCF resource agents manual set (section 7, for the record). It's the portable little icon that handles your virtual IPv4 addresses. no cap. π¦
β¨ NAME β¨
ocf_heartbeat_IPaddr β Manages virtual IPv4 addresses (portable version)
πΈ SYNOPSIS πΈ
IPaddr [start | stop | monitor | meta-data | validate-all]
π DESCRIPTION π
So basically this script manages IP alias IP addresses. That's the whole vibe. It can add an IP alias, and it can remove one. She's a two-trick pony and both tricks are iconic. π
π SUPPORTED PARAMETERS π
okay so here's the full parameter menu, and yes, we're going through ALL of them, no skipping, that's the rule.
ipβ The IPv4 address you want configured, in dotted quad notation, like for example"192.168.1.1". This one's unique, required, it's a string, and it has no default β so like, you HAVE to give it, bestie, there's no fallback. π«Άnicβ The base network interface where the IP address gets brought online.
If you leave it empty, the script will try and figure it out from the routing table all by itself. Independent queen. β¨
Do NOT put an alias interface in the form eth0:1 or anything like that here. Specify the base interface only. fr fr.
Prerequisite:
There has to be at least one static IP address assigned to the network interface, and it must not be managed by the cluster. Just a little something for the interface to hold onto. π
If you literally cannot assign any static IP address on the interface, then modify this kernel parameter: sysctl -w net.ipv4.conf.all.promote_secondaries=1 (or do it per device).
(optional, string, default "eth0")
cidr_netmaskβ The netmask for the interface, in CIDR format (ie,24), or in dotted quad notation (255.255.255.0). Either way works, she's flexible. π¦
If you don't specify it, the script will also try to determine this from the routing table.
(optional, string, no default)
broadcastβ The broadcast address associated with the IP. If you leave it empty, the script will determine this from the netmask. She's got you. β¨
(optional, string, no default)
iflabelβ Here's where you can specify an additional label for your IP address if you want one. Cute little name tag. π
(optional, string, no default)
lvs_supportβ Enable support for LVS Direct Routing configurations. In case an IP address is stopped, only move it to the loopback device so the local node can keep servicing requests, but no longer advertise it on the network. Sneaky but on purpose. π
(optional, boolean, default false)
local_stop_scriptβ Script called when the IP is released.
(optional, string, no default)
local_start_scriptβ Script called when the IP is added.
(optional, string, no default)
ARP_INTERVAL_MSβ milliseconds between ARPs.
(optional, integer, default 500)
ARP_REPEATβ How many gratuitous ARPs to send out when bringing up a new address.
(optional, integer, default 10)
ARP_BACKGROUNDβ run in background (no longer any reason to do this). Not me pointing out that the manpage itself says there's no reason anymore π
(optional, boolean, default yes)
ARP_NETMASKβ netmask for ARP β in nonstandard hexadecimal format. Yes, hexadecimal. Stay weird. π
(optional, string, default "ffffffffffff")
π₯ SUPPORTED ACTIONS π₯
This resource agent supports the following actions (operations):
startβ Starts the resource. Suggested minimum timeout:20s.stopβ Stops the resource. Suggested minimum timeout:20s.monitorβ Performs a detailed status check. Suggested minimum timeout:20s. Suggested interval:5s.validate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:20s.meta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s.
π EXAMPLE CRM SHELL π
The following is an example configuration for a IPaddr resource using the crm(8) shell:
primitive p_IPaddr ocf:heartbeat:IPaddr \
params \
ip=string \
op monitor depth="0" timeout="20s" interval="5s"
π§ EXAMPLE PCS π§
The following is an example configuration for a IPaddr resource using pcs(8):
pcs resource create p_IPaddr ocf:heartbeat:IPaddr \
ip=string \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="5s"
π SEE ALSO π
πΈ AUTHOR πΈ
ClusterLabs contributors (see the resource agent source for information about individual authors)
okay that's the whole page, you ate that π
this was resource-agents UNKNOWN, dated 04/08/2026, and it's the OCF_HEARTBEAT_IPADDR(7) page, so if you need it again just type man 7 ocf_heartbeat_IPaddr and she'll be right there. slay, bye bestie πβ¨π¦
π¦ where this page comes from
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms