Вы находитесь на странице: 1из 2

Cu Hnh DHCP bng Command line cho Windows 2003 v Windows 2008 Server Core

Gii thiu vi cc bn cch ci v cu hnh DHCP server bng command line Nu bn dng WINDOWS 2008 Server Core ;xem tn card mng netsh interface ipv4 show interface ;gn IP,Subnet Mask,Gateway cho card mng netsh interface ipv4 set address "local area connection" static 10.0.0.2 255.0.0.0 10.0.0.1 1 ;gn DNS cho card mang netsh interface ipv4 set dns "local area connection" static 10.0.0.2 ;i tn pcname netdom renamecomputer %computername% /renew:pcnn ;khi ng li my shutdown -r -t 0 ;Ci DHCP server cho 2008 server core Start /w ocsetup DHCPServerCore ;khi ng dch v DHCP Sc config dhcpserver start= auto net start dhcpserver Nu l windows 2003 ci DHCP server nh sau: to file dhcp.txt lu trn C:\ c ni dung sau: [netoptionalcomponents] DHCPServer=1 Ri vo Run g lnh: sysocmgr /i:sysoc.inf /u:c:\dhcp.txt

Windows 2003 v 2008 cu hnh chung ;add scope netsh dhcp server add scope 10.0.0.0 255.0.0.0 Scope10 scope ;add iprange netsh dhcp server \\10.0.0.2 scope 10.0.0.0 add iprange 10.0.0.1 10.0.0.100 ;add ip lai tr netsh dhcp server \\10.0.0.2 scope 10.0.0.0 add excluderange 10.0.0.30 10.0.0.35 netsh dhcp server \\10.0.0.2 scope 10.0.0.0 add excluderange 10.0.0.1 10.0.0.1 ;khai gateway v wins cho scope option netsh dhcp server \\10.0.0.2 scope 10.0.0.0 set optionvalue 003 ipaddress 10.0.0.1 netsh dhcp server \\10.0.0.2 scope 10.0.0.0 set optionvalue 044 ipaddress 10.0.0.2; ;khai bo a ch dnh ring cho my c Mac l 000C29EC88B3 netsh dhcp server \\10.0.0.2 scope 10.0.0.0 add reservedip 10.2.2.2 000C29EC88B3 ;khai bo DNS cho server option netsh dhcp server \\10.0.0.2 set optionvalue 006 ipaddress 203.162.4.191 ; set active scope netsh dhcp server \\10.0.0.2 scope 10.0.0.0 set state 1 ;Authorize DHCP nu trong mi trng domain netsh dhcp add server pcnn.nhatnghe.info 10.0.0.2 255.0.0.0

Вам также может понравиться