talm icon indicating copy to clipboard operation
talm copied to clipboard

Interface default configuration to enable VIP when templating with talm

Open lb0o opened this issue 3 months ago • 0 comments

Hi,

The default templating used ipv6 gateway but the VIP was not addressable. I wonder if enabling dhcp:true as default will ease configuration (hence ipv4?).

I solved VIP configuration by using dhcp:true from the doc

As mentioned in https://www.talos.dev/v1.11/talos-guides/network/vip/

A minimal VIP machine config setup is:

machine:
  network:
    interfaces:
    - interface: eth0
      dhcp: true
      vip:
        ip: 192.168.0.15

The default generated template VIP was templated using ipv6 gateway address

    interfaces:
      - interface: eth0
        addresses:
          - 192.168.0.20/24
        routes:
          - network: 0.0.0.0/0
            gateway: <ipv6-gateway-address>
        vip:
          ip: 192.168.0.15

Here is the generated template using talm template -e 192.168.0.20 -n 192.168.0.20 -t templates/controlplane.yaml -i --full --offline

    interfaces:
      - routes:
          - network: 0.0.0.0/0
            gateway: ""
        vip:
          ip: 192.168.0.15

debug commands used:

node=192.168.0.20
talosctl -n $node -e $node get links
talosctl -n $node -e $node get addresses

lb0o avatar Oct 08 '25 09:10 lb0o