#!/usr/bin/env bash
set -euo pipefail
LAN_IFACE="${1:-eno8303}"

nmcli con delete cluster-lan >/dev/null 2>&1 || true

nmcli con add type ethernet ifname "$LAN_IFACE" con-name cluster-lan \
  ipv4.method manual ipv4.addresses 192.168.88.249/24 \
  ipv4.gateway 192.168.88.1 ipv4.dns "192.168.88.1" \
  connection.autoconnect yes

nmcli con up cluster-lan
echo "Fedora static set on $LAN_IFACE -> 192.168.88.249/24"
