option

Syntax

option{ascii| hex| ip} no option{ascii| hex| ip}

Description

定义了自定义当前DHCP DHCPv4选项v4 server pool. DHCPv4 options enable the DHCPv4 server to provide additional information about the network when DHCPv4 clients request an address.

Thenoform of this command removes custom DHCPv4 options from the pool.

Command context

config-dhcp-server-pool

Parameters

Specifies a DHCPv4 option number. For a list of DHCPv4 option numbers, seehttps://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml. Range: 2 to 254.

ascii

Specifies a value for the selected option as an ASCII string. Range: 1 to 255 ASCII characters.

hex

Specifies a value for the selected option as a hexadecimal string. Range: 1 to 255 hexadecimal characters.

ip

Specifies a list of IP addresses in IPv4 format (x.x.x.x), wherexis a decimal number from 0 to 255. Separate addresses with a space. A maximum of four IP addresses can be defined.

Authority

Administrators or local user group members with execution rights for this command.

Example

Defines DHCPv4 option3for the server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#option 3 ip 192.168.1.1

Deletes DHCPv4 option3for the server poolprimary-poolon VRFprimary.

switch(config)#dhcp-server vrf primaryswitch(config-dhcp-server)#pool primary-poolswitch(config-dhcp-server-pool)#no option 3 ip 192.168.1.1