From 9f46b7a6cd28da22e52487b6da09e89fe3d522f2 Mon Sep 17 00:00:00 2001 From: medusa Date: Thu, 18 Apr 2024 20:47:29 +0000 Subject: [PATCH] Update docs/tech_docs/OPENwrt.md --- docs/tech_docs/OPENwrt.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/tech_docs/OPENwrt.md b/docs/tech_docs/OPENwrt.md index 6e33c87..3485d4e 100644 --- a/docs/tech_docs/OPENwrt.md +++ b/docs/tech_docs/OPENwrt.md @@ -4,10 +4,17 @@ To set up a Proxmox container (CT) with OpenWRT using the `pct create` command a First, let's clarify the Proxmox command for creating the container: +### Container 1 ```bash -pct create 100 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --ostype unmanaged --hostname openwrt-0 --storage local-lvm \ +pct create 101 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --architecture amd64 --ostype unmanaged --hostname openwrt-0 --storage local-lvm \ --net0 name=eth0,bridge=vmbr0,firewall=1 \ ---net1 name=eth1,bridge=vmbr1,firewall=1 \ +--net1 name=eth1,bridge=vmbr1,firewall=1 +``` +### Container 2 +```bash +pct create 101 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --architecture amd64 --ostype unmanaged --hostname openwrt-0 --storage local-lvm \ +--net0 name=eth0,bridge=vmbr0,firewall=1 \ +--net1 name=eth1,bridge=vmbr2,firewall=1 ``` This command creates an unprivileged container with ID 106, using an OpenWRT root filesystem. It configures three network interfaces: