added @kemoGPT bridge network config

This commit is contained in:
root
2026-10-13 08:40:51 -07:00
parent a444e53c89
commit 3e8d4f1813
2 changed files with 32 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
mkdir -p /etc/containers/networks/
# Create a Podman network bridge
export BRIDGE_NAME="bridge0"
export BRIDGE_BASE_IFNAME="bridge0"
export BRIDGE_SUBNET="192.168.90.0/23"
export BRIDGE_GATEWAY="192.168.90.1"
cat > /etc/containers/networks/${BRIDGE_NAME}.json << EOF
{
"name": "${BRIDGE_NAME}",
"driver": "bridge",
"id": "$(tr -dc a-f0-9 </dev/urandom | head -c 64; echo)",
"network_interface": "${BRIDGE_BASE_IFNAME}",
"subnets": [
{
"subnet": "${BRIDGE_SUBNET}",
"gateway": "${BRIDGE_GATEWAY}"
}
],
"ipv6_enabled": false,
"internal": false,
"dns_enabled": false,
"ipam_options": {
"driver": "host-local"
}
}
EOF