Skip to main content
Static addressing allows you to assign fixed IP addresses to network interfaces in Talos Linux. Static configuration is available for physical and logical links (bridges, bonds, VLANs). For physical links, configuration is attached to the LinkConfig document, while for logical links, configuration is attached directly to the logical link document.

Configuration

Addresses can be specified in the addresses field as a list of CIDR (Classless Inter-Domain Routing) notation strings:
The routePriority field is optional and can be used to set the priority of the implicit route associated with the address. Routes can be specified in the routes field as a list of route objects:
Each route object can include the following fields:
  • destination: The destination network in CIDR notation. If omitted, a default route is created.
  • gateway: The gateway IP address for the route. If omitted, the route is considered directly connected.
  • additional advanced fields like metric, mtu can be specified as needed.
There are some typical configuration scenarios to consider:
  • address with a subnet and a default route via the gateway from the same subnet:
    With this configuration, all addresses 192.168.1.1-192.168.1.254 are reachable directly, while all other addresses are reachable via the gateway 192.168.1.1.
  • a machine is given an address from a subnet, but the default gateway is outside of that subnet:
    In this example, the machine has a /32 address, so no other addresses are reachable directly. A specific route to the gateway 192.168.1.1 is required to reach other networks.
  • a private network which doesn’t have a default gateway, but needs specific routes to other networks:
A complete example of static addressing configuration for a physical link:

Observing status

You can observe the status of addresses and routes using talosctl:
And same for routes:
This shows all configured addresses and routes, including those automatically created for link-local addresses, managed by CNI plugins, or other system components. To see the list of addresses and routes managed by Talos, use the following:
In order to see managed configuration with information about various sources (static config, DHCP, CNI, etc.) add --namespace=networkconfig flag: