#iptv #option50 #dhcp #dhcptoption #isc #iscdhcpserver #rfc #bootp #vendorclassidentifier #tcpdump #vendor
#### **What Is Option 60?**
Option 60, also known as the **Vendor Class Identifier**, is a **DHCP option** that allows a **DHCP client** to indicate which vendor or device class it belongs to. The **DHCP server** can use this information to assign **specific configuration parameters** or **boot files** (such as for **PXE boot environments**) based on the client's identifier.
### **How Option 60 Works:**
- **Identification**: When a client starts up and sends a **DHCP Discover** message, it can include option **60** to provide information about its device type or manufacturer.
- **Custom Configuration**: The **DHCP server** can use this data to assign **custom settings** or specific **boot files**, which is useful in networks with **various device types** or **PXE network boot environments**.
- **Standardized**: This behavior is defined in **[RFC 2132, Section 9.14](https://datatracker.ietf.org/doc/html/rfc2132)**.
---
## **How to Configure Option 60 in an ISC DHCP Server on Ubuntu**
You can configure **DHCP Option 60** on an **ISC DHCP server** by modifying the configuration file.
### **1. Edit the DHCP Configuration File**
Open the **ISC DHCP configuration file** using a text editor:
`sudo nano /etc/dhcp/dhcpd.conf`
---
### **2. Add Option 60 in the Configuration**
Depending on your **network setup**, you can configure **option 60** globally (for all subnets) or per subnet.
#### **Global Scope (for all subnets)**
To apply **option 60** to **all clients**, add this line at the **end of the file**:
`option vendor-class-identifier "IPTV_RG";`
---
#### **Subnet-Specific Configuration**
If you only want **certain clients** in a **specific subnet** to receive Option 60, add it inside a **subnet block**:
```
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option routers 192.168.1.1;
option domain-name-servers 192.168.1.1;
option vendor-class-identifier "IPTV_RG";
}
```
---
### **3. Save and Exit the File**
- Press **`CTRL + X`**, then **`Y`**, and hit **`Enter`** to save the file.
---
### **4. Validate the Configuration**
Before restarting the DHCP server, verify that the configuration file **has no errors**:
`sudo dhcpd -t`
If everything is correct, you should see:
`Configuration file syntax is OK`
---
### **5. Restart the DHCP Server**
To apply the changes, restart the DHCP service:
`sudo systemctl restart isc-dhcp-server`
---
### **6. Verify That Option 60 Is Being Sent**
You can check whether **option 60** is included in DHCP messages using:
#### **Check Logs**
`sudo journalctl -u isc-dhcp-server --since "5 minutes ago"`
#### **Monitor DHCP Traffic Using `tcpdump`**
To inspect **DHCP packets** and confirm that option 60 is being sent:
`sudo tcpdump -i eth0 -vvv port 67 or port 68`
Replace `eth0` with the **correct network interface** if necessary.
---
### **Conclusion**
With **DHCP Option 60**, you can **classify clients** based on vendor or device type and **assign specialized configurations** or **boot files** (such as for **PXE booting**). By following these steps, you can successfully configure **Option 60** on an **ISC DHCP server in Ubuntu**. 🚀
[[DHCP Server ISC, Installing Configuring]]
[[DHCP Server ISC, Reserve IP Address]]
[[DHCP Server ISC, Stop and Start]]