Update docs/tech_docs/OPENwrt.md
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user