machine.network section.
HostnameConfig
TheHostnameConfig document configures the machine hostname, either statically or with automatic generation.
Document Structure
Configuration Fields
Static hostname to set for the machine. This has the highest priority over other hostname sources (DHCP, cloud-init).Conflicts with:
auto fieldMethod to automatically generate a hostname for the machine.Available values:
stable- Generates a stable hostname based on machine identityoff- Disables automatic hostname generation; Talos waits for an external source (DHCP, cloud-init)
hostname fieldAutomatic hostnames have the lowest priority over any other hostname sources.Examples
NetworkDeviceConfig
TheNetworkDeviceConfig document (formerly the deprecated machine.network.interfaces) configures network interfaces on Talos machines.
The device configuration shown in the v1alpha1
machine.network.interfaces section is deprecated. Use the standalone NetworkDeviceConfig document type instead.Device Selection
The interface name (e.g.,
enp0s3). Mutually exclusive with deviceSelector.Select a network device using selectors with wildcard support. Mutually exclusive with
interface.Address Configuration
Static IP addresses to assign to the interface. Can be specified in CIDR notation or as standalone addresses.
Enable DHCP for the interface. Supports these DHCP options:
OptionClasslessStaticRouteOptionDomainNameServerOptionDNSDomainSearchListOptionHostName
DHCP-specific options (requires
dhcp: true).Routing
Static routes associated with the interface. Appended to DHCP routes if DHCP is enabled.
Interface MTU size. Overrides any MTU settings from DHCP.
Advanced Features
Bond-specific configuration for bonded interfaces.
Bridge-specific configuration.
VLAN configuration for the interface.
WireGuard VPN configuration.
Virtual (shared) IP address configuration for high availability.
Skip configuration of this interface.
Specify that this interface should be a virtual-only, dummy interface.
Complete Examples
ResolverConfig
TheResolverConfig document (replaces deprecated machine.network.nameservers) configures DNS resolution.
StaticHostConfig
TheStaticHostConfig document (replaces deprecated machine.network.extraHostEntries) adds static entries to /etc/hosts.
KubeSpanConfig
TheKubeSpanConfig document configures the KubeSpan overlay network for Talos clusters.
Migration from Deprecated Fields
The following table shows the mapping from deprecated v1alpha1 fields to new document types:| Deprecated Field | New Document Type |
|---|---|
machine.network.hostname | HostnameConfig |
machine.network.interfaces | NetworkDeviceConfig |
machine.network.nameservers | ResolverConfig |
machine.network.searchDomains | ResolverConfig |
machine.network.extraHostEntries | StaticHostConfig |
machine.network.kubespan | KubeSpanConfig |
Best Practices
Use Device Selectors
Use Device Selectors
Prefer device selectors over hard-coded interface names for better portability across different hardware.
Set Appropriate MTU
Set Appropriate MTU
Configure MTU based on your network infrastructure. Use jumbo frames (9000) for high-performance networks when supported.
Configure Redundancy
Configure Redundancy
Use bonding or VIP configuration for high availability scenarios.
Separate Documents
Separate Documents
Use multi-document configuration to separate network concerns for better maintainability.