From 4e4180eb940caad0a9e92d8453d95097f661f3e6 Mon Sep 17 00:00:00 2001 From: medusa Date: Thu, 18 Apr 2024 20:51:19 +0000 Subject: [PATCH] Update docs/tech_docs/OPENwrt.md --- docs/tech_docs/OPENwrt.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/tech_docs/OPENwrt.md b/docs/tech_docs/OPENwrt.md index 3095c8e..b5f00af 100644 --- a/docs/tech_docs/OPENwrt.md +++ b/docs/tech_docs/OPENwrt.md @@ -12,11 +12,18 @@ pct create 101 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 ``` ### Container 2 ```bash -pct create 101 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-0 --storage local-lvm \ +pct create 101 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-1 --storage local-lvm \ --net0 name=eth0,bridge=vmbr0,firewall=1 \ --net1 name=eth1,bridge=vmbr2,firewall=1 ``` +### Container 3 +```bash +pct create 102 /var/lib/vz/template/cache/openwrt-rootfs.tar.xz --unprivileged 1 --arch amd64 --ostype unmanaged --hostname openwrt-2 --storage local-lvm \ +--net0 name=eth0,bridge=vmbr0,firewall=1 \ +--net1 name=eth1,bridge=vmbr3,firewall=1 +``` + This command creates an unprivileged container with ID 106, using an OpenWRT root filesystem. It configures three network interfaces: - **eth0**: Main LAN interface with a static IP and gateway.