From 046abf01f4222817bce3d52aed4b189587aa3659 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 17 Oct 2024 12:32:12 +0300 Subject: [PATCH] cleanup + better defaults... Signed-off-by: Alex A. Naanou --- config.global.example | 5 ++++- host/bootstrap-bridges.tpl | 11 +---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/config.global.example b/config.global.example index 12d2572..accb8d0 100644 --- a/config.global.example +++ b/config.global.example @@ -28,9 +28,12 @@ # LAN_BRIDGE=1 # ADMIN_BRIDGE=2 # +# NOTE: on a clean Proxmox install ADMIN is pre-setup, we will use it +# for bootstrapping and reconfigure it later. +# +ADMIN_BRIDGE=vmbr0 WAN_BRIDGE= LAN_BRIDGE= -ADMIN_BRIDGE= # NOTE: it is simpler to statically assign these than to configure dhcp diff --git a/host/bootstrap-bridges.tpl b/host/bootstrap-bridges.tpl index 0ea2eb1..d2a3462 100644 --- a/host/bootstrap-bridges.tpl +++ b/host/bootstrap-bridges.tpl @@ -1,5 +1,5 @@ -# NOTE: this assumes a configured bridge (vmbr0?) already exists... +# NOTE: this assumes the ADMIN bridge to exist (proxmox default) and to be vmbr0... auto vmbr${LAN_BRIDGE} iface vmbr${LAN_BRIDGE} inet manual @@ -15,12 +15,3 @@ iface vmbr${WAN_BRIDGE} inet manual bridge-fd 0 #WAN -auto vmbr${ADMIN_BRIDGE} -iface vmbr${ADMIN_BRIDGE} inet static - address ${HOST_ADMIN_IP} - #gateway ${GATE_ADMIN_IPn} - bridge-ports ${ADMIN_PORT} - bridge-stp off - bridge-fd 0 -#ADMIN -