2017-10-19 09:30:23 +02:00
`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)>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
2016-05-07 11:16:32 +02:00
2016-11-05 17:29:22 +01:00
Specifies network interfaces for the container.
`bridge`=`<bridge>` ;;
2016-05-07 11:16:32 +02:00
Bridge to attach the network device to.
2016-11-05 17:29:22 +01:00
`firewall`=`<boolean>` ;;
2016-05-07 11:16:32 +02:00
Controls whether this interface's firewall rules should be used.
2016-11-05 17:29:22 +01:00
`gw`=`<GatewayIPv4>` ;;
2016-05-07 11:16:32 +02:00
Default gateway for IPv4 traffic.
2016-11-05 17:29:22 +01:00
`gw6`=`<GatewayIPv6>` ;;
2016-05-07 11:16:32 +02:00
Default gateway for IPv6 traffic.
2016-11-05 17:29:22 +01:00
`hwaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
2016-05-07 11:16:32 +02:00
2019-04-04 17:17:19 +02:00
A common MAC address with the I/G (Individual/Group) bit not set.
2016-05-07 11:16:32 +02:00
2017-10-19 09:30:23 +02:00
`ip`=`<(IPv4/CIDR|dhcp|manual)>` ;;
2016-05-07 11:16:32 +02:00
IPv4 address in CIDR format.
2017-10-19 09:30:23 +02:00
`ip6`=`<(IPv6/CIDR|auto|dhcp|manual)>` ;;
2016-05-07 11:16:32 +02:00
IPv6 address in CIDR format.
2022-11-18 07:57:28 +01:00
`mtu`=`<integer> (64 - 65535)` ;;
2016-05-07 11:16:32 +02:00
Maximum transfer unit of the interface. (lxc.network.mtu)
2016-11-05 17:29:22 +01:00
`name`=`<string>` ;;
2016-05-07 11:16:32 +02:00
2016-05-19 16:14:05 +02:00
Name of the network device as seen from inside the container. (lxc.network.name)
2016-05-07 11:16:32 +02:00
2016-11-05 17:29:22 +01:00
`rate`=`<mbps>` ;;
2016-05-07 11:16:32 +02:00
Apply rate limiting to the interface
2016-11-05 17:29:22 +01:00
`tag`=`<integer> (1 - 4094)` ;;
2016-05-07 11:16:32 +02:00
VLAN tag for this interface.
2016-11-05 17:29:22 +01:00
`trunks`=`<vlanid[;vlanid...]>` ;;
2016-05-07 11:16:32 +02:00
VLAN ids to pass through the interface
2016-11-05 17:29:22 +01:00
`type`=`<veth>` ;;
2016-05-07 11:16:32 +02:00
Network interface type.