1 gnt-network(8) Ganeti | Version @GANETI_VERSION@
2 ================================================
7 gnt-network - Ganeti network administration
12 **gnt-network** {command} [arguments...]
17 The **gnt-network** command is used for network definition and
18 administration in the Ganeti system. Each instance NIC can be connected
19 to a network via the ``network`` NIC parameter. See **gnt-instance**\(8)
25 The ``hail`` iallocator hasn't been updated to take networks into
26 account in Ganeti 2.7. The only way to guarantee that it works correctly
27 is having your networks connected to all nodegroups. This will be fixed
37 | [\--network=*NETWORK*]
38 | [\--gateway=*GATEWAY*]
39 | [\--add-reserved-ips=*RESERVEDIPS*]
40 | [\--network6=*NETWORK6*]
41 | [\--gateway6=*GATEWAY6*]
42 | [\--mac-prefix=*MACPREFIX*]
44 | [\--no-conflicts-check]
47 Creates a new network with the given name. The network will be unused
48 initially. To connect it to a node group, use ``gnt-network connect``.
49 ``--network`` option is mandatory. All other are optional.
51 The ``--network`` option allows you to specify the network in a CIDR
54 The ``--gateway`` option allows you to specify the default gateway for
57 IPv6 semantics can be assigned to the network via the ``--network6`` and
58 ``--gateway6`` options. IP pool is meaningless for IPV6 so those two
59 values can be used for EUI64 generation from a NIC's MAC address.
61 The ``--no-conflicts-check`` option can be used to skip the check for
62 conflicting IP addresses.
64 Note that a when connecting a network to a node group (see below) you
65 can specify also the NIC mode and link that will be used by instances on
66 that group to physically connect to this network. This allows the system
67 to work even if the parameters (eg. the VLAN number) change between
70 See **ganeti**\(7) for a description of ``--submit`` and other common
77 | [\--gateway=*GATEWAY*]
78 | [\--add-reserved-ips=*RESERVEDIPS*]
79 | [\--remove-reserved-ips=*RESERVEDIPS*]
80 | [\--network6=*NETWORK6*]
81 | [\--gateway6=*GATEWAY6*]
82 | [\--mac-prefix=*MACPREFIX*]
86 Modifies parameters from the network.
88 Unable to modify network (IP address range). Create a new network if you
89 want to do so. All other options are documented in the **add** command
92 See **ganeti**\(7) for a description of ``--submit`` and other common
98 | **remove** [\--submit] {*network*}
100 Deletes the indicated network, which must be not connected to any node group.
102 See **ganeti**\(7) for a description of ``--submit`` and other common options.
107 | **list** [\--no-headers] [\--separator=*SEPARATOR*] [-v]
108 | [-o *[+]FIELD,...*] [network...]
110 Lists all existing networks in the cluster. If no group names are given,
111 then all groups are included. Otherwise, only the named groups will be
114 The ``--no-headers`` option will skip the initial header line. The
115 ``--separator`` option takes an argument which denotes what will be used
116 between the output fields. Both these options are to help scripting.
118 The ``-v`` option activates verbose mode, which changes the display of
119 special field states (see **ganeti**\(7)).
121 The ``-o`` option takes a comma-separated list of output fields. If the
122 value of the option starts with the character ``+``, the new fields will
123 be added to the default list. This allows to quickly see the default
124 list plus a few other fields, instead of retyping the entire list of
127 The available fields and their meaning are:
129 @QUERY_FIELDS_NETWORK@
134 **list-fields** [field...]
136 List available fields for networks.
141 | **info** [network...]
143 Displays information about a given network.
149 | [\--no-conflicts-check]
150 | {*network*} {*mode*} {*link*} [*groups*...]
152 Connect a network to given node groups (all if not specified) with the
153 network parameters *mode* and *link*. Every network interface will
154 inherit those parameters if assigned in a network.
156 The ``--no-conflicts-check`` option can be used to skip the check for
157 conflicting IP addresses.
162 | **disconnect** {*network*} [*groups*...]
164 Disconnect a network from given node groups (all if not specified). This
165 is possible only if no instance is using the network.
174 **add-tags** [\--from *file*] {*networkname*} {*tag*...}
176 Add tags to the given network. If any of the tags contains invalid
177 characters, the entire operation will abort.
179 If the ``--from`` option is given, the list of tags will be extended
180 with the contents of that file (each line becomes a tag). In this case,
181 there is not need to pass tags on the command line (if you do, both
182 sources will be used). A file name of ``-`` will be interpreted as
188 **list-tags** {*networkname*}
190 List the tags of the given network.
195 **remove-tags** [\--from *file*] {*networkname*} {*tag*...}
197 Remove tags from the given network. If any of the tags are not existing
198 on the network, the entire operation will abort.
200 If the ``--from`` option is given, the list of tags to be removed will
201 be extended with the contents of that file (each line becomes a tag). In
202 this case, there is not need to pass tags on the command line (if you
203 do, tags from both sources will be removed). A file name of ``-`` will
204 be interpreted as stdin.
206 .. vim: set textwidth=72 :