On this page:

static IP address management plugin



static IPAM is very simple IPAM plugin that assigns IPv4 and IPv6 addresses statically to container. This will be useful in debugging purpose and in case of assign same IP address in different vlan/vxlan to containers.

Example configuration

	"ipam": {
		"type": "static",
		"addresses": [
				"address": "",
				"gateway": ""
				"address": "3ffe:ffff:0:01ff::1/64",
				"gateway": "3ffe:ffff:0::1"
		"routes": [
			{ "dst": "" },
			{ "dst": "", "gw": "" },
			{ "dst": "3ffe:ffff:0:01ff::1/64" }
		"dns": {
			"nameservers" : [""],
			"domain": "example.com",
			"search": [ "example.com" ]

Network configuration reference

  • type (string, required): “static”
  • addresses (array, optional): an array of ip address objects:
    • address (string, required): CIDR notation IP address.
    • gateway (string, optional): IP inside of “subnet” to designate as the gateway.
  • routes (string, optional): list of routes add to the container namespace. Each route is a dictionary with “dst” and optional “gw” fields. If “gw” is omitted, value of “gateway” will be used.
  • dns (string, optional): the dictionary with “nameservers”, “domain” and “search”.

Supported arguments

The following CNI_ARGS are supported:

  • IP: request a specific CIDR notation IP addresses, comma separated

  • GATEWAY: request a specific gateway address

    (example: CNI_ARGS=“IP=;GATEWAY=”)

The plugin also support following capability argument .

  • ips: Pass IP addresses for CNI interface

The following args conventions are supported:

  • ips (array of strings): A list of custom IPs to attempt to allocate, with prefix (e.g. ‘’)

Notice: If some of above are used at same time, only one will work according to the priorities below

  1. capability argument
  2. args conventions