You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pct-network-opts.adoc 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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)>] [,mtu=<integer>] [,rate=<mbps>] [,tag=<integer>] [,trunks=<vlanid[;vlanid...]>] [,type=<veth>]` ::
  2. Specifies network interfaces for the container.
  3. `bridge`=`<bridge>` ;;
  4. Bridge to attach the network device to.
  5. `firewall`=`<boolean>` ;;
  6. Controls whether this interface's firewall rules should be used.
  7. `gw`=`<GatewayIPv4>` ;;
  8. Default gateway for IPv4 traffic.
  9. `gw6`=`<GatewayIPv6>` ;;
  10. Default gateway for IPv6 traffic.
  11. `hwaddr`=`<XX:XX:XX:XX:XX:XX>` ;;
  12. A common MAC address with the I/G (Individual/Group) bit not set.
  13. `ip`=`<(IPv4/CIDR|dhcp|manual)>` ;;
  14. IPv4 address in CIDR format.
  15. `ip6`=`<(IPv6/CIDR|auto|dhcp|manual)>` ;;
  16. IPv6 address in CIDR format.
  17. `mtu`=`<integer> (64 - N)` ;;
  18. Maximum transfer unit of the interface. (lxc.network.mtu)
  19. `name`=`<string>` ;;
  20. Name of the network device as seen from inside the container. (lxc.network.name)
  21. `rate`=`<mbps>` ;;
  22. Apply rate limiting to the interface
  23. `tag`=`<integer> (1 - 4094)` ;;
  24. VLAN tag for this interface.
  25. `trunks`=`<vlanid[;vlanid...]>` ;;
  26. VLAN ids to pass through the interface
  27. `type`=`<veth>` ;;
  28. Network interface type.