Command line to install DHCP server

xiaoxiao2021-03-06  54

Command line to install DHCP server

Date: 2004-2-27 13:42:52 Source: unified teaching network of: - a windows 2000 server, now a stand-alone environment, install the dhcp service, let us

Configure a DHCP server with the command line.

1. First enter the command line DHCP configuration mode

F: /> netsh

Netsh> DHCP

DHCP> Server 192.168.0.1 //192.168.0.1 is the address of the DHCP server you need to manage

DHCP Server>

2, DHCP Server> show Scope

Role Domain Number of: 0

The command successfully completed.

Look at the situation of the role of the target, there is no scope of SCOPE

3, add a Scope DHCP server> Add Scope 192.168.0.0 255.255.255.0 192.168.0.0 mycomment

Ok, we look at the DHC in MMC, there is no P, see what changes have changed, a big blue

Color exclamation mark scope, what configuration inside

Don't panic, let's continue (at that time, I am flustered for a long time, waste time)

4, DHCP Server> Scope 192.168.0.1

Change the current scope context to the 192.168.0.1 scope.

5, DHCP Server Scope> Add iprange 192.168.0.2 192.168.0.254 DHCP

Add an allocated address range

6, DHCP Server Scope> Add ExcludeRange 192.168.0.1 192.168.0.1

DHCP Server Scope> Add ExcludeRange 192.168.0.241 192.168.0.254

Adding two exclusions 192.168. 0.1, 192.168.0.241-192.168.0.254

7, DHCP Server Scope> Add Reservedip 192.168.0.240 08002b30369b mr.wu mr.wu Both

Add a reserved IP, give Mac 08002B30369B, the name of the retained name is called Mr.Wu

8, DHCP Server Scope> Set OptionValue 003 ipaddress 192.168.0.1

DHCP Server Scope> Set OptionValue 006 ipaddress 192.168.0.1

Add two scope options 003 and 006 in this scope

9, DHCP Server Scope> Set ReservedOptionValue 192.168.0.240 003 ipaddress 192.168.0.1

Set the scope option 003 for retention address 192.168.0.240 003

Now the configuration of Scope 192.168.0.0 is over, you can also configure other items, see your needs, in MMC, refresh Scope 192.168.0.0, everything is normal.

10. The same method is equipped with two Scope 192.168.1.0 and 192.168.2.0

11, configure superscope f: /> netsh

Netsh> DHCP

DHCP> Server 192.168.0.1

DHCP Server> Scopt 192.168.0.0

DHCP Server Scope> Set Superscope 192.168.0-192.168.2 1f: /> Netsh

Netsh> DHCP

DHCP> Server 192.168.0.1

DHCP Server> Scopt 192.168.1.0

DHCP Server Scope> SET Superscope 192.168.0-192.168.2 1

Refresh the DHCP server and see what is much more

12, add CLASS

DHCP Server> Add Class Workgroup1 Workgroup1 ClassforWorkGroup1 0

This adds a user class.

13, add, configure multicast scope

DHCP Server> Add mscope 224.0.0.0 MSCope 40

DHCP Server> Mscope 224.0.0.0

DHCP Server Mscope> Add Iprange 224.0.0.1 224.0.0.10

DHCP Server Mscope> Add ExcludeRange 224.0.0.1 224.0.0.1

14, DUMP problem Netsh dhcp server 192.168.0.1 dump >> E: /101.txt

转载请注明原文地址:https://www.9cbs.com/read-118796.html

New Post(0)