> For the complete documentation index, see [llms.txt](https://applezulab.netdpi.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://applezulab.netdpi.net/02-linux-xi-tong-cao-zuo/she-ding-dhcpd-server.md).

# 設定 DHCPd server

```
下面這是一些曾經設定過的選項：

* 修改 dhcpd.conf 

* 修改租約期限 
default-lease-time 250000; 
max-lease-time 518000 

* 設定 domain name and dns ip 
option domain-name "domain name"; 
option domain-name-servers 168.95.1.1, 139.175.150.20; 

* 設定分配 IP 
subnet 192.168.1.0 netmask 255.255.255.0 { 
  range 192.168.1.150 192.168.1.180; 
  option broadcast-address 192.168.1.255; 
  option routers 192.168.1.254; 
} 

* 設定靜態固定 IP 
host inside{ 
  hardware ethernet 00:11:22:33:44:55; 
  fixed-address 192.168.1.10; 
  options broadcast-address 192.168.1.255; 
  option routers 192.168.1.254; 
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://applezulab.netdpi.net/02-linux-xi-tong-cao-zuo/she-ding-dhcpd-server.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
