|
293.
|
|
|
The error message the installation ends with might be a little confusing, but the following steps will help you configure the service:
|
|
|
|
安装结束后的错误消息可能会带来小小的困惑,不过下面几步将帮助您配置服务:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/network-config.xml:960(para)
|
|
294.
|
|
|
Most commonly, what you want to do is assign an IP address randomly. This can be done with settings as follows:
|
|
|
|
通常,您想做的是随机指定一个 IP 地址。这可以通过以下设置来实现:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/network-config.xml:964(para)
|
|
295.
|
|
|
# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
# Sample /etc/dhcpd.conf
# (add your comments here)
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
C/network-applications.xml:948(screen)
|
|
296.
|
|
|
This will result in the DHCP server giving a client an IP address from the range 192.168.1.10-192.168.1.100 or 192.168.1.150-192.168.1.200. It will lease an IP address for 600 seconds if the client doesn't ask for a specific time frame. Otherwise the maximum (allowed) lease will be 7200 seconds. The server will also "advise" the client that it should use 255.255.255.0 as its subnet mask, 192.168.1.255 as its broadcast address, 192.168.1.254 as the router/gateway and 192.168.1.1 and 192.168.1.2 as its DNS servers.
|
|
|
|
这将导致 DHCP 服务器从 192.168.1.10-192.168.1.100 或 192.168.1.150-192.168.1.200 范围中分配客户端一个 IP 地址。如果客户端没有要求一个特定的时间帧的话它将租用 600秒的 IP 地址。否则最大 (允许) 租用时间为 7200 秒。服务器也 "建议" 客户端使用 255.255.255.0 做为它的子网掩码,192.168.1.255 作为它的广播地址,192.168.1.254 作为路由器/网关,同时将 192.168.1.1 和 192.168.1.2 作为它的 DNS 服务器。
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/network-config.xml:984(para)
|
|
297.
|
|
|
If you need to specify a WINS server for your Windows clients, you will need to include the netbios-name-servers option, e.g.
|
|
|
|
如果您需要为您的 Windows 客户机指定一个 WINS 服务器,您需要包含 netbios-name-servers 选项,如:
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/network-config.xml:993(para)
|
|
298.
|
|
|
option netbios-name-servers 192.168.1.1;
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
option netbios-name-servers 192.168.1.1;
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
C/network-applications.xml:972(screen)
|
|
299.
|
|
|
Dhcpd configuration settings are taken from the DHCP mini-HOWTO, which can be found <ulink url="http://www.tldp.org/HOWTO/DHCP/index.html">here</ulink>.
|
|
|
|
Dhcpd 配置设置可以从 DHCP 快速指南中得到,该指南可以在 <ulink url="http://www.tldp.org/HOWTO/DHCP/index.html">这里</ulink> 找到。
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/network-config.xml:1000(para)
|
|
300.
|
|
|
DHCP FAQ
|
|
|
|
DHCP 常见问答
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
serverguide/C/network-config.xml:641(ulink)
|
|
301.
|
|
|
Domain Name Service (DNS)
|
|
|
|
域名解析服务 (DNS)
|
|
Translated and reviewed by
Rkyo
|
|
|
|
Located in
serverguide/C/dns.xml:13(title)
|
|
302.
|
|
|
Domain Name Service (DNS) is an Internet service that maps IP addresses and fully qualified domain names (FQDN) to one another. In this way, DNS alleviates the need to remember IP addresses. Computers that run DNS are called <emphasis>name servers</emphasis>. Ubuntu ships with <application>BIND</application> (Berkley Internet Naming Daemon), the most common program used for maintaining a name server on GNU/Linux.
|
|
|
|
域名解析服务 (DNS) 是一个 Internet 服务,相互映射 IP 地址和完全限定域名 (FQDN) 。通过这种方式,使用 DNS 将不再需要记住 IP 地址。运行 DNS 的计算机称为 <emphasis>名称服务器</emphasis>。Ubuntu 提供 <application>BIND</application> (伯克利 Internet 名称守护程序),一个在 GNU/Linux 上最常用的维护名称服务器的程序。
|
|
Translated and reviewed by
姚渺波
|
|
|
|
Located in
C/network-applications.xml:986(para)
|