|
@@ -133,13 +133,13 @@ EOF</userinput></screen>
|
|
|
|
|
|
<screen><userinput>cat > /etc/systemd/network/10-eth-static.network << "EOF"
|
|
|
<literal>[Match]
|
|
|
-Name=<network-device-name>
|
|
|
+Name=<网络设备名>
|
|
|
|
|
|
[Network]
|
|
|
Address=192.168.0.2/24
|
|
|
Gateway=192.168.0.1
|
|
|
DNS=192.168.0.1
|
|
|
-Domains=<replaceable><Your Domain Name></replaceable></literal>
|
|
|
+Domains=<replaceable><您的域名></replaceable></literal>
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
<para>如果您有多个 DNS 服务器,可以在配置文件中创建多个 DNS 项。
|
|
@@ -155,7 +155,7 @@ EOF</userinput></screen>
|
|
|
|
|
|
<screen role="nodump"><userinput>cat > /etc/systemd/network/10-eth-dhcp.network << "EOF"
|
|
|
<literal>[Match]
|
|
|
-Name=<network-device-name>
|
|
|
+Name=<网络设备名>
|
|
|
|
|
|
[Network]
|
|
|
DHCP=ipv4
|
|
@@ -292,7 +292,7 @@ EOF</userinput></screen>
|
|
|
您还需要确定要使用的 IP 地址。
|
|
|
hosts 文件条目的语法是:</para>
|
|
|
|
|
|
-<screen><literal>IP_address myhost.example.org aliases</literal></screen>
|
|
|
+<screen><literal>IP_地址 主机名.域名 别名</literal></screen>
|
|
|
|
|
|
<para>除非该计算机可以从 Internet 访问 (即拥有一个注册域名,
|
|
|
并分配了一个有效的 IP 地址段 —— 多数用户没有分配有效 IP),
|
|
@@ -319,7 +319,7 @@ EOF</userinput></screen>
|
|
|
<literal># Begin /etc/hosts
|
|
|
|
|
|
127.0.0.1 localhost
|
|
|
-127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable>
|
|
|
+127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><主机名></replaceable>
|
|
|
::1 localhost ip6-localhost ip6-loopback
|
|
|
ff02::1 ip6-allnodes
|
|
|
ff02::2 ip6-allrouters
|
|
@@ -336,8 +336,8 @@ EOF</userinput></screen>
|
|
|
<literal># Begin /etc/hosts
|
|
|
|
|
|
127.0.0.1 localhost
|
|
|
-127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable>
|
|
|
-<replaceable><192.168.0.2></replaceable> <replaceable><FQDN></replaceable> <replaceable><HOSTNAME></replaceable> <replaceable>[alias1] [alias2] ...</replaceable>
|
|
|
+127.0.1.1 <replaceable><FQDN></replaceable> <replaceable><主机名></replaceable>
|
|
|
+<replaceable><192.168.0.2></replaceable> <replaceable><FQDN></replaceable> <replaceable><主机名></replaceable> <replaceable>[别名 1] [别名 2] ...</replaceable>
|
|
|
::1 localhost ip6-localhost ip6-loopback
|
|
|
ff02::1 ip6-allnodes
|
|
|
ff02::2 ip6-allrouters
|