Skip to content

IPv4 addresses

Declare addresses as a list under ipv4.addresses:

match:
  name: eth0
ipv4:
  addresses:
    - ip: 192.0.2.10/24
    - ip: 192.0.2.11/24

Each ip value needs an IPv4 address and a prefix length between 0 and 32.

The first entry is the primary source address. Each entry may also include valid_lft and preferred_lft, expressed as integer seconds.

The IPv4 schema has no gateway, route or DNS fields yet. See dynamic providers for DHCP declarations and the field reference for each address property.