Statistics
| Branch: | Tag: | Revision:

root / man / gnt-network.rst @ 1ca6e10e

History | View | Annotate | Download (5.3 kB)

1 a04cc7a4 Apollon Oikonomopoulos
gnt-network(8) Ganeti | Version @GANETI_VERSION@
2 a04cc7a4 Apollon Oikonomopoulos
================================================
3 a04cc7a4 Apollon Oikonomopoulos
4 a04cc7a4 Apollon Oikonomopoulos
Name
5 a04cc7a4 Apollon Oikonomopoulos
----
6 a04cc7a4 Apollon Oikonomopoulos
7 a04cc7a4 Apollon Oikonomopoulos
gnt-network - Ganeti network administration
8 a04cc7a4 Apollon Oikonomopoulos
9 a04cc7a4 Apollon Oikonomopoulos
Synopsis
10 a04cc7a4 Apollon Oikonomopoulos
--------
11 a04cc7a4 Apollon Oikonomopoulos
12 a04cc7a4 Apollon Oikonomopoulos
**gnt-network** {command} [arguments...]
13 a04cc7a4 Apollon Oikonomopoulos
14 a04cc7a4 Apollon Oikonomopoulos
DESCRIPTION
15 a04cc7a4 Apollon Oikonomopoulos
-----------
16 a04cc7a4 Apollon Oikonomopoulos
17 d9e2b496 Guido Trotter
The **gnt-network** command is used for network definition and
18 c8b96be4 Guido Trotter
administration in the Ganeti system. Each instance NIC can be connected
19 c8b96be4 Guido Trotter
to a network via the ``network`` NIC parameter. See **gnt-instance**\(8)
20 d9e2b496 Guido Trotter
for more details.
21 a04cc7a4 Apollon Oikonomopoulos
22 d187780c Guido Trotter
BUGS
23 d187780c Guido Trotter
----
24 d187780c Guido Trotter
25 d187780c Guido Trotter
The ``hail`` iallocator hasn't been updated to take networks into
26 d187780c Guido Trotter
account in Ganeti 2.7. The only way to guarantee that it works correctly
27 d187780c Guido Trotter
is having your networks connected to all nodegroups. This will be fixed
28 d187780c Guido Trotter
in a future version.
29 d187780c Guido Trotter
30 a04cc7a4 Apollon Oikonomopoulos
COMMANDS
31 a04cc7a4 Apollon Oikonomopoulos
--------
32 a04cc7a4 Apollon Oikonomopoulos
33 a04cc7a4 Apollon Oikonomopoulos
ADD
34 a04cc7a4 Apollon Oikonomopoulos
~~~
35 a04cc7a4 Apollon Oikonomopoulos
36 a04cc7a4 Apollon Oikonomopoulos
| **add**
37 67c15d8b Iustin Pop
| [\--network=*NETWORK*]
38 67c15d8b Iustin Pop
| [\--gateway=*GATEWAY*]
39 67c15d8b Iustin Pop
| [\--add-reserved-ips=*RESERVEDIPS*]
40 67c15d8b Iustin Pop
| [\--network6=*NETWORK6*]
41 67c15d8b Iustin Pop
| [\--gateway6=*GATEWAY6*]
42 67c15d8b Iustin Pop
| [\--mac-prefix=*MACPREFIX*]
43 d6cd74dd Klaus Aehlig
| [\--submit] [\--print-job-id]
44 a04cc7a4 Apollon Oikonomopoulos
| {*network*}
45 a04cc7a4 Apollon Oikonomopoulos
46 a04cc7a4 Apollon Oikonomopoulos
Creates a new network with the given name. The network will be unused
47 a04cc7a4 Apollon Oikonomopoulos
initially. To connect it to a node group, use ``gnt-network connect``.
48 a04cc7a4 Apollon Oikonomopoulos
``--network`` option is mandatory. All other are optional.
49 a04cc7a4 Apollon Oikonomopoulos
50 e23cb7ca Michael Hanselmann
The ``--network`` option allows you to specify the network in a CIDR
51 e23cb7ca Michael Hanselmann
notation.
52 a04cc7a4 Apollon Oikonomopoulos
53 e23cb7ca Michael Hanselmann
The ``--gateway`` option allows you to specify the default gateway for
54 e23cb7ca Michael Hanselmann
this network.
55 a04cc7a4 Apollon Oikonomopoulos
56 a04cc7a4 Apollon Oikonomopoulos
IPv6 semantics can be assigned to the network via the ``--network6`` and
57 e23cb7ca Michael Hanselmann
``--gateway6`` options. IP pool is meaningless for IPV6 so those two
58 e23cb7ca Michael Hanselmann
values can be used for EUI64 generation from a NIC's MAC address.
59 3924c9e0 Michael Hanselmann
60 d9e2b496 Guido Trotter
Note that a when connecting a network to a node group (see below) you
61 c8b96be4 Guido Trotter
can specify also the NIC mode and link that will be used by instances on
62 d9e2b496 Guido Trotter
that group to physically connect to this network. This allows the system
63 d9e2b496 Guido Trotter
to work even if the parameters (eg. the VLAN number) change between
64 d9e2b496 Guido Trotter
groups.
65 d9e2b496 Guido Trotter
66 354c4f62 Michael Hanselmann
See **ganeti**\(7) for a description of ``--submit`` and other common
67 e23cb7ca Michael Hanselmann
options.
68 a04cc7a4 Apollon Oikonomopoulos
69 a04cc7a4 Apollon Oikonomopoulos
MODIFY
70 a04cc7a4 Apollon Oikonomopoulos
~~~~~~
71 a04cc7a4 Apollon Oikonomopoulos
72 a04cc7a4 Apollon Oikonomopoulos
| **modify**
73 67c15d8b Iustin Pop
| [\--gateway=*GATEWAY*]
74 67c15d8b Iustin Pop
| [\--add-reserved-ips=*RESERVEDIPS*]
75 67c15d8b Iustin Pop
| [\--remove-reserved-ips=*RESERVEDIPS*]
76 67c15d8b Iustin Pop
| [\--network6=*NETWORK6*]
77 67c15d8b Iustin Pop
| [\--gateway6=*GATEWAY6*]
78 67c15d8b Iustin Pop
| [\--mac-prefix=*MACPREFIX*]
79 d6cd74dd Klaus Aehlig
| [\--submit] [\--print-job-id]
80 a04cc7a4 Apollon Oikonomopoulos
| {*network*}
81 a04cc7a4 Apollon Oikonomopoulos
82 a04cc7a4 Apollon Oikonomopoulos
Modifies parameters from the network.
83 a04cc7a4 Apollon Oikonomopoulos
84 e23cb7ca Michael Hanselmann
Unable to modify network (IP address range). Create a new network if you
85 e23cb7ca Michael Hanselmann
want to do so. All other options are documented in the **add** command
86 e23cb7ca Michael Hanselmann
above.
87 3924c9e0 Michael Hanselmann
88 354c4f62 Michael Hanselmann
See **ganeti**\(7) for a description of ``--submit`` and other common
89 e23cb7ca Michael Hanselmann
options.
90 a04cc7a4 Apollon Oikonomopoulos
91 a04cc7a4 Apollon Oikonomopoulos
REMOVE
92 a04cc7a4 Apollon Oikonomopoulos
~~~~~~
93 a04cc7a4 Apollon Oikonomopoulos
94 d6cd74dd Klaus Aehlig
| **remove** [\--submit] [\--print-job-id] {*network*}
95 a04cc7a4 Apollon Oikonomopoulos
96 a04cc7a4 Apollon Oikonomopoulos
Deletes the indicated network, which must be not connected to any node group.
97 a04cc7a4 Apollon Oikonomopoulos
98 354c4f62 Michael Hanselmann
See **ganeti**\(7) for a description of ``--submit`` and other common options.
99 3924c9e0 Michael Hanselmann
100 a04cc7a4 Apollon Oikonomopoulos
LIST
101 a04cc7a4 Apollon Oikonomopoulos
~~~~
102 a04cc7a4 Apollon Oikonomopoulos
103 67c15d8b Iustin Pop
| **list** [\--no-headers] [\--separator=*SEPARATOR*] [-v]
104 a04cc7a4 Apollon Oikonomopoulos
| [-o *[+]FIELD,...*] [network...]
105 a04cc7a4 Apollon Oikonomopoulos
106 e23cb7ca Michael Hanselmann
Lists all existing networks in the cluster. If no group names are given,
107 e23cb7ca Michael Hanselmann
then all groups are included. Otherwise, only the named groups will be
108 e23cb7ca Michael Hanselmann
listed.
109 a04cc7a4 Apollon Oikonomopoulos
110 a04cc7a4 Apollon Oikonomopoulos
The ``--no-headers`` option will skip the initial header line. The
111 e23cb7ca Michael Hanselmann
``--separator`` option takes an argument which denotes what will be used
112 e23cb7ca Michael Hanselmann
between the output fields. Both these options are to help scripting.
113 a04cc7a4 Apollon Oikonomopoulos
114 a04cc7a4 Apollon Oikonomopoulos
The ``-v`` option activates verbose mode, which changes the display of
115 354c4f62 Michael Hanselmann
special field states (see **ganeti**\(7)).
116 a04cc7a4 Apollon Oikonomopoulos
117 e23cb7ca Michael Hanselmann
The ``-o`` option takes a comma-separated list of output fields. If the
118 e23cb7ca Michael Hanselmann
value of the option starts with the character ``+``, the new fields will
119 e23cb7ca Michael Hanselmann
be added to the default list. This allows to quickly see the default
120 e23cb7ca Michael Hanselmann
list plus a few other fields, instead of retyping the entire list of
121 e23cb7ca Michael Hanselmann
fields.
122 a04cc7a4 Apollon Oikonomopoulos
123 a04cc7a4 Apollon Oikonomopoulos
The available fields and their meaning are:
124 a04cc7a4 Apollon Oikonomopoulos
125 e1195cd4 Michael Hanselmann
@QUERY_FIELDS_NETWORK@
126 a04cc7a4 Apollon Oikonomopoulos
127 a04cc7a4 Apollon Oikonomopoulos
LIST-FIELDS
128 a04cc7a4 Apollon Oikonomopoulos
~~~~~~~~~~~
129 a04cc7a4 Apollon Oikonomopoulos
130 a04cc7a4 Apollon Oikonomopoulos
**list-fields** [field...]
131 a04cc7a4 Apollon Oikonomopoulos
132 a04cc7a4 Apollon Oikonomopoulos
List available fields for networks.
133 a04cc7a4 Apollon Oikonomopoulos
134 be862db9 Michael Hanselmann
INFO
135 be862db9 Michael Hanselmann
~~~~
136 be862db9 Michael Hanselmann
137 be862db9 Michael Hanselmann
| **info** [network...]
138 be862db9 Michael Hanselmann
139 be862db9 Michael Hanselmann
Displays information about a given network.
140 be862db9 Michael Hanselmann
141 be862db9 Michael Hanselmann
CONNECT
142 be862db9 Michael Hanselmann
~~~~~~~
143 be862db9 Michael Hanselmann
144 be862db9 Michael Hanselmann
| **connect** {*network*} {*mode*} {*link*} [*groups*...]
145 be862db9 Michael Hanselmann
146 be862db9 Michael Hanselmann
Connect a network to given node groups (all if not specified) with the
147 be862db9 Michael Hanselmann
network parameters *mode* and *link*. Every network interface will
148 be862db9 Michael Hanselmann
inherit those parameters if assigned in a network.
149 be862db9 Michael Hanselmann
150 be862db9 Michael Hanselmann
DISCONNECT
151 be862db9 Michael Hanselmann
~~~~~~~~~~
152 be862db9 Michael Hanselmann
153 be862db9 Michael Hanselmann
| **disconnect** {*network*} [*groups*...]
154 be862db9 Michael Hanselmann
155 be862db9 Michael Hanselmann
Disconnect a network from given node groups (all if not specified). This
156 be862db9 Michael Hanselmann
is possible only if no instance is using the network.
157 be862db9 Michael Hanselmann
158 be862db9 Michael Hanselmann
159 fa5121f0 Iustin Pop
Tags
160 fa5121f0 Iustin Pop
~~~~
161 6e8091f9 Dimitris Aragiorgis
162 6e8091f9 Dimitris Aragiorgis
ADD-TAGS
163 6e8091f9 Dimitris Aragiorgis
^^^^^^^^
164 6e8091f9 Dimitris Aragiorgis
165 6e8091f9 Dimitris Aragiorgis
**add-tags** [\--from *file*] {*networkname*} {*tag*...}
166 6e8091f9 Dimitris Aragiorgis
167 6e8091f9 Dimitris Aragiorgis
Add tags to the given network. If any of the tags contains invalid
168 6e8091f9 Dimitris Aragiorgis
characters, the entire operation will abort.
169 6e8091f9 Dimitris Aragiorgis
170 6e8091f9 Dimitris Aragiorgis
If the ``--from`` option is given, the list of tags will be extended
171 6e8091f9 Dimitris Aragiorgis
with the contents of that file (each line becomes a tag). In this case,
172 6e8091f9 Dimitris Aragiorgis
there is not need to pass tags on the command line (if you do, both
173 6e8091f9 Dimitris Aragiorgis
sources will be used). A file name of ``-`` will be interpreted as
174 6e8091f9 Dimitris Aragiorgis
stdin.
175 6e8091f9 Dimitris Aragiorgis
176 6e8091f9 Dimitris Aragiorgis
LIST-TAGS
177 6e8091f9 Dimitris Aragiorgis
^^^^^^^^^
178 6e8091f9 Dimitris Aragiorgis
179 6e8091f9 Dimitris Aragiorgis
**list-tags** {*networkname*}
180 6e8091f9 Dimitris Aragiorgis
181 6e8091f9 Dimitris Aragiorgis
List the tags of the given network.
182 6e8091f9 Dimitris Aragiorgis
183 6e8091f9 Dimitris Aragiorgis
REMOVE-TAGS
184 6e8091f9 Dimitris Aragiorgis
^^^^^^^^^^^
185 6e8091f9 Dimitris Aragiorgis
186 6e8091f9 Dimitris Aragiorgis
**remove-tags** [\--from *file*] {*networkname*} {*tag*...}
187 6e8091f9 Dimitris Aragiorgis
188 e23cb7ca Michael Hanselmann
Remove tags from the given network. If any of the tags are not existing
189 e23cb7ca Michael Hanselmann
on the network, the entire operation will abort.
190 6e8091f9 Dimitris Aragiorgis
191 6e8091f9 Dimitris Aragiorgis
If the ``--from`` option is given, the list of tags to be removed will
192 6e8091f9 Dimitris Aragiorgis
be extended with the contents of that file (each line becomes a tag). In
193 6e8091f9 Dimitris Aragiorgis
this case, there is not need to pass tags on the command line (if you
194 6e8091f9 Dimitris Aragiorgis
do, tags from both sources will be removed). A file name of ``-`` will
195 6e8091f9 Dimitris Aragiorgis
be interpreted as stdin.
196 6e8091f9 Dimitris Aragiorgis
197 e23cb7ca Michael Hanselmann
.. vim: set textwidth=72 :
198 e23cb7ca Michael Hanselmann
.. Local Variables:
199 e23cb7ca Michael Hanselmann
.. mode: rst
200 e23cb7ca Michael Hanselmann
.. fill-column: 72
201 e23cb7ca Michael Hanselmann
.. End: