C
Christopher Hoover
Is it possible to use the setsubnetoptionvalue command of
DHCPCMD to assign an array of values to an option which
allows it in the DHCP database, such as DNS Servers (option
6)? It's simple enough if you only want to set a single value:
dhcpcmd 127.0.0.1 setsubnetoptionvalue 172.17.1.0 6
ipaddress 172.18.1.250
But what if you also had DNS running on 172.18.1.249 and
..248, and wanted to apply that to several scopes? I've
tried using commas, semicolons, hexadecimal, and STRING
instead of IPADDRESS as the option type, to no avail. I
can always go and make these settings manually to all my
scopes, inasmuch as the GUI DHCP admin tool allows you to
set an array of values for this option, but it'd be nice to
be able to to it in batch.
Any ideas?
Christopher Hoover
Communications Network Analyst
University of South Dakota
DHCPCMD to assign an array of values to an option which
allows it in the DHCP database, such as DNS Servers (option
6)? It's simple enough if you only want to set a single value:
dhcpcmd 127.0.0.1 setsubnetoptionvalue 172.17.1.0 6
ipaddress 172.18.1.250
But what if you also had DNS running on 172.18.1.249 and
..248, and wanted to apply that to several scopes? I've
tried using commas, semicolons, hexadecimal, and STRING
instead of IPADDRESS as the option type, to no avail. I
can always go and make these settings manually to all my
scopes, inasmuch as the GUI DHCP admin tool allows you to
set an array of values for this option, but it'd be nice to
be able to to it in batch.
Any ideas?
Christopher Hoover
Communications Network Analyst
University of South Dakota