3 lxc: linux Container library
5 (C) Copyright Canonical Ltd. 2013
8 Serge Hallyn <serge.hallyn@ubuntu.com>
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 Translated into Japanese
25 by KATOH Yasufumi <karma at jazz.email.ne.jp>
29 <!DOCTYPE refentry PUBLIC @docdtd@ [
31 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
32 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
37 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
40 <refentrytitle>lxc-user-nic</refentrytitle>
41 <manvolnum>1</manvolnum>
45 <refname>lxc-user-nic</refname>
49 Manage nics in another namespace
51 現在と異なるネットワーク名前空間の NIC を管理する
57 <command>lxc-user-nic</command>
58 <command>create</command>
59 <arg choice="req"><replaceable>lxcpath</replaceable></arg>
60 <arg choice="req"><replaceable>name</replaceable></arg>
61 <arg choice="req"><replaceable>pid</replaceable></arg>
62 <arg choice="req"><replaceable>type</replaceable></arg>
63 <arg choice="req"><replaceable>bridge</replaceable></arg>
64 <arg choice="opt"><replaceable>container nicname</replaceable></arg>
68 <command>lxc-user-nic</command>
69 <command>delete</command>
70 <arg choice="req"><replaceable>lxcpath</replaceable></arg>
71 <arg choice="req"><replaceable>name</replaceable></arg>
72 <arg choice="req"><replaceable>path to network namespace</replaceable></arg>
73 <arg choice="req"><replaceable>type</replaceable></arg>
74 <arg choice="req"><replaceable>bridge</replaceable></arg>
75 <arg choice="req"><replaceable>container nicname</replaceable></arg>
80 <title><!-- Description -->説明</title>
84 <command>lxc-user-nic</command> is a setuid-root program with which
85 unprivileged users may create network interfaces for use by a
88 <command>lxc-user-nic</command> は root に setuid されたプログラムで、lxc コンテナが使うネットワークインターフェースを、特権を持たないユーザが作成できます。
92 It will consult the configuration file <filename>@LXC_USERNIC_CONF@</filename>
93 to determine the number of interfaces which the calling user is allowed to
94 create, and which bridge he may attach them to. It tracks the
95 number of interfaces each user has created using the file
96 <filename>@LXC_USERNIC_DB@</filename>. It ensures that the calling
97 user is privileged over the network namespace to which the interface
99 <command>lxc-user-nic</command> also allows to delete network devices.
100 Currently only ovs ports can be deleted.
102 このプログラムは、<filename>@LXC_USERNIC_CONF@</filename> という設定ファイルを参照して、呼び出したユーザが作成することができるインターフェースの数と、どのブリッジに接続するかを決定します。
103 また、ユーザが作成したインターフェースの数を <filename>@LXC_USERNIC_DB@</filename> を使ってチェックします。
104 これにより、呼び出したユーザが、インターフェースを割り当てるネットワーク名前空間上で特権を持つことが保証されます。
105 <command>lxc-user-nic</command> はネットワークデバイスを削除することもできます。
106 現時点では ovs ポートの削除のみ可能です。
113 <title><!-- Options -->オプション</title>
118 <option><replaceable>lxcpath</replaceable></option>
123 The path of the container. This is currently not used.
125 すべてのコンテナが保存されるパス。これは現在使われていません。
132 <option><replaceable>name</replaceable></option>
137 The name of the container. This is currently not used.
146 <option><replaceable>pid</replaceable></option>
151 The process id for the task to whose network namespace the interface
154 インターフェースを割り当てたいネットワーク名前空間を持つタスクのプロセス ID。
161 <option><replaceable>type</replaceable></option>
166 The network interface type to attach. Currently only veth is
167 supported. With this type, two interfaces representing each
168 tunnel endpoint are created. One endpoint will be attached
169 to the specified bridge, while the other will be passed into
172 割り当てるネットワークインターフェースのタイプ。現時点では、veth のみサポートされます。
173 このタイプを指定すると、それぞれがトンネルのエンドポイントとなる 2 つのインターフェースが作成されます。
174 一方のエンドポイントは指定したブリッジに接続され、もう一方はコンテナに割り当てられます。
181 <option><replaceable>bridge</replaceable></option>
186 The bridge to which to attach the network interface, for
187 instance <filename>lxcbr0</filename>.
189 ネットワークインターフェースを接続するブリッジ。
190 例えば <filename>lxcbr0</filename> のように指定します。
197 <option><replaceable>container nicname</replaceable></option>
202 The desired interface name in the container. This will be
203 <filename>eth0</filename> if unspecified.
205 コンテナ内に作られるインターフェースの名前。
206 もし指定しない場合、<filename>eth0</filename> となります。
213 <option><replaceable>path to network namespace</replaceable></option>
218 A path to open to get a file descriptor for the target
220 This is only relevant when an veth device is deleted.
222 対象のネットワーク名前空間のファイルディスクリプタを取得するために open するためのパス。
223 これは veth デバイスを削除するときのみ関係します。
233 <title>See Also</title>
237 <refentrytitle><command>lxc</command></refentrytitle>
238 <manvolnum>1</manvolnum>
242 <refentrytitle><command>lxc-start</command></refentrytitle>
243 <manvolnum>1</manvolnum>
247 <refentrytitle><command>lxc-usernet</command></refentrytitle>
248 <manvolnum>5</manvolnum>
254 <title><!-- Author -->作者</title>
255 <para>Christian Brauner <email>christian@brauner.io</email></para>
256 <para>Serge Hallyn <email>serge@hallyn.com</email></para>
257 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
262 <!-- Keep this comment at the end of the file
267 sgml-minimize-attributes:nil
268 sgml-always-quote-attributes:t
271 sgml-parent-document:nil
272 sgml-default-dtd-file:nil
273 sgml-exposed-tags:nil
274 sgml-local-catalogs:nil
275 sgml-local-ecat-files:nil