Forrest logo
back to the lxc tool

lxc-network:tldr:b2ca5

lxc-network: Disable NAT for a specific network.
$ lxc network set ${network_name} ipv${4}.nat false
try on your machine

This command is used in Linux to set the Network Address Translation (NAT) option to false for a specific network in the Linux Container (LXC) system.

Here's a breakdown of the command syntax:

  • ${network_name}: This is a placeholder for the name of the network you want to modify. You would replace it with the actual name of the network.

  • ipv${4}: This is another placeholder where ${4} is used to represent the version of the IP protocol. So, if you want to set NAT false for IPv4, you would replace ${4} with 4. For IPv6, you would use ${6}.

  • nat false: This specifies that the Network Address Translation option should be set to false. NAT is a technique that allows multiple devices on a private network to share a single public IP address when communicating with the internet. Setting it to false means that NAT will not be used for this network.

Overall, this command is used to disable Network Address Translation for a specific network in the LXC system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lxc tool