September 05, 2007

Configure DHCP scope usng CLI..

How to add and configure dhcp scope into dhcp server using cli?

Scenario:
DHCP server ip address: 192.168.201.1
Scope address range: 192.168.202.1 until 192.168.202.250 with subnet 255.255.255.0
Scope name: Level2
Exclusion: 192.168.202.1 - 192.168.202.10
Gateway: 192.168.202.254

Commands:

netsh dhcp server 192.168.201.1 add scope 192.168.202.0 255.255.255.0 Level2 Scope-Level2
netsh dhcp server 192.168.201.1 scope 192.168.202.0 add iprange 192.168.202.1 192.168.202.250
netsh dhcp server 192.168.201.1 scope 192.168.202.0 add excluderange 192.168.202.1 192.168.202.10
netsh dhcp server 192.168.201.1 scope 192.168.202.0 set optionvalue 003 IPADDRESS 192.168.202.254
netsh dhcp server 192.168.201.1 scope 192.168.202.0 set state 1

// you are done.

It is useful if you have more than one dhcp server for redundancy.

2 comments:

Tanpa Nama said...

Hebatla tukang karut kita nih, kene menuntut banyak nih....onegaishimasu sensei

Shh said...

wakarimastak.
ada la sikit2 kalau ndak.. kalau tak diguna nanti basi

Cerita BukuMuka

Cari dalam cerita ini