1 `net[n]`: `name=<string> [,bridge=<bridge>] [,firewall=<1|0>] [,gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,hwaddr=<XX:XX:XX:XX:XX:XX>] [,ip=<(IPv4/CIDR|dhcp|manual)>] [,ip6=<(IPv6/CIDR|auto|dhcp|manual)>] [,link_down=<1|0>] [,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 A common MAC address with the I/G (Individual/Group) bit not set.
25 `ip`=`<(IPv4/CIDR|dhcp|manual)>` ;;
27 IPv4 address in CIDR format.
29 `ip6`=`<(IPv6/CIDR|auto|dhcp|manual)>` ;;
31 IPv6 address in CIDR format.
33 `link_down`=`<boolean>` ;;
35 Whether this interface should be disconnected (like pulling the plug).
37 `mtu`=`<integer> (64 - 65535)` ;;
39 Maximum transfer unit of the interface. (lxc.network.mtu)
43 Name of the network device as seen from inside the container. (lxc.network.name)
47 Apply rate limiting to the interface
49 `tag`=`<integer> (1 - 4094)` ;;
51 VLAN tag for this interface.
53 `trunks`=`<vlanid[;vlanid...]>` ;;
55 VLAN ids to pass through the interface
59 Network interface type.