Ruijie Community

Title: When a Device Functions as a DHCP Server, How to Set Option Fields? [Print this page]

Author: admin    Time: 2017-5-3 16:04
Title: When a Device Functions as a DHCP Server, How to Set Option Fields?
When a Device Functions as a DHCP Server, How to Set Option Fields?

Author: admin    Time: 2017-5-3 16:05
The following uses a case to answer this question. A customer's DHCP server is configured on a Ruijie switch. A client needs to acquire the server file startup path from the switch through DHCP Option 66. The server file startup path is 10.0.1.4:/var/tmp/rootfs. The configuration is as follows:
ip dhcp pool ruijie
option 66 ascii 10.0.1.4:/var/tmp/rootfs

Notes:
In the configuration:
Ruijie(dhcp-config)#option 66 ?
  ascii  Data is an NVT ASCII string     //Common string
  hex    Data is a hexadecimal string   //String in hexadecimal notation, that is, characters ranging from 0 to F
  ip     Data is one or more IP addresses  /IP address
In the test: The switch replies with the Option 66 field only when the client requests the Option 66 field.






Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2