1
0

network.po 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:11
  20. msgid "General Network Configuration"
  21. msgstr ""
  22. #. type: Content of: <sect1><sect2><indexterm><primary>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:14
  24. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:167
  25. msgid "network"
  26. msgstr ""
  27. #. type: Content of: <sect1><sect2><indexterm><secondary>
  28. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:15
  29. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:136
  30. msgid "configuring"
  31. msgstr ""
  32. #. type: Content of: <sect1><sect2><title>
  33. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:18
  34. msgid "Creating Network Interface Configuration Files"
  35. msgstr ""
  36. #. type: Content of: <sect1><sect2><para>
  37. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:20
  38. msgid ""
  39. "Which interfaces are brought up and down by the network script usually "
  40. "depends on the files in <filename "
  41. "class=\"directory\">/etc/sysconfig/</filename>. This directory should "
  42. "contain a file for each interface to be configured, such as "
  43. "<filename>ifconfig.xyz</filename>, where <quote>xyz</quote> should describe "
  44. "the network card. The interface name (e.g. eth0) is usually appropriate. "
  45. "Inside this file are attributes to this interface, such as its IP "
  46. "address(es), subnet masks, and so forth. It is necessary that the stem of "
  47. "the filename be <emphasis>ifconfig</emphasis>."
  48. msgstr ""
  49. #. type: Content of: <sect1><sect2><note><para>
  50. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:30
  51. msgid ""
  52. "If the procedure in the previous section was not used, udev will assign "
  53. "network card interface names based on system physical characteristics such "
  54. "as enp2s1. If you are not sure what your interface name is, you can always "
  55. "run <command>ip link</command> or <command>ls /sys/class/net</command> after "
  56. "you have booted your system."
  57. msgstr ""
  58. #. type: Content of: <sect1><sect2><para>
  59. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:37
  60. msgid ""
  61. "The following command creates a sample file for the "
  62. "<emphasis>eth0</emphasis> device with a static IP address:"
  63. msgstr ""
  64. #. jhalfs relies on the values for IFACE, IP, etc. If you want to change
  65. #. them, please inform the jhalfs maintainer(s).
  66. #. type: Content of: <sect1><sect2><screen>
  67. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:41
  68. #, no-wrap
  69. msgid ""
  70. "<userinput>cd /etc/sysconfig/\n"
  71. "cat &gt; ifconfig.<replaceable>eth0</replaceable> &lt;&lt; \"EOF\"\n"
  72. "<literal>ONBOOT=<replaceable>yes</replaceable>\n"
  73. "IFACE=<replaceable>eth0</replaceable>\n"
  74. "SERVICE=<replaceable>ipv4-static</replaceable>\n"
  75. "IP=<replaceable>192.168.1.2</replaceable>\n"
  76. "GATEWAY=<replaceable>192.168.1.1</replaceable>\n"
  77. "PREFIX=<replaceable>24</replaceable>\n"
  78. "BROADCAST=<replaceable>192.168.1.255</replaceable></literal>\n"
  79. "EOF</userinput>"
  80. msgstr ""
  81. #. type: Content of: <sect1><sect2><para>
  82. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:52
  83. msgid ""
  84. "The values in italics must be changed in every file to match the proper "
  85. "setup."
  86. msgstr ""
  87. #. type: Content of: <sect1><sect2><para>
  88. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:55
  89. msgid ""
  90. "If the <envar>ONBOOT</envar> variable is set to <quote>yes</quote> the "
  91. "System V network script will bring up the Network Interface Card (NIC) "
  92. "during the system boot process. If set to anything but <quote>yes</quote> "
  93. "the NIC will be ignored by the network script and not be automatically "
  94. "brought up. The interface can be manually started or stopped with the "
  95. "<command>ifup</command> and <command>ifdown</command> commands."
  96. msgstr ""
  97. #. type: Content of: <sect1><sect2><para>
  98. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:62
  99. msgid ""
  100. "The <envar>IFACE</envar> variable defines the interface name, for example, "
  101. "eth0. It is required for all network device configuration files. The "
  102. "filename extension must match this value."
  103. msgstr ""
  104. #. type: Content of: <sect1><sect2><para>
  105. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:66
  106. msgid ""
  107. "The <envar>SERVICE</envar> variable defines the method used for obtaining "
  108. "the IP address. The LFS-Bootscripts package has a modular IP assignment "
  109. "format, and creating additional files in the <filename "
  110. "class=\"directory\">/lib/services/</filename> directory allows other IP "
  111. "assignment methods. This is commonly used for Dynamic Host Configuration "
  112. "Protocol (DHCP), which is addressed in the BLFS book."
  113. msgstr ""
  114. #. type: Content of: <sect1><sect2><para>
  115. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:73
  116. msgid ""
  117. "The <envar>GATEWAY</envar> variable should contain the default gateway IP "
  118. "address, if one is present. If not, then comment out the variable entirely."
  119. msgstr ""
  120. #. type: Content of: <sect1><sect2><para>
  121. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:77
  122. msgid ""
  123. "The <envar>PREFIX</envar> variable contains the number of bits used in the "
  124. "subnet. Each octet in an IP address is 8 bits. If the subnet's netmask is "
  125. "255.255.255.0, then it is using the first three octets (24 bits) to specify "
  126. "the network number. If the netmask is 255.255.255.240, it would be using the "
  127. "first 28 bits. Prefixes longer than 24 bits are commonly used by DSL and "
  128. "cable-based Internet Service Providers (ISPs). In this example (PREFIX=24), "
  129. "the netmask is 255.255.255.0. Adjust the <envar>PREFIX</envar> variable "
  130. "according to your specific subnet. If omitted, the PREFIX defaults to 24."
  131. msgstr ""
  132. #. type: Content of: <sect1><sect2><para>
  133. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:87
  134. msgid "For more information see the <command>ifup</command> man page."
  135. msgstr ""
  136. #. type: Content of: <sect1><sect2><title>
  137. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:91
  138. msgid "Creating the /etc/resolv.conf File"
  139. msgstr ""
  140. #. type: Content of: <sect1><sect2><indexterm><primary>
  141. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:94
  142. msgid "/etc/resolv.conf"
  143. msgstr ""
  144. #. type: Content of: <sect1><sect2><para>
  145. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:97
  146. msgid ""
  147. "The system will need some means of obtaining Domain Name Service (DNS) name "
  148. "resolution to resolve Internet domain names to IP addresses, and vice "
  149. "versa. This is best achieved by placing the IP address of the DNS server, "
  150. "available from the ISP or network administrator, into "
  151. "<filename>/etc/resolv.conf</filename>. Create the file by running the "
  152. "following:"
  153. msgstr ""
  154. #. type: Content of: <sect1><sect2><screen>
  155. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:104
  156. #, no-wrap
  157. msgid ""
  158. "<userinput>cat &gt; /etc/resolv.conf &lt;&lt; \"EOF\"\n"
  159. "<literal># Begin /etc/resolv.conf\n"
  160. "\n"
  161. "domain <replaceable>&lt;Your Domain Name&gt;</replaceable>\n"
  162. "nameserver <replaceable>&lt;IP address of your primary "
  163. "nameserver&gt;</replaceable>\n"
  164. "nameserver <replaceable>&lt;IP address of your secondary "
  165. "nameserver&gt;</replaceable>\n"
  166. "\n"
  167. "# End /etc/resolv.conf</literal>\n"
  168. "EOF</userinput>"
  169. msgstr ""
  170. #. type: Content of: <sect1><sect2><para>
  171. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:114
  172. msgid ""
  173. "The <varname>domain</varname> statement can be omitted or replaced with a "
  174. "<varname>search</varname> statement. See the man page for resolv.conf for "
  175. "more details."
  176. msgstr ""
  177. #. type: Content of: <sect1><sect2><para>
  178. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:118
  179. msgid ""
  180. "Replace <replaceable>&lt;IP address of the nameserver&gt;</replaceable> with "
  181. "the IP address of the DNS most appropriate for the setup. There will often "
  182. "be more than one entry (requirements demand secondary servers for fallback "
  183. "capability). If you only need or want one DNS server, remove the second "
  184. "<emphasis>nameserver</emphasis> line from the file. The IP address may also "
  185. "be a router on the local network."
  186. msgstr ""
  187. #. type: Content of: <sect1><sect2><note><para>
  188. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:126
  189. msgid "The Google Public IPv4 DNS addresses are 8.8.8.8 and 8.8.4.4."
  190. msgstr ""
  191. #. type: Content of: <sect1><sect2><title>
  192. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:132
  193. msgid "Configuring the system hostname"
  194. msgstr ""
  195. #. type: Content of: <sect1><sect2><indexterm><primary>
  196. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:135
  197. msgid "hostname"
  198. msgstr ""
  199. #. type: Content of: <sect1><sect2><para>
  200. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:139
  201. msgid ""
  202. "During the boot process, the file <filename>/etc/hostname</filename> is used "
  203. "for establishing the system's hostname."
  204. msgstr ""
  205. #. type: Content of: <sect1><sect2><para>
  206. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:142
  207. msgid ""
  208. "Create the <filename>/etc/hostname</filename> file and enter a hostname by "
  209. "running:"
  210. msgstr ""
  211. #. type: Content of: <sect1><sect2><screen>
  212. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:145
  213. #, no-wrap
  214. msgid ""
  215. "<userinput>echo \"<replaceable>&lt;lfs&gt;</replaceable>\" &gt; "
  216. "/etc/hostname</userinput>"
  217. msgstr ""
  218. #. type: Content of: <sect1><sect2><para>
  219. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:147
  220. msgid ""
  221. "<replaceable>&lt;lfs&gt;</replaceable> needs to be replaced with the name "
  222. "given to the computer. Do not enter the Fully Qualified Domain Name (FQDN) "
  223. "here. That information is put in the <filename>/etc/hosts</filename> file."
  224. msgstr ""
  225. #. type: Content of: <sect1><sect2><title>
  226. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:155
  227. msgid "Customizing the /etc/hosts File"
  228. msgstr ""
  229. #. type: Content of: <sect1><sect2><indexterm><secondary>
  230. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:158
  231. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:163
  232. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:168
  233. msgid "/etc/hosts"
  234. msgstr ""
  235. #. type: Content of: <sect1><sect2><indexterm><primary>
  236. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:162
  237. msgid "localnet"
  238. msgstr ""
  239. #. type: Content of: <sect1><sect2><para>
  240. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:171
  241. msgid ""
  242. "Decide on the IP address, fully-qualified domain name (FQDN), and possible "
  243. "aliases for use in the <filename>/etc/hosts</filename> file. The syntax is:"
  244. msgstr ""
  245. #. type: Content of: <sect1><sect2><screen>
  246. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:175
  247. #, no-wrap
  248. msgid "<literal>IP_address myhost.example.org aliases</literal>"
  249. msgstr ""
  250. #. type: Content of: <sect1><sect2><para>
  251. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:177
  252. msgid ""
  253. "Unless the computer is to be visible to the Internet (i.e., there is a "
  254. "registered domain and a valid block of assigned IP addresses&mdash;most "
  255. "users do not have this), make sure that the IP address is in the private "
  256. "network IP address range. Valid ranges are:"
  257. msgstr ""
  258. #. type: Content of: <sect1><sect2><screen>
  259. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:182
  260. #, no-wrap
  261. msgid ""
  262. "<literal>Private Network Address Range Normal Prefix\n"
  263. "10.0.0.1 - 10.255.255.254 8\n"
  264. "172.x.0.1 - 172.x.255.254 16\n"
  265. "192.168.y.1 - 192.168.y.254 24</literal>"
  266. msgstr ""
  267. #. type: Content of: <sect1><sect2><para>
  268. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:187
  269. msgid ""
  270. "x can be any number in the range 16-31. y can be any number in the range "
  271. "0-255."
  272. msgstr ""
  273. #. type: Content of: <sect1><sect2><para>
  274. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:190
  275. msgid ""
  276. "A valid private IP address could be 192.168.1.1. A valid FQDN for this IP "
  277. "could be lfs.example.org."
  278. msgstr ""
  279. #. type: Content of: <sect1><sect2><para>
  280. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:193
  281. msgid ""
  282. "Even if not using a network card, a valid FQDN is still required. This is "
  283. "necessary for certain programs to operate correctly."
  284. msgstr ""
  285. #. type: Content of: <sect1><sect2><para>
  286. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:196
  287. msgid "Create the <filename>/etc/hosts</filename> file by running:"
  288. msgstr ""
  289. #. type: Content of: <sect1><sect2><screen>
  290. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:198
  291. #, no-wrap
  292. msgid ""
  293. "<userinput>cat &gt; /etc/hosts &lt;&lt; \"EOF\"\n"
  294. "<literal># Begin /etc/hosts\n"
  295. "\n"
  296. "127.0.0.1 localhost.localdomain localhost\n"
  297. "127.0.1.1 <replaceable>&lt;FQDN&gt;</replaceable> "
  298. "<replaceable>&lt;HOSTNAME&gt;</replaceable>\n"
  299. "<replaceable>&lt;192.168.1.1&gt;</replaceable> "
  300. "<replaceable>&lt;FQDN&gt;</replaceable> "
  301. "<replaceable>&lt;HOSTNAME&gt;</replaceable> <replaceable>[alias1] [alias2 "
  302. "...]</replaceable>\n"
  303. "::1 localhost ip6-localhost ip6-loopback\n"
  304. "ff02::1 ip6-allnodes\n"
  305. "ff02::2 ip6-allrouters\n"
  306. "\n"
  307. "# End /etc/hosts</literal>\n"
  308. "EOF</userinput>"
  309. msgstr ""
  310. #. type: Content of: <sect1><sect2><para>
  311. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/network.xml:211
  312. msgid ""
  313. "The <replaceable>&lt;192.168.1.1&gt;</replaceable>, "
  314. "<replaceable>&lt;FQDN&gt;</replaceable>, and "
  315. "<replaceable>&lt;HOSTNAME&gt;</replaceable> values need to be changed for "
  316. "specific uses or requirements (if assigned an IP address by a network/system "
  317. "administrator and the machine will be connected to an existing network). The "
  318. "optional alias name(s) can be omitted."
  319. msgstr ""