| 1 |
<!-- SPDX-License-Identifier: LGPL-2.1+ --> |
| 2 |
|
| 3 |
<!DOCTYPE refentry PUBLIC @docdtd@ [ |
| 4 |
|
| 5 |
<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml"> |
| 6 |
<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml"> |
| 7 |
]> |
| 8 |
|
| 9 |
<refentry> |
| 10 |
|
| 11 |
<docinfo><date>@LXC_GENERATE_DATE@</date></docinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>lxc-user-nic</refentrytitle> |
| 15 |
<manvolnum>1</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>lxc-user-nic</refname> |
| 20 |
|
| 21 |
<refpurpose> |
| 22 |
<!-- |
| 23 |
Create and attach a nic to another network namespace. |
| 24 |
--> |
| 25 |
NIC 를 생성하여 다른 네임스페이스에 붙이기 |
| 26 |
</refpurpose> |
| 27 |
</refnamediv> |
| 28 |
|
| 29 |
<refsynopsisdiv> |
| 30 |
<cmdsynopsis> |
| 31 |
<command>lxc-user-nic</command> |
| 32 |
<arg choice="req"><replaceable>pid</replaceable></arg> |
| 33 |
<arg choice="req"><replaceable>type</replaceable></arg> |
| 34 |
<arg choice="req"><replaceable>bridge</replaceable></arg> |
| 35 |
<arg choice="opt"><replaceable>nicname</replaceable></arg> |
| 36 |
</cmdsynopsis> |
| 37 |
</refsynopsisdiv> |
| 38 |
|
| 39 |
<refsect1> |
| 40 |
<title><!-- Description -->설명</title> |
| 41 |
|
| 42 |
<para> |
| 43 |
<!-- |
| 44 |
<command>lxc-user-nic</command> is a setuid-root program with which |
| 45 |
unprivileged users may create network interfaces for use by a lxc container. |
| 46 |
--> |
| 47 |
<command>lxc-user-nic</command>는 root로 setuid한 프로그램이므로, 특권이 없는 사용자들도 lxc 컨테이너가 사용할 네트워크 인터페이스를 생성할 수 있다. |
| 48 |
</para> |
| 49 |
<para> |
| 50 |
<!-- |
| 51 |
It will consult the configuration file <filename>@LXC_USERNIC_CONF@</filename> |
| 52 |
to determine the number of interfaces which the calling user is allowed to |
| 53 |
create, and which bridge they may attach them to. It tracks the |
| 54 |
number of interfaces each user has created using the file |
| 55 |
<filename>@LXC_USERNIC_DB@</filename>. It ensures that the calling |
| 56 |
user is privileged over the network namespace to which the interface |
| 57 |
will be attached. |
| 58 |
--> |
| 59 |
이 명령어는 <filename>@LXC_USERNIC_CONF@</filename>을 읽어, 호출한 사용자가 만들수 있는 인터페이스의 수와 어느 브리지에 붙일지 결정한다. |
| 60 |
각 사용자가 생성한 인터페이스의 수를 <filename>@LXC_USERNIC_DB@</filename> 파일에 기록한다. |
| 61 |
그리고 호출한 사용자가 인터페이스를 붙인 네트워크 네임스페이스에 특권을 갖게 한다. |
| 62 |
</para> |
| 63 |
|
| 64 |
</refsect1> |
| 65 |
|
| 66 |
<refsect1> |
| 67 |
|
| 68 |
<title><!-- Options -->옵션</title> |
| 69 |
|
| 70 |
<variablelist> |
| 71 |
|
| 72 |
<varlistentry> |
| 73 |
<term> |
| 74 |
<option><replaceable>pid</replaceable></option> |
| 75 |
</term> |
| 76 |
<listitem> |
| 77 |
<para> |
| 78 |
<!-- |
| 79 |
The process id for the task to whose network namespace the interface |
| 80 |
should be attached. |
| 81 |
--> |
| 82 |
인터페이스가 붙어야하는 네트워크 네임스페이스에 속해있는 프로세스 ID. |
| 83 |
</para> |
| 84 |
</listitem> |
| 85 |
</varlistentry> |
| 86 |
|
| 87 |
<varlistentry> |
| 88 |
<term> |
| 89 |
<option><replaceable>type</replaceable></option> |
| 90 |
</term> |
| 91 |
<listitem> |
| 92 |
<para> |
| 93 |
<!-- |
| 94 |
The network interface type to attach. Currently only veth is |
| 95 |
supported. With this type, two interfaces representing each |
| 96 |
tunnel endpoint are created. One endpoint will be attached |
| 97 |
to the specified bridge, while the other will be passed into |
| 98 |
the container. |
| 99 |
--> |
| 100 |
붙일 네트워크 인터페이스의 형태. 현재는 veth만 지원가능하다. 이 형태에서는 두개의 인터페이스가 각각 터널의 끝지점으로 생성된다. 하나의 끝지점이 특정 브리지에 붙고, 다른 하나는 컨테이너 내부로 넘겨지게 된다. |
| 101 |
</para> |
| 102 |
</listitem> |
| 103 |
</varlistentry> |
| 104 |
|
| 105 |
<varlistentry> |
| 106 |
<term> |
| 107 |
<option><replaceable>bridge</replaceable></option> |
| 108 |
</term> |
| 109 |
<listitem> |
| 110 |
<para> |
| 111 |
<!-- |
| 112 |
The bridge to which to attach the network interface, for |
| 113 |
instance <filename>lxcbr0</filename>. |
| 114 |
--> |
| 115 |
네트워크 인터페이스를 붙일 프리지. 예를 들어, <filename>lxcbr0</filename> 같이 지정 가능하다. |
| 116 |
</para> |
| 117 |
</listitem> |
| 118 |
</varlistentry> |
| 119 |
|
| 120 |
<varlistentry> |
| 121 |
<term> |
| 122 |
<option><replaceable>nicname</replaceable></option> |
| 123 |
</term> |
| 124 |
<listitem> |
| 125 |
<para> |
| 126 |
<!-- |
| 127 |
The desired interface name in the container. This will be |
| 128 |
<filename>eth0</filename> if unspecified. |
| 129 |
--> |
| 130 |
컨테이너내에서 사용할 인터페이스 이름. 지정하지 않는다면 <filename>eth0</filename>로 된다. |
| 131 |
</para> |
| 132 |
</listitem> |
| 133 |
</varlistentry> |
| 134 |
|
| 135 |
</variablelist> |
| 136 |
|
| 137 |
</refsect1> |
| 138 |
|
| 139 |
<refsect1> |
| 140 |
<title><!-- See Also -->참조</title> |
| 141 |
|
| 142 |
<simpara> |
| 143 |
<citerefentry> |
| 144 |
<refentrytitle><command>lxc</command></refentrytitle> |
| 145 |
<manvolnum>1</manvolnum> |
| 146 |
</citerefentry>, |
| 147 |
|
| 148 |
<citerefentry> |
| 149 |
<refentrytitle><command>lxc-start</command></refentrytitle> |
| 150 |
<manvolnum>1</manvolnum> |
| 151 |
</citerefentry>, |
| 152 |
|
| 153 |
<citerefentry> |
| 154 |
<refentrytitle><command>lxc-usernet</command></refentrytitle> |
| 155 |
<manvolnum>5</manvolnum> |
| 156 |
</citerefentry> |
| 157 |
</simpara> |
| 158 |
</refsect1> |
| 159 |
|
| 160 |
</refentry> |
| 161 |
|
| 162 |
<!-- Keep this comment at the end of the file |
| 163 |
Local variables: |
| 164 |
mode: sgml |
| 165 |
sgml-omittag:t |
| 166 |
sgml-shorttag:t |
| 167 |
sgml-minimize-attributes:nil |
| 168 |
sgml-always-quote-attributes:t |
| 169 |
sgml-indent-step:2 |
| 170 |
sgml-indent-data:t |
| 171 |
sgml-parent-document:nil |
| 172 |
sgml-default-dtd-file:nil |
| 173 |
sgml-exposed-tags:nil |
| 174 |
sgml-local-catalogs:nil |
| 175 |
sgml-local-ecat-files:nil |
| 176 |
End: |
| 177 |
--> |