# 設定 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
