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