From 535d84b64d0b5d6e23fd63747233cbdae4934dba Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 2 Jun 2025 18:10:26 -0600 Subject: [PATCH] vnet_template: Add ipv6 for vnet0 --- usr/local/share/bastille/templates/default/vnet/Bastillefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/local/share/bastille/templates/default/vnet/Bastillefile b/usr/local/share/bastille/templates/default/vnet/Bastillefile index 95613485..e529380c 100644 --- a/usr/local/share/bastille/templates/default/vnet/Bastillefile +++ b/usr/local/share/bastille/templates/default/vnet/Bastillefile @@ -2,9 +2,14 @@ ARG EPAIR ARG GATEWAY ARG GATEWAY6 ARG IFCONFIG="SYNCDHCP" +ARG IFCONFIG6 SYSRC ifconfig_${EPAIR}_name=vnet0 SYSRC ifconfig_vnet0="${IFCONFIG}" + +# Apply IFCONFIG6 if set +CMD if [ -n "${IFCONFIG6}" ]; then /usr/sbin/sysrc ifconfig_vnet0_ipv6="${IFCONFIG6}"; fi + # GATEWAY will be empty for a DHCP config. -- cwells CMD if [ -n "${GATEWAY}" ]; then /usr/sbin/sysrc defaultrouter="${GATEWAY}"; fi CMD if [ -n "${GATEWAY6}" ]; then /usr/sbin/sysrc ipv6_defaultrouter="${GATEWAY6}"; fi