LinkConfig document, while for logical links, configuration is attached directly to the logical link document.
Configuration
Addresses can be specified in theaddresses field as a list of CIDR (Classless Inter-Domain Routing) notation strings:
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:
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,mtucan be specified as needed.
-
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:
Observing Status
You can observe the status of addresses and routes usingtalosctl:
--namespace=networkconfig flag: