User Manual UMN:CLI
V5808
341
- The total length of an option format cannot exceed 254 bytes.
8.5.5.3 Deleting DHCP Option Format
To delete a specified DHCP option format, use the following command.
no ip dhcp option format NAME
Deletes the given DHCP option format.
8.5.5.4 Displaying DHCP option
To print a specified DHCP option format, use the following command.
show ip dhcp option format
NAME [port PORTS vlan VLANS]
Enable
Global
DHCP
Option
Prints the given option format and actual raw data in
the packet.
8.5.5.5 Different DHCP option Code Configurations
[DHCP Option 66]
When the DHCP server gives the information of TFTP boot server to DHCP client, DHCP
option code is 66. This option is used to identify a TFTP server when the ‘sname’ field in
the DHCP header has been used for DHCP options.
The following is an example of configuring IP address or domain name for TFTP server
using DHCP option 66.
SWITCH(config)# ip dhcp option format OPTION66_1
SWITCH(dhcp-opt[OPTION66_1])# attr 1 length-hidden variable value ip
10.60.250.16
SWITCH(dhcp-opt[OPTION66_1])# exit
SWITCH(config)# ip dhcp pool test
SWITCH(config-dhcp[test])# option code 66 format OPTION66_1
SWITCH(config)# ip dhcp option format OPTION66_2
SWITCH(dhcp-opt[OPTION66_2])# attr 1 length-hidden variable value
tftp.dasan.com
SWITCH(dhcp-opt[OPTION66_2])# exit
SWITCH(config)# ip dhcp pool test
SWITCH(config-dhcp[test])# option code 66 format OPTION66_2
[DHCP Option 82]