]>
Commit | Line | Data |
---|---|---|
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>]` | |
2 | ||
3 | `bridge`: `<bridge>` :: | |
4 | ||
5 | Bridge to attach the network device to. | |
6 | ||
7 | `firewall`: `boolean` :: | |
8 | ||
9 | Controls whether this interface's firewall rules should be used. | |
10 | ||
11 | `gw`: `<GatewayIPv4>` :: | |
12 | ||
13 | Default gateway for IPv4 traffic. | |
14 | ||
15 | `gw6`: `<GatewayIPv6>` :: | |
16 | ||
17 | Default gateway for IPv6 traffic. | |
18 | ||
19 | `hwaddr`: `<XX:XX:XX:XX:XX:XX>` :: | |
20 | ||
21 | 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) | |
22 | ||
23 | `ip`: `<IPv4Format/CIDR>` :: | |
24 | ||
25 | IPv4 address in CIDR format. | |
26 | ||
27 | `ip6`: `<IPv6Format/CIDR>` :: | |
28 | ||
29 | IPv6 address in CIDR format. | |
30 | ||
31 | `mtu`: `integer (64 - N)` :: | |
32 | ||
33 | Maximum transfer unit of the interface. (lxc.network.mtu) | |
34 | ||
35 | `name`: `<string>` :: | |
36 | ||
37 | Name of the network device as seen from inside the container. (lxc.network.name) | |
38 | ||
39 | `rate`: `<mbps>` :: | |
40 | ||
41 | Apply rate limiting to the interface | |
42 | ||
43 | `tag`: `integer (1 - 4094)` :: | |
44 | ||
45 | VLAN tag for this interface. | |
46 | ||
47 | `trunks`: `<vlanid[;vlanid...]>` :: | |
48 | ||
49 | VLAN ids to pass through the interface | |
50 | ||
51 | `type`: `(veth)` :: | |
52 | ||
53 | Network interface type. | |
54 |