---
title: "calicoctl ipam configure"
description: "Reference for the calicoctl IPAM configure command in Calico Open Source, used to set IP address management options such as strict affinity."
product: "Calico Open Source"
version: "3.33 (latest)"
section: "Reference"
canonical_url: "https://docs.tigera.io/calico/latest/reference/calicoctl/ipam/configure"
---

# calicoctl ipam configure

This section describes the `calicoctl ipam configure` command.

Read the [calicoctl overview](https://docs.tigera.io/calico/latest/reference/calicoctl/overview.md) for a full list of calicoctl commands.

## Displaying the help text for 'calicoctl ipam configure' command

Run `calicoctl ipam configure --help` to display the following help menu for the command.

```text
Configure cluster-wide Calico IPAM settings, such as strict affinity and the
maximum number of blocks per host.

Usage:
  calicoctl ipam configure [flags]

Examples:
  # Require strict affinity (disable IP borrowing).
  calicoctl ipam configure --strictaffinity=true

Flags:
  -c, --config string                    Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")
  -h, --help                             help for configure
      --ip-cooldown-seconds int          Set the minimum time between release and re-allocation of an IP address. (default -1)
      --kubevirt-ip-persistence string   Control whether KubeVirt VMs retain persistent IP addresses (Enabled|Disabled).
      --max-blocks-per-host string       Set the maximum number of blocks that can be affine to a host.
      --strictaffinity string            Set StrictAffinity to true/false.

Global Flags:
      --allow-version-mismatch   Allow client and cluster versions mismatch
      --context string           The name of the kubeconfig context to use
  -l, --log-level string         Set the log level (panic, fatal, error, warn, info, debug) (default "panic")
```

### Examples

```bash
calicoctl ipam configure --strictaffinity=true
```

```bash
calicoctl ipam configure --kubevirt-ip-persistence=Enabled
```

### General options

```text
  -c, --config string   Path to the file containing connection configuration in YAML or JSON format. (default "/etc/calico/calicoctl.cfg")
```

## See also

- [Installing calicoctl](https://docs.tigera.io/calico/latest/operations/calicoctl/install.md)
