Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
zh:docs:guide-user:base-system:dhcp [2019/11/03 14:34] – created longgenxingzh:docs:guide-user:base-system:dhcp [2019/11/04 02:20] longgenxing
Line 1: Line 1:
-FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// 
- 
 ====== DNS and DHCP configuration /etc/config/dhcp ====== ====== DNS and DHCP configuration /etc/config/dhcp ======
 +====== DNS 和 DHCP 配置文件/etc/config/dhcp的操作 ======
 See also: [[dhcp_configuration|DNS and DHCP configuration examples]] See also: [[dhcp_configuration|DNS and DHCP configuration examples]]
 +
 +**中文翻译**:相关内容同时参见: [[dhcp_configuration|DNS and DHCP configuration examples]]
  
 OpenWrt uses //dnsmasq// and //odhcpd// to serve DHCP and DNS by default. OpenWrt uses //dnsmasq// and //odhcpd// to serve DHCP and DNS by default.
  
-Software Roles Ports Configuration ^+**中文翻译**:OpenWrt系统默认使用 //dnsmasq// 和 //odhcpd//这两个软件来提供DHCP和DNS服务。  
 + 
 +软件 功能 使用端口 配置文件 ^
 | dnsmasq | DNS | 53/TCP, 53/UDP | ''/etc/config/dhcp'' | | dnsmasq | DNS | 53/TCP, 53/UDP | ''/etc/config/dhcp'' |
 | ::: | DHCP | 67/UDP | ::: | | ::: | DHCP | 67/UDP | ::: |
Line 12: Line 15:
  
 In the default configuration this file contains one //common section// to specify DNS and daemon related options and one or more //DHCP pools// to define DHCP serving on network interfaces. In the default configuration this file contains one //common section// to specify DNS and daemon related options and one or more //DHCP pools// to define DHCP serving on network interfaces.
 +
 +**中文翻译**:默认情况下,配置文件包含了一个//一般配置段//来设定DNS和后台服务的参数,以及针对某个网络接口定义的一个或多个DHCP地址池。
  
 ===== Sections ===== ===== Sections =====
 +===== 配置段 =====
 Possible section types of the ''dhcp'' configuration file are defined below. Possible section types of the ''dhcp'' configuration file are defined below.
 Not all types may appear in the file and most of them are only needed for special configurations. Not all types may appear in the file and most of them are only needed for special configurations.
 The common ones are the //Common Options//, the //DHCP Pools// and //Static Leases//. The common ones are the //Common Options//, the //DHCP Pools// and //Static Leases//.
 +
 +**中文翻译**:常用的DHCP配置段配置文件形式如下。
 +不是所有类型的参数都会在文件里同时出现,很多参数只有需要特殊功能时候才设置。
 +最常用的配置段落有三个://Common Options//称为一般性配置段,//DHCP Pools//称为地址池配置段,以及//Static Leases//称为固定租期配置段.
  
 ==== Common options ==== ==== Common options ====
  • Last modified: 2023/12/28 18:07
  • by heybrowhatsup