Link to home
Start Free TrialLog in
Avatar of fosiul01
fosiul01Flag for United Kingdom of Great Britain and Northern Ireland

asked on

How to change subnet mask in dhcp scope (SBS 2008)

Hi
Currently,
the IP of my server is : 10.0.0.7/8

Now i need to change it 10.0.0.7/26
which means, subnet mask have to change to 255.255.255.192

I have changed the Ip of the server from Network management.

but still other user is getting /8 subnetmask due to dhcp server
so i went to change the options in dhcp scope sections
but i cant change subnet mask

so how will i be able to change the subnet maks from dhcp configuration.. so that all dhcp client get /26 subnet..

thanks for your help .
ASKER CERTIFIED SOLUTION
Avatar of Krzysztof Pytko
Krzysztof Pytko
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fosiul01

ASKER

thats done my job. i was thinking that but was not sure

thanks .
You're welcome
Late entry, I know but you can actually do this. I am only adding this comment now so the next person looking for help finds this.

First, dump to file your existing DHCP scope settings:
(CMD)

netsh -c dhcp server 192.168.2.5 scope 192.168.2.0 dump > c:\test.txt

The file will be something like:

 Changed the current scope context to 192.168.1.0 scope.

 Dhcp Server 192.168.1.24 add scope 192.168.1.0 255.255.255.0 "Vlan-1" "Vlan-1"
 Dhcp Server 192.168.1.24 Scope 192.168.1.0 set state 1

Now you can modify that file and change the subnet form 255.255.255.0 to whatever and run it back through:

C:\>netsh exec c:\dhcp.txt