Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/lxc-network Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lxc network
> Manage networks for LXD containers.
> More information: <https://linuxcontainers.org/lxd/docs/master/networks>.
- List all available networks:
`lxc network list`
- Show the configuration of a specific network:
`lxc network show {{network_name}}`
- Add a running instance to a specific network:
`lxc network attach {{network_name}} {{container_name}}`
- Create a new managed network:
`lxc network create {{network_name}}`
- Set a bridge interface of a specific network:
`lxc network set {{network_name}} bridge.external_interfaces {{eth0}}`
- Disable NAT for a specific network:
`lxc network set {{network_name}} ipv{{4}}.nat false`