WINDOWS SERVER 2008 SERVER CORE (Toàn tập)
WINDOWS SERVER 2008 SERVER CORE
http://msopenlab.com/uploads/thumb_core2t3YW.JPG Server Core là một chức năng mới trên Microsoft Windows Server 2008. 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 Vista 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) Mục đích của bài lab này là hướng dẫn cài đặt và cấu hình một số Server Roles quan trọng trên nền Server Core Bài lab bao gồm các bước: 1. Cài đặt Windows Server 2008 Server Core 2. Đặt tên máy, cấu hình TCP/IP và bật tắt Windows Firewall 3. Nâng cấp Domain Controller 4. Máy Client join domain 5. Máy Client cài Remote Server Administration Tools 6. Cấu hình DNS Server core 7. Cài đặt DHCP Server core 8. Cấu hình DHCP Server core 9. Cấu hình máy client nhận IP từ DHCP Server Core II. Chuẩn bị Bài lab bao gồm 2 máy: - Máy Server Core: chưa cài hệ điều hành - Máy Client: Windows Server 2008 II. Thực hiện 1. Cài đặt Windows Server 2008 Server Core - Khởi động máy Server Core từ đĩa DVD cài đặt Windows Server 2008 http://www.msopenlab.com/lab/sc/image001.jpg - Trong cửa sổ Install Windows, để cấu hình mặc định, chọn Next http://www.msopenlab.com/lab/sc/image002.jpg - Trong cửa sổ Install Windows tiếp theo, nhấn nút Install Now http://www.msopenlab.com/lab/sc/image003.jpg - Cửa sổ Type your product key for activation, bỏ dấu chọn Automatically activate Windows when I’m online, chọn Next http://www.msopenlab.com/lab/sc/image004.jpg - Trong hộp thoại thông báo Windows Install, chọn No http://www.msopenlab.com/lab/sc/image005.jpg - Trong cửa sổ Select the edition of Windows that you purchased, chọn Windows Server 2008 Enterprise (Server Core Installation), đánh dấu chọn I have selected the edition of Windows that I purchased, chọn Next http://www.msopenlab.com/lab/sc/image006.jpg - Trong cửa sổ Please read the license terms, đánh dấu chọn I accept the license terms, chọn Next http://www.msopenlab.com/lab/sc/image007.jpg - Trong cửa sổ Which type of installation do you want? Chọn Custom (advanced) http://www.msopenlab.com/lab/sc/image008.jpg - Trong cửa sổ Where do you want to install Windows? Chọn Next http://www.msopenlab.com/lab/sc/image009.jpg - Bắt đầu quá trình cài đặt Windows Server 2008 Server Core http://www.msopenlab.com/lab/sc/image010.jpg - Sau khoảng 20 phút, kiểm tra đã cài đặt thành công Windows Server 2008 Server Core http://www.msopenlab.com/lab/sc/image011.jpg - Trên máy Server Core, log on Administrator password trắng - Khi nhận được thông báo đổi password, chọn OK http://www.msopenlab.com/lab/sc/image012.jpg - Trong cửa sổ đổi password, đặt password mới cho Administrator là P@ssword http://www.msopenlab.com/lab/sc/image013.jpg - Kiểm tra log on thành công bằng quyền Administrator http://www.msopenlab.com/lab/sc/image014.jpg 2. Đặt tên máy, cấu hình TCP/IP và bật tắt Windows Firewall - Trên máy Server Core, để đổi tên máy gõ lệnh: Netdom renamecomputer %ComputerName% /newname:Server1 http://www.msopenlab.com/lab/sc/image015.jpg - Gõ lệnh Shutdown /r để restart máy http://www.msopenlab.com/lab/sc/image016.jpg - Kiểm tra các Interface trên máy Server Core, gõ lệnh: Netsh interface ipv4 show interfaces Kiểm tra interface hiện thời của máy Server Core có số ID=2 - Thiết lập TCP/IP, gõ lệnh: Netsh interface ipv4 set address name=2 source=static address=192.168.1.1 mask= 255.255.255.0 gateway=192.168.1.200 - Thiết lập Priferred DNS Server, gõ lệnh: Netsh interface ip set dns “2” static 192.168.1.1 primary http://www.msopenlab.com/lab/sc/image017.jpg - Kiểm tra thông số TCP/IP bằng lệnh: ipconfig /all http://www.msopenlab.com/lab/sc/image018.jpg - Tắt Windows Firewall bằng lệnh: Netsh firewall set opmode mode=disable http://www.msopenlab.com/lab/sc/image019.jpg - Máy Client ping địa chỉ IP của máy Server Sore để kiểm tra đường truyền. Kiểm tra máy Client đã liên lạc được máy Server Core http://www.msopenlab.com/lab/sc/image020.jpg 3. Nâng cấp Domain Controller - Trên máy Server Core, gõ lệnh CD\ để chuyển ra thư mục gốc C:\ - Gõ lệnh copy con C:\unattend.txt để tạo 1 file văn bản tên là Unattend.txt có nội dung như sau: [DCINSTALL] ReplicaOrNewDomain=Domain TreeOrChild=Tree CreateOrJoin=Create NewDomainDNSName= msopenlab.com DNSOnNetwork=yes DomainNetbiosName=MVPpartner AutoConfigDNS=yes SiteName= Default_First_Site_Name AllowAnonymousAccess=no DatabasePath=%systemroot%\ntds LogPath=%systemroot%\ntds SYSVOLPath=%systemroot%\sysvol SafeModeAdminPassword=P@ssword CriticalReplicationOnly=No RebootOnSuccess=Yes http://www.msopenlab.com/lab/sc/image021.jpg Chú thích: Sử dụng file Unattend.txt để nâng cấp domain controller tự động, sửa các thông tin tô đậm theo nhu cầu. - Để nâng cấp Domain Controller gõ lệnh: Dcpromo /Unattend:C:\unattend.txt http://www.msopenlab.com/lab/sc/image022.jpg - Sau khi hoàn tất quá trình nâng cấp, máy Server Core sẽ tự động Restart. 4. Máy Client join domain - Tại máy Client, log on Administrator password P@ssword - Cấu hình TCP/IP như trong bảng sau IP Address 192.168.1.2 Subnet Mask 255.255.255.0 Default Gateway 192.168.1.200 Preferred DNS Server 192.168.1.1 - Chuột phải biểu tượng My Computer chọn Properties. Trong cửa sổ System chọn Change Settings http://www.msopenlab.com/lab/sc/image023.jpg - Cửa sổ System Properties, chọn Change http://www.msopenlab.com/lab/sc/image024.jpg - Cửa sổ Computer Name/Domain Changes, chọn Domain, nhập tên domain: msopenlab.com, chọn OK http://www.msopenlab.com/lab/sc/image025.jpg Nhập User Name: Administrator, Password:P@ssword , chọn OK http://www.msopenlab.com/lab/sc/image026.jpg - Sau khi join domain thành công, Trong hộp thoại yêu cầu restart máy chọn OK http://www.msopenlab.com/lab/sc/image027.jpg - Trong cửa sổ System Properties, chọn Close http://www.msopenlab.com/lab/sc/image028.jpg - Trong hộp thoại yêu cầu restart máy chọn Restart Now http://www.msopenlab.com/lab/sc/image029.jpg 5. Máy Client cài Remote Server Administration Tools - Tại máy Client, log on Administrator@msopenlab.com password P@ssword - Mở Server Manager từ Administrative Tools, Chuột phải Feature chọn Add Feature http://www.msopenlab.com/lab/sc/image030.jpg - Trong cửa sổ Select Features, bung Remote Server Administration Tools, bung Role Administration Tools, đánh dấu chọn Active Diretory Domain Controller Tool, chọn Next http://www.msopenlab.com/lab/sc/image031.jpg - Trong cửa sổ Confirm Installation Selections, chọn Install http://www.msopenlab.com/lab/sc/image032.jpg - Trong cửa sổ Installation Results, chọn Close http://www.msopenlab.com/lab/sc/image033.jpg - Mở Active Dicrectory Users and Computers từ Administrative Tools - Tạo user1 password P@ssword - Kiểm tra tại máy client đã tạo được user trên domain msopenlab.com http://www.msopenlab.com/lab/sc/image034.jpg 6. Cấu hình DNS Server core - Tại máy Client, mở Server Manager từ Administrative Tools, chuột phải Feature chọn Add Feature http://www.msopenlab.com/lab/sc/image030.jpg - Trong cửa sổ Select Features, bung Remote Server Administration Tools, bung Role Administration Tools, đánh dấu chọn DNS Server Tools, chọn Next http://www.msopenlab.com/lab/sc/image035.jpg - Trong cửa sổ Confirm Installation Selections, chọn Install http://www.msopenlab.com/lab/sc/image036.jpg - Trong cửa sổ Installation Results, chọn Close http://www.msopenlab.com/lab/sc/image037.jpg - Mở DNS từ Administrative Tools - Trong hộp thoại Connect to Server, chọn The following computer, nhập IP của máy Server core (192.168.1.1), chọn OK http://www.msopenlab.com/lab/sc/image038.jpg - Kiểm tra, tại máy Client đã sử dụng đuợc công cụ DNS Manager để quản lý và cấu hình DNS trên máy Server Core http://www.msopenlab.com/lab/sc/image039.jpg 7. Cài đặt DHCP Server core - Tại máy Server Core, gõ lệnh: oclist , kiểm tra chưa cài đặt DHCPServer Core http://www.msopenlab.com/lab/sc/image040.jpg - Cài đặt DHCPServerCore, gõ lệnh: Start /w ocsetup DHCPServerCore http://www.msopenlab.com/lab/sc/image041.jpg - Để start DHCP Services, gõ lệnh: Sc config dhcpserver start= auto Net start dhcpserver http://www.msopenlab.com/lab/sc/image042.jpg - Để đăng ký DHCP Server vào Active Directory, gõ lệnh: netsh dhcp add server server1.msopenlab.com 192.168.1.1 Chú thích: server1.msopenlab.com: tên máy DHCP server core 192.168.1.1: địa chỉ IP của DHCP Server Core http://www.msopenlab.com/lab/sc/image043.jpg 8. Cấu hình DHCP Server core - Tại máy Client, mở Server Manager từ Administrative Tools, right click Feature chọn Add Feature http://www.msopenlab.com/lab/sc/image044.jpg - Trong cửa sổ Select Features, bung Remote Server Administration Tools, bung Role Administration Tools, đánh dấu chọn DHCP Server Tools, chọn Next http://www.msopenlab.com/lab/sc/image045.jpg - Trong cửa sổ Confirm Installation Selections, chọn Install http://www.msopenlab.com/lab/sc/image046.jpg - Trong cửa sổ Installation Results, chọn Close http://www.msopenlab.com/lab/sc/image047.jpg - Mở DHCP từ Administrative Tools, right click DHCP chọn Add Server… http://www.msopenlab.com/lab/sc/image048.jpg - Trong cửa sổ Add Server nhập địa chỉ của máy Server Core (192.168.1.1) vào ô This server, chọn OK http://www.msopenlab.com/lab/sc/image049.jpg - Trong cửa sổ DHCP, bung Server1, right click IPv4 chọn New Scope… http://www.msopenlab.com/lab/sc/image050.jpg - Trong cửa sổ Welcome to the New Scope Wizard, chọn Next http://www.msopenlab.com/lab/sc/image051.jpg - Trong cửa sổ Scope Name, đặt tên cho Scope là Server core scope, chọn Next http://www.msopenlab.com/lab/sc/image052.jpg - Trong cửa sổ IP Address Range, nhập các thông số: Start IP address: 192.168.1.50 End IP addess: 192.168.1.100 Subnet mask: 255.255.255.0 Chọn Next http://www.msopenlab.com/lab/sc/image053.jpg - Cửa sổ Add Exclusions, chọn Next http://www.msopenlab.com/lab/sc/image054.jpg - Cửa sổ Lease Duration, chọn Next http://www.msopenlab.com/lab/sc/image055.jpg - Cửa sổ Confgure DHCP Options, chọn No, I will configure these options later, chọn Next http://www.msopenlab.com/lab/sc/image056.jpg - Cửa sổ Completing the New Scope Wizard, chọn Finish http://www.msopenlab.com/lab/sc/image057.jpg - Trong cửa sổ DHCP, right click Scope [192.168.1.0] Server core scope chọn Activate http://www.msopenlab.com/lab/sc/image058.jpg - Trong cửa sổ DHCP, bung Scope [192.168.1.0] Server core scope, right click Scope Options, chọn Configure Options… http://www.msopenlab.com/lab/sc/image059.jpg - Trong cửa sổ Scope Options, đánh dấu chọn 003 Router, trong ô IP address nhập 192.168.1.200, chọn Add http://www.msopenlab.com/lab/sc/image060.jpg - Đánh dấu chọn 006 DNS Servers, trong ô IP address nhập 192.168.1.1, chọn Add, chọn OK http://www.msopenlab.com/lab/sc/image061.jpg - Kiểm tra, trong Scope Option đã cấu hình thành công 2 option: 003 Router và 006 DNS Servers http://www.msopenlab.com/lab/sc/image062.jpg 9. Cấu hình máy client nhận IP từ DHCP Server Core - Tại máy Client, mở Network and Sharing Center từ Control Panel http://www.msopenlab.com/lab/sc/image063.jpg - Trong cửa sổ Network and Sharing Center, chọn Manage network connections http://www.msopenlab.com/lab/sc/image064.jpg - Trong cửa sổ Network Connections, right click Local Area Connection chọn Properties http://www.msopenlab.com/lab/sc/image065.jpg - Cửa sổ Local Area Connection Properties, bỏ dấu chọn Internet Protocol Version 6 (TCP/IPv6), chọn Internet Protocol Version 46 (TCP/IPv4), chọn Properties http://www.msopenlab.com/lab/sc/image066.jpg - Cửa sổ Internet Protocol Version 46 (TCP/IPv4) Properties, chọn Obtain an IP address automatically và Obtain DNS server adddress automatically, chọn OK http://www.msopenlab.com/lab/sc/image067.jpg - Mở command line, gỏ lệnh: ipconfig /all. Kiểm tra máy client đã nhận được đầy đủ thông số TCP/IP từ DHCP Server Core http://www.msopenlab.com/lab/sc/image068.jpg Theo: Trần Thủy Hoàng (Msopenlab) :battay: |
Bây giờ là 12:00 AM. Giờ GMT +7 |
Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.