1 `net[n]`: `name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
3 Specifies network interfaces for the container.
7 Bridge to attach the network device to.
9 `firewall`=`<boolean>` ;;
11 Controls whether this interface's firewall rules should be used.
13 `gw`=`<GatewayIPv4>` ;;
15 Default gateway for IPv4 traffic.
17 `gw6`=`<GatewayIPv6>` ;;
19 Default gateway for IPv6 traffic.
21 `hwaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
23 The interface MAC address. This is dynamically allocated by default, but you can set that statically if needed, for example to always have the same link-local IPv6 address. (lxc.network.hwaddr)
25 `ip`=`<IPv4Format/CIDR>` ;;
27 IPv4 address in CIDR format.
29 `ip6`=`<IPv6Format/CIDR>` ;;
31 IPv6 address in CIDR format.
33 `mtu`=`<integer> (64 - N)` ;;
35 Maximum transfer unit of the interface. (lxc.network.mtu)
39 Name of the network device as seen from inside the container. (lxc.network.name)
43 Apply rate limiting to the interface
45 `tag`=`<integer> (1 - 4094)` ;;
47 VLAN tag for this interface.
49 `trunks`=`<vlanid[;vlanid...]>` ;;
51 VLAN ids to pass through the interface
55 Network interface type.