aboutsummaryrefslogtreecommitdiffstats
path: root/docs/docs/stable/mcc-help/zh_CN/draknetprofile.xml
blob: 09d58d88af94534f0e239feccdd2f7a4c6b999c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?xml version='1.0' encoding='utf-8'?>

<section xmlns='http://docbook.org/ns/docbook'
  xmlns:ns5='http://www.w3.org/1998/Math/MathML'
  xmlns:ns4='http://www.w3.org/2000/svg'
  xmlns:ns3='http://www.w3.org/1999/xhtml'
  xmlns:ns2='http://www.w3.org/1999/xlink'
  xmlns:ns='http://docbook.org/ns/docbook'
  xml:id='draknetprofile' version='5.0'>

  <info>
    <title xml:id='draknetprofile-ti1'>管理不同的网络配置文件</title>
    <subtitle>Draknetprofile</subtitle>
  </info>

  <section>
    <title>简介</title>

    <para>Mageia
会用默认参数自动配置系统中的每个网络接口。这对于大多数台式机用户来说已经足够,但可能不适用于需要频繁变换网络环境的机器。如果您需要在不同网络环境中使用电脑,则需要为网络设备保存多个配置,否则每当网络环境变更时您都得重新手动配置。</para>

    <section>
      <title>配置文件</title>

      <para>Linux 默认为网络设备提供多配置支持。术语<emphasis
role='bold'>“网络配置”</emphasis>指一系列用于在特定网络环境中使用网络设备的配置。每个网络配置都包括一个<emphasis
role='bold'>名称</emphasis>(由系统生成的初始名称一般为<emphasis>“默认”</emphasis>);当您创建新的配置时,必须为它指定一个与其他配置不同的名称。</para>
    </section>

    <section>
      <title>Draknetprofile</title>

      <para>Draknetprofile 是Mageia 控制中心(MCC)中用于管理网络配置的简易模块。它可以:

        <itemizedlist>

          <listitem>
            <para>切换网络配置:您可以启用某个配置并将其应用到对应的设备;</para>
          </listitem>

          <listitem>
            <para>创建新的配置;</para>
          </listitem>

          <listitem>
            <para>删除现有配置。</para>
          </listitem>
        </itemizedlist>
      </para>
    </section>
  </section>

  <section>
    <title>运行 Draknetprofile</title>

    <section>
      <title>添加与切换配置</title>

      <para>添加/切换配置的操作会影响到Linux系统中的所有用户。因此,您需要root权限来运行Draknetprofile。一般情况下,只需从Mageia控制中心(本身拥有root权限)中启动它即可。</para>

      <mediaobject>
        <imageobject>
          <imagedata xml:id='draknetprofile-im1'
            fileref='./draknetprofile_mcc.png' format='PNG' align='center'
            revision='1'/>
        </imageobject>
        <caption>
          <para><emphasis role='bold'>1:Mageia 控制中心 - 网络与互联网 选项卡</emphasis></para>
        </caption>
      </mediaobject>

      <orderedlist>

        <listitem>
          <para>点击桌面的Mageia控制中心图标,启动Mageia控制中心;</para>
        </listitem>

        <listitem>
          <para>点击“网络与互联网”选项卡</para>
        </listitem>

        <listitem>
          <para>在“自定义和网络安全”一栏中,点击“管理不同的网络配置”(图1中用红色线条标出的图标)。</para>
        </listitem>
      </orderedlist>

      <para>Draknetprofile can also be launched by a command-line instruction from a
terminal emulator with root privileges (this may be helpful when
standard-output or error-output from draknetprofile needs to be consulted -
for instance for debugging). Simply type:</para>

      <informaltable frame='all' colsep='1' rowsep='1'>
        <tgroup cols='1'>
          <?dbhtml cellpadding='4' ?>
          <tbody>
            <row><?dbhtml bgcolor='#DDDDDD' ?><?dbfo bgcolor='#DDDDDD' ?>
              <entry><literal>&#x2002;draknetprofile&#x2002;</literal></entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>

      <para>After the launch, the main page of Draknetprofile will be displayed:</para>

      <mediaobject>
        <imageobject>
          <imagedata xml:id='draknetprofile-im2'
            fileref='./draknetprofile_main.png' format='PNG'
            align='center' revision='1'/>
        </imageobject>
        <caption>
          <para><emphasis role='bold'>Figure 2: Management actions of
Draknetprofile</emphasis></para>
        </caption>
      </mediaobject>

      <para>The upper zone of the window contains the list of the names of all presently
defined profiles. The bottom zone presents a series of buttons:</para>

      <itemizedlist>

        <listitem>
          <para>"Activate" ... establish the selected profile (top zone of the window) as
the current profile (and save the properties of the old profile);</para>
        </listitem>

        <listitem>
          <para>"New" ... create a new profile;</para>
        </listitem>

        <listitem>
          <para>"Delete" ... delete the selected profile from the list of defined profiles;</para>
        </listitem>

        <listitem>
          <para>"Quit" ... exit from Draknetprofile.</para>
        </listitem>
      </itemizedlist>

      <para>Before hitting the "Activate" or the "Delete" button, you have to select a
profile from the list: select it by a left-button click on the name of the
target profile.</para>

      <para>Hitting the "New" button will launch an auxiliary window where you can type
the name of the profile you want to create; this name must be different from
any already existing profile. This profile will be created as a precise copy
of the currently active profile and immediately activated as the current
profile. You will probably then need to specify its properties (modify the
automatically created configuration) in a second, independent action:</para>

      <itemizedlist>

        <listitem>
          <para>exit from Draknetprofile (hit the "Quit" button),</para>
        </listitem>

        <listitem>
          <para>back in the "Network &amp; Internet" tab, you select the tab "Set up a new
network interface (...)" (marked with dashed red contour in Figure 1),</para>
        </listitem>

        <listitem>
          <para>you then go through the steps for configuring the interface; they are
similar to those you did for configuring the original interface during
system generation - as documented in the <link
linkend='drakconnect-ti1'>Drakconnect manual</link>.</para>
        </listitem>
      </itemizedlist>

      <para>The middle zone of the window is normally hidden, hit the "Advanced" button
to make it visible. It should display the list of names of Draknetprofile
<emphasis role='bold'>"modules"</emphasis> (such as "network", "firewall",
"urpmi"), each with a check-button next to the name; these check-buttons
determine whether the properties controlled by that module are included into
the profile or not.</para>
    </section>

    <section>
      <title>Using a system that has more than one profile</title>

      <para>In a system where several profiles are defined, an additional user
interaction is required when the system boots: at the very end of the
bootstrapping activities - just before the Desktop Environment starts - you
will get a message like</para>

      <informaltable frame='all' colsep='1' rowsep='1'>
        <tgroup cols='1'>
          <?dbhtml cellpadding='4' ?>
          <tbody>
            <row><?dbhtml bgcolor='#DDDDDD' ?><?dbfo bgcolor='#DDDDDD' ?>
              <entry><literal>&#x2002;Select network profile: (1) default (2)
roaming*&#x2002;</literal></entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>

      <para>Type 1 or 2 to select the "default", respectively the "roaming" profile, or
carriage-return to select the profile that is marked with an asterisk (the
profile that was active when the system had been shut down).</para>

      <para>Presently (Mageia-5) there appears to be an intermittent problem: it happens
that the system becomes unresponsive after soliciting the user to select a
profile. The only way out of this situation is to launch another boot.  This
problem is under investigation.</para>
    </section>
  </section>

  <section>
    <title>Appendix: Files relevant to Draknetprofile</title>

    <para>The configuration data of network interfaces are stored in the directory
<emphasis>/etc/sysconfig/network-scripts/</emphasis>, in files with names
like <emphasis>ifcfg-xxx</emphasis>.</para>

    <para>The name of the currently active profile is maintained in the file
<emphasis>/etc/netprofile/current</emphasis> .
    </para>
  </section>
</section>