cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1526
Views
0
Helpful
4
Replies

DHCP Option Instance error -% Option 43, instance 1 is illegal. Zero is the only valid instance.

p oh
Level 1
Level 1

I want to create several DHCP option instances.

if "zero is the only valid instance" why is it that CLI context help showing possible values between 0-255?  Am I missing something here?

cisco ISR4451-X/K9 (2RU)

System image file is "bootflash:/isr4400-universalk9.03.13.04.S.154-3.S4-ext.SPA.bin"

Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip dhcp pool VLAN_AP
Router(dhcp-config)#network 10.8.15.0 255.255.255.0
Router(dhcp-config)# default-router 10.8.15.1
Router(dhcp-config)# domain-name kop.us
Router(dhcp-config)#
Router(dhcp-config)#option 43 ?
ascii Data is an NVT ASCII string
hex Data is a hexadecimal string
instance Specify the option instance
ip Data is one or more IP addresses

Router(dhcp-config)#option 43 ins
Router(dhcp-config)#option 43 instance ?
<0-255> DHCP option instance

Router(dhcp-config)#option 43 instance 1 ?
ascii Data is an NVT ASCII string
hex Data is a hexadecimal string
ip Data is one or more IP addresses

Router(dhcp-config)#option 43 instance 1 hex f104.0a00.2a10
% Option 43, instance 1 is illegal. Zero is the only valid instance.
Router(dhcp-config)#option 43 instance 0 hex f104.0a00.2a10
Router(dhcp-config)# option 43 instance 1 ascii 5A1D;B2;K4;I2.2.2.2;J80
% Option 43, instance 1 is illegal. Zero is the only valid instance.
Router(dhcp-config)#
Router#
000044: *Mar 16 15:16:22.939 HST: %SYS-5-CONFIG_I: Configured from console by console
Router#

4 Replies 4

Leo Laohoo
Hall of Fame
Hall of Fame

Just go straight to "option 43 hex <HEX>".

Sorry if I was unclear.  I want to create several DHCP option instances.

for example,

ip dhcp pool VLAN_AP
network 10.8.15.0 255.255.255.0
default-router 10.8.15.1
domain-name kop.us

option 43 instance 3 ip 10.5.0.1
option 43 instance 4 hex f104.0a00.2a10

option 43 instance 3 ip 10.5.0.1

DHCP Option 43 is always expressed in HEX.  So the syntax like this will most likely fail.  

Not really, it can be hex, ascii, or IP

ascii Data is an NVT ASCII string
hex Data is a hexadecimal string
ip Data is one or more IP addresses

Review Cisco Networking for a $25 gift card