NetworkManager docs recommend using the new vardict formatted address-data
and route-data
fields in ipv4
and ipv6
for NetworkManager > v1.20, which is supported in the keyfile
plugin (which balena uses).
balenaOS is on nmcli and NetworkManager 1.46.0, but when I try to use address-data I get:
Error: invalid property ‘address-data’: ‘address-data’ not among [method, dns, dns-search, dns-options, dns-priority, addresses, gateway, routes, route-metric, route-table, routing-rules, replace-local-rule, ignore-auto-routes, ignore-auto-dns, dhcp-client-id, dhcp-iaid, dhcp-dscp, dhcp-timeout, dhcp-send-hostname, dhcp-hostname, dhcp-fqdn, dhcp-hostname-flags, never-default, may-fail, required-timeout, dad-timeout, dhcp-vendor-class-identifier, link-local, dhcp-reject-servers, auto-route-ext-gw].
Setting it manually in a system-connection file just results in an error on gateways because address-data was ignored:
failed to load connection: invalid connection: ipv4.gateway: gateway cannot be set if there are no addresses configured
Any idea why balenaOS’s NetworkManager doesn’t support this?