03-16-2017 06:27 PM - edited 03-08-2019 09:47 AM
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#
03-16-2017 07:47 PM
Just go straight to "option 43 hex <HEX>".
03-17-2017 05:05 PM
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
03-17-2017 05:05 PM
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.
03-17-2017 06:22 PM
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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: