WINDOWS SERVER 2008 SERVER CORE
Giới thiệu
Server Core là một chức năng mới trên Microsoft Windows Server 2008/2008-R2. Server Core cho phép cài đặt một số server role cần thiết cho hệ thống, bạn có thể quản lý các dịch vụ trên Server Core bằng giao diện command line, hoặc quản lý Server Core từ xa bằng công cụ MMC và công cụ Remote Server Administration Tools được tích hợp trong Windows 7 và Windows Server 2008
Lợi ích của Server Core:
- Giảm thiểu công việc quản lý và bảo trì do có ít ứng dụng và dịch vụ được cài đặt trên Server Core
- Giảm được hiểm họa tấn công do Server Core sử dụng giao diện tối thiểu, cài đặt ít dịch vụ và ứng dụng
- Yêu cầu về phần cứng không cao, Server Core chỉ yêu cầu khoảng 1GB không gian đĩa trống để cài đặt và xấp xỉ 2GB cho các dịch dụ sau khi cài đặt.
Server Core hỗ trợ các Roles:
- Active Directory Domain Services
- Active Directory Lightweight Directory Services (AD LDS)
- Dynamic Host Configuration Protocol (DHCP) Server
- DNS Server
- File Services
- Print Server
- Streaming Media Services
- Web Server (IIS)
Server Core hỗ trợ các Features:
- Microsoft Failover Cluster
- Network Load Balancing
- Subsystem for UNIX-based Applications
- Windows Backup
- Multipath I/O
- Removable Storage Management
- Windows Bitlocker Drive Encryption
- Simple Network Management Protocol (SNMP)
- Windows Internet Naming Service (WINS)
- Telnet client
- Quality of Service (QoS)
WINDOWS 2008 SERVER CORE
CHUẨN BỊ:
Lẻ: Ghost 2K8Core.ABC
Chẵn: Ghost 2K8.ABC
I. CÀI ĐẶT
Lưu ý sau khi cài đặt Windows yêu cầu Change Password (Password phải phức tạp --> OK chỉnh Policy sau)
II. CẤU HÌNH SERVER CORE
Xem cấu hình Card mạng
Netsh interface ipv4 show interface
--> Sẽ thấy mỗi Card mạng có 1 số thứ tự ở cột Idx (Index) --> ghi nhận số này để đặt IP
--> Cho IPCONFIG /ALL sẽ thấy nhận IP default 169.254.x.x
Disable/Enable Card mạng:
netsh interface set interface "Local Area Connection" Disabled | Enable
Đặt IP cho Card mạng
Netsh interface ipv4 set address name="idx" source=static address=192.168.P.x mask=255.255.255.0 gateway=192.168.P.200
--> IPCONFIG /all kiểm tra
--> Ping thử ra máy 200 --> Reply --> Ping máy bênh cạnh --> Timed out (do đang bật Firewall)
Đặt giá trị Prefred DNS Server
Netsh interface ipv4 add dnsserver name="idx" address=192.168.P.x index=1
Lưu ý là lệnh này sẽ đặt giá trị Preferd DNS, giá trị đã đặt sẽ bị đẩy dần xuống Alternate DNS Server
Muốn xóa các giá trị DNS thì phải dùng lệnh
netsh interface ipv4 delete dnsserver name="Local Area Connection" address=ALL (hoặc IP)
Tắt/Bật Firewall
netsh firewall set OpMode Mode=Disable/Enable
Doi ten may tinh
- hostname
- netdom renamecomputer %ComputerName% /NewName:PCxx
- shutdown -r -t 0
III. NÂNG CẤP DOMAIN CONTROLLER
- Máy thật Copy File Unattend.txt về ổ cứng (Sửa thông tin cho phù hợp)
- Truy cập sang ổ C:\ của Server Core (\\mayDC\C$) --> Paste File Unattend.txt vào
(Lưu ý trong File này phải đặt Password Safe Mode phức tạp bằng lệnh SafeModeAdminPassword=NhatNghe105, nếu không sẽ báo lỗi Password Policy trong lúc Check các điều kiện nâng cấp)
- DCPROMO /UNATTEND:c:\unattend.txt
- Cho tạo OU và vài User bằng lệnh DSADD chơi (Có thể cho xem lại bằng lệnh DSQUERY USER
VD: Tạo OU:
Dsadd ou “ou=nhansu,dc=domx,dc=local”
Dsadd ou “ou=hanhchanh,ou=nhansu,dc=domx,dc=local”
Tạo Groups:
Dsadd group “cn=ns,ou=nhansu,dc=domx,dc=local”
Tạo Users:
Dsadd user “cn=ns1,ou=nhansu,dc=domx,dc=local” –pwd P@ssword –disabled no
Đưa user vào group
Dsmod group “CN=ns,OU=nhansu,DC=domx,DC=local” –addmbr “CN=ns1,OU=nhansu,DC=domx,DC=local”
IV: JOIN DOMAIN
- Máy Ghost 2K8.ABC Join Domain.
- Cài đặt Feature Group Policy Management và Remote Server Administration Tool (DHCP,DNS,ADDS Tools) để chỉnh Policy và cấu hình các dịch vụ trên Server từ xa. (Nên cài trước rồi Join Domain sau => đỡ tốn time)
V. FILE SERVER
- MD c:\Datax
- NET SHARE DATA=C:\Datax /Grant:Everyone,Full
- Sang máy Client truy cập trực tiếp vào ổ C: (\\mayDC\C$) và phân quyền NTFS.
VI. CÀI ĐẶT DHCP:
- Cài đặt DHCP Server
start /w ocsetup DHCPServerCore (Lưu ý viết đúng chữ hoa chữ thường)
- Đánh lệnh NET START thì thấy DHCP Server chưa Start --> Lệnh này chỉ mới cài đặt thôi
- Đánh lệnh NET START DHCPSERVER cũng ko được vì Service chưa được Enable
- Enable Service DHCP
sc config dhcpserver start= auto (lưu ý trước chữ auto có khoảng trắng)
- đánh lệnh: net start dhcpserver
- Authorize DHCP
netsh dhcp add server pcx.domx.local 192.168.p.x
- Net Start --> DHCP Server đã Start
- Sang máy Client dùng công cụ DHCP kết nối vào cấu hình rồi cho nhận IP động
Không nối được thì tự xử luôn
netsh dhcp server 192.168.p.x add scope 192.168.p.0 255.255.255.0 MyScope
netsh dhcp server 192.168.p.x scope 192.168.p.0 add iprange 192.168.p.100 192.168.p.199
netsh dhcp server 192.168.p.x scope 192.168.p.0 set optionvalue 003 ipaddress 192.168.p.200
netsh dhcp server 192.168.p.x scope 192.168.p.0 set optionvalue 006 ipaddress 192.168.p.x