Solved

Add DHCP Options to WSBS 2008

Posted on 2011-02-17
4
1,373 Views
Last Modified: 2012-05-11
I need to add several options to my DHCP on a Windows Small Business Server 2008.  

Before you answer, know that when I go to DHCP Console, right click on the server, I do NOT get a menu option "Set Predefined Options". No where can I find a way to add options, only to edit the existing options.

I have added options in the past by exporting the DHCP database, editing it, and importing it. I have, however, forgotten how exactly that was done. I think I remember editing a text file, but I could be wrong.

I don't really care about the method, I just need to add the options today as the VoIP phones are going in as I write this.

Thanks in advance

Al
0
Comment
Question by:albevier
4 Comments
 
LVL 11

Accepted Solution

by:
sysreq2000 earned 500 total points
Comment Utility
You can do it with netsh

add optiondef
Adds a new option type definition to the specified DHCP server.

Syntax
add optiondef OptCode OptName{BYTE | WORD | DWORD | STRING | IPADDRESS} [[IsArray=]{0 | 1}] [vendor=VendorClass] [comment=OptComment] [DefValue]

Parameters
OptCode
Required. Specifies the option type to define. Identifies the option type with a unique option code. For the value of the code, choose a number between 0 and 255.

OptName
Required. Specifies the name of the option type.

{BYTE | WORD | DWORD | STRING| IPADDRESS}
Required. Indicates the data type of the option.

[IsArray=]{0 | 1}
Indicates whether the data type is arrayed or non-arrayed: 0-Unary or non-arrayed (default), 1-Arrayed.

vendor= VendorClass
Specifies the vendor class for the option. If unspecified, the default vendor class, the DHCP standard options class, is used.

comment= OptComment
Specifies a comment to add to the new option type definition. If unspecified, the default value is NULL.

DefValue
Specifies a default value to use for this option type, if one is not specified otherwise.

Remarks
IsArray must be 0 for STRING type options.


Examples
In the first example, this command defines a new option type named ExtensionsPath with code 18, a STRING data type, and joins it to the DHCP standard options class, assigning it a default value of c:\Temp.

In the second and third examples, this command defines a new option type named TestOption with code 231 and an IPADDRESS data type. In the second example, the option is defined to provide only a single IP address. IsArray and DefValue are not necessary because defaults are assumed. In the third example, DefValue, and IsArray are required to create an array containing the IP address values 10.1.1.1, 10.1.1.2, and 10.1.1.3.


http://technet.microsoft.com/en-us/library/cc787375(WS.10).aspx#BKMK_opdef
0
 
LVL 77

Expert Comment

by:Rob Williams
Comment Utility
With 2008 you should get the "Set Predefined Options" option when you right click on IPv4 under the server, rather than on the server. Are you saying it is not present?
0
 

Author Closing Comment

by:albevier
Comment Utility
Thanks! I forgot to come back and give you some points.
0
 

Expert Comment

by:marco-alcala
Comment Utility
Set Predefined Options worked for me,  Thank you.

Marco Alcala
www.alcalaconsulting.com
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The SBS 2011 release date (RTM) is supposed to be around Christmas, 2011.  This article is a compilation of my notes -- things I have learned first hand.  The items are in a rather random order, but I think this list covers most of what is new and d…
Because virtualization becomes more and more common, and, with Microsoft Hyper-V included in Windows Server at no additional costs, and, most server hardware nowadays is more than capable of running a physical Small Business Server (SBS) 2008 or 201…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now