Solved

Add DHCP Options to WSBS 2008

Posted on 2011-02-17
4
1,377 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
ID: 34919490
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
ID: 34919501
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
ID: 35346521
Thanks! I forgot to come back and give you some points.
0
 

Expert Comment

by:marco-alcala
ID: 37933132
Set Predefined Options worked for me,  Thank you.

Marco Alcala
www.alcalaconsulting.com
0

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by Glen Knight (demazter) as part of a series of how-to articles. Introduction One of the biggest consumers of disk space with Small Business Server 2008(SBS) is Windows Server Update Services, more affectionately known as WSUS. For t…
Introduction At 19:33 (UST) on Tuesday 21st September the long awaited email arrived with the subject title of “ANNOUNCING THE AVAILABILITY OF WINDOWS SBS 7 PREVIEW”.  It was time to drop whatever I was doing and dedicate as much bandwidth as possi…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

919 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

23 Experts available now in Live!

Get 1:1 Help Now