OCF_HEARTBEAT_IPSRCA(7)
π ocf_heartbeat_IPsrcaddr β the girlies' guide to preferred source addresses β¨
Okay bestie, buckle up, because this one's from the OCF resource agents manual, section 7 β it's ocf_heartbeat_IPsrcaddr, and it's lowkey iconic for what it does. π
πΈ NAME πΈ
ocf_heartbeat_IPsrcaddr β literally manages the preferred source address for outgoing IP packets. That's the whole vibe. π
β¨ SYNOPSIS β¨
IPsrcaddr [start | stop | monitor | meta-data | validate-all]
That's it, that's the whole thing. One resource, five lil actions. Slay. π
π¦ DESCRIPTION π¦
So this is the resource script for IPsrcaddr, and what it does is manage the modification of your preferred source address. Main character energy for your packets fr fr. β
Note, and this one matters: DHCP should not be enabled for the interface serving the preferred source address. Enabling DHCP may result in unexpected behavior, such as the automatic addition of duplicate or conflicting routes. That may cause the IPsrcaddr resource to fail, or it may produce undesired behavior while the resource continues to run. Not me warning you twice π β please, no DHCP on that interface. π
π SUPPORTED PARAMETERS π
ipaddressβ The IP address. That's literally it. (required, string, no default) πcidr_netmaskβ The netmask for the interface, in CIDR format (ie,24), or in dotted quad notation255.255.255.0. (optional, string, no default) πdestinationβ The destination IP/subnet for the route. (optional, string, default"0.0.0.0/0") π¦protoβ Proto to match when finding network. E.g."kernel". (optional, string, no default) πΈmetricβ Metric. Only needed if incorrect metric value is used. (optional, string, no default) πprefβ IPv6 route preference (low,mediumorhigh). Only needed if incorrect pref value is used. (optional, string, no default) πtableβ Table to modify and use for interface lookup. E.g."local". The table has to have a route matching thedestinationparameter. This can be used for policy based routing. Seeman ip-rule(8). (optional, string, no default) π§
π₯ SUPPORTED ACTIONS π₯
This resource agent supports the following actions (operations), and yes, every single one got its own suggested minimum timeout because the agent is thorough like that π
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:10s. πvalidate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:5s. πmeta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s. π«Ά
π EXAMPLE CRM SHELL π
The following is an example configuration for a IPsrcaddr resource using the crm(8) shell:
primitive p_IPsrcaddr ocf:heartbeat:IPsrcaddr \
params \
ipaddress=string \
op monitor depth="0" timeout="20s" interval="10s"
Copy it, paste it, live your truth. π
π EXAMPLE PCS π
The following is an example configuration for a IPsrcaddr resource using pcs(8):
pcs resource create p_IPsrcaddr ocf:heartbeat:IPsrcaddr \
ipaddress=string \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"
Same energy, different CLI. Both ate, ngl. π
π«Ά SEE ALSO π«Ά
- http://clusterlabs.org/ β go say hi to the clusterlabs girlies β¨
π AUTHOR π
ClusterLabs contributors β see the resource agent source for information about individual authors. Shoutout to every one of them, they're the real MVPs π₯Ήπ
Sign-off time, bestie: this page is from resource-agents, versionUNKNOWN, dated10/01/2026, and the manual page itself isOCF_HEARTBEAT_IPSRCA(7). Now go forth and route responsibly β¨π§π
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms