# DHCP Setting

## Prerequisite

* มีการสร้าง VPC Network แล้ว ([ขั้นตอนการสร้าง VPC Network](/ncs-documents/networking/vpc-network/create-a-network.md))

## Instruction

### 1.  เข้ามาที่หน้า VPC Network

คลิกที่ subnet เพื่อ expand ข้อมูลของ VPC Network ออกมา

![VPC Networks Page](/files/nJ6MQQkNoIdNkvJwRNLH)

### 2. คลิกที่ Setting&#x20;

![](/files/ncu4PbNTHMQaKiVeoC3q)

### 3. การจัดการ Subnet

![Subnet Setting](/files/SFYcXLSVkYKLEHLuUTCp)

3.1 DHCP : สำหรับเปิดปิด DHCP

3.2 DNS Nameservers : สำหรับเพิ่ม DNS Server

3.3 Host Routes : สำหรับเพิ่ม Route ให้ Subnet

### 4. DHCP

สามารถ toggle เพื่อเปิดปิด DHCP

![DHCP](/files/lNfULO8hgIHCaRTR19ub)

### 5. DNS Nameservers

คุณสามารถใส่ IP ของ DNS ที่ต้องการได้มากสุด 2 IP เมื่อเสร็จแล้วคลิก confirm

จากนั้นจะต้อง [restart Instance](/ncs-documents/compute/compute-instance/managing-instance/restart.md) 1 รอบเพื่อให้สามารถใช้งานได้อย่างสมบูรณ์

![DNS Nameservers](/files/FTF2qjD0MMMEDu2iD5fQ)

### 6. Host Routes

คุณสามารถเพิ่ม traffic route ไปยัง gateway ที่ไม่ใช่ default นี้โดยใส่ข้อมูล destination IP และ nexthop IP เมื่อเสร็จแล้วคลิก confirm

จากนั้นจะต้อง [restart Instance](/ncs-documents/compute/compute-instance/managing-instance/restart.md) 1 รอบเพื่อให้สามารถใช้งานได้อย่างสมบูรณ์

![Host Routers](/files/nJlc1QBpHaMaAE8pllnD)


---

# 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://docs-epc.gitbook.io/ncs-documents/networking/vpc-network/dhcp-setting.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.
