Networking Forums

Networking Forums > Computer Networking > Windows Networking > Configuring DHCP with a NETSH Script

Reply
Thread Tools Display Modes

Configuring DHCP with a NETSH Script

 
 
Gis Bun
Guest
Posts: n/a

 
      04-30-2008, 05:28 PM
Hi.

I'm trying to set up a NETSH script that will server as a backup. I would be
using the command NETSH < add_res.cmd to recreate the settings.

Will the following work? [The domain is called - for this example - DAA.Inc
on server PE1950.]

dhcp
server \\pe1950

add scope 192.168.71.0 255.255.255.0 DAA_Inc
scope 192.168.71.0
add iprange 192.168.71.200 192.168.71.240
set state 1
set optionvalue 003 IPADDRESS 192.168.71.63
set optionvalue 004 IPADDRESS 192.168.71.9 192.168.71.4
set optionvalue 005 IPADDRESS 192.168.71.9 192.168.71.4
set optionvalue 006 IPADDRESS 192.168.71.9 192.168.71.4
set optionvalue 015 WORD DAA_Inc
' below sets lease to 8 days
set lease 691200

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
netsh script to hard-code IP address Spin Windows Networking 2 05-11-2008 12:11 PM
Configuring a 2nd DHCP Scope on one DHCP server Ron Windows Networking 1 10-17-2006 06:36 PM
netsh dhcp / dhcpcmd - Which to use ??? chortler@fetchmail.co.uk Windows Networking 2 05-16-2006 09:55 AM
I am in need of a netsh script that will disable the "Local Area Connection" interface then re-enable that same interface. Spin Windows Networking 3 11-03-2005 12:58 AM
DHCP Script stevens Windows Networking 1 05-31-2005 04:25 PM



1 2 3 4 5 6 7 8 9 10 11