8. On the Network Connection Binding page, select your server IP address and click the Next button
(Figure 0872).
Figure 0872 : Select Network Connection Binding page
9. On the IPv4 DNS Server Settings page, review the information. Make sure all the information is
correct. Click the Next button to continue (Figure 0873).
Figure 0873 : Select IPv4 DNS Server Settings page
10. Select WINS is required for applications on this network option, and enter your server IP
address in the Preferred WINS Server IP Address box. Click the Next button to continue
(Figure 0874).
Figure 0874 : Specify IPv4 WINS Server Settings page
11. Create DHCP Scopes. Just click the Next button, we will create the DHCP scopes later (Figure
0875).
Figure 0875 : Add or Edit DHCP Scopes page
12. In this exercise you only use IPv4, so select Disable DHCPv6 stateless mode for this server
option and click the Next button to continue (Figure 0876).
Figure 0876 : Configure DHCPv6 Stateless Mode page
13. Select the Use current credentials option and click the Next button (Figure 0877).
This option specifies the credentials of the current user will be used to authorize the DHCP server
in AD DS.
Figure 0877 : Authorize DHCP Server
14. On the Confirm Installation Selections page, click Install button (Figure 0878).
Figure 0878 : Confirm Installation Selections
Please wait. This operation will take a few minutes.
Figure 0879 : Installation Progress
15. On the Installation Result page, review the information.
Click Close to continue (Figure 0880).
Figure 0880 : Installation Result
16. Close the Server Manager.
EXERCISE 20.2
Creating a Range of Address: DHCP Scopes.
In this exercise you will specify range of IP address
17. Launch the DHCP manager. Click Start ► Administrative Tools ► (Figure 0881).
Figure 0881 : Launch the DHCP manager
18. Double-click on the server icon to expand the domain (Figure 0882).
Figure 0882 : DHCP manager
19. Click the IPv4 server icon (Figure 0883).
Figure 0883 : DHCP manager - IPv4
20. On the Action menu, click New Scope to start New Scope wizard (Figure 0884).
Figure 0884 : DHCP manager - New Scope
21. New Scope Wizard window. Click the Next button to continue (Figure 0885).
Figure 0885 : New Scope Wizard
22. Scope Name.
Enter DHCP 1 – 3 as the Name of the scope and DHCP range for 3 host as the Description
(Figure 0886).
Figure 0886 : New Scope Wizard – Scope Name
23. Click the Next button to continue (Figure 0886).
24. Specifying IP Address Range.
Now you will configure DHCP service and limit it to 3 hosts.
Define the scope address range as following (Figure 0887):
Start IP address : 192.168.2. Server Number
End IP address : 192.168.2. Server Number + 2
Figure 0887 : New Scope Wizard – IP Address Range
25. Configure the Length and Subnet mask as the following (Figure 0887):
Length : 24
Subnet mask : 255.255.255.0
You can specify the subnet mask by length or as an IP address.
A subnet mask defines how many bits of an IP address to use for the network/subnet IDs and how
many bits to use for the host ID.
In this exercise we use class C default subnet (255.255.255.0), which is equal to 24 bit length.
You can learn more about this under “IP address Subnetting” topic.
26. Click the Next button to continue (Figure 0887).
27. IP Address Exclusions.
IP Address Exclusions are addresses or a range of addresses that are not distributed by the DHCP
server.
In your DHCP IP address range, you set a range for 3 hosts. If you notice, the first IP address is
your server IP address.
If you not exclude your server IP address, the DHCP server will distribute all the IP address in the
range including your server IP address. Later you will faces with the IP conflict problem. To
prevent this, you have to exclude your server IP address.
To exclude a single address, type an address in “Start IP address” only.
So, enter your server IP address at the Start IP address: box to exclude it IP from distributed
by the DHCP server and click the Add button (Figure 0888).
Figure 0888 : New Scope Wizard – IP Address Exclusions
28. Click the Next button to continue (Figure 0889).
Figure 0889 : New Scope Wizard – IP Address Exclusions
29. Lease Duration.
The lease duration specifies how long a client can use an IP address from scope.
Lease durations should typically be equal to the average time the computer is connected to the
same physical network.
Let set the lease duration to 8 hours this equal to 8 hour working time per day. Click the Next
button to continue (Figure 0890).
Figure 0890 : New Scope Wizard – Lease Durations
30. DHCP Options.
DHCP can provide default values for a whole host of TCP/IP parameters, including these basic
items:-
o Default Gateway
o Domain Name
o DNS Server
o WINS Server
Select Yes, I want to configure these options now and click the Next button to start configure
the DHCP options (Figure 0891).
Figure 0891 : New Scope Wizard – Configure DHCP Options
31. Router (Default Gateway)
In the previous exercise I use another server as the router (192.168.2.25). You can use the same
router or you can use your server router or another router to be distributed by this scope.
I will use the same router for this scope in this exercise (192.168.2.25).
To add an IP address for a router used by client, enter the address in the IP address: box and
click the Add button (Figure 0892).
Figure 0892 : New Scope Wizard – Router (Default Gateway)
32. Click the Next button to continue (Figure 0893).
Figure 0893 : New Scope Wizard – Add Router (Default Gateway)
33. Domain Name and DNS Servers.
33.1. Set the Parent domain: same as your domain name. In this exercise, my domain name is
myserver.com (Figure 0894).
33.2. Set the Server name: same as your DNS server name (myserver.com) and click the
Resolve button to resolve the DNS server IP address (Figure 0894).
Figure 0894 : New Scope Wizard – Parent domain and Server name
33.3. Click the Add button to add the DNS server IP address to the DNS server IP address list
(Figure 0895).
Figure 0895 : New Scope Wizard – DNS server IP address
33.4. Click the Next button to continue (Figure 0896).
Figure 0896 : New Scope Wizard – Domain Name and DNS Servers
34. WINS Servers.
Computers running Windows can use WINS servers to convert NetBIOS computer names to IP
address.
Entering WINS server IP address here enables Windows clients to query WINS before they use
broadcasts to register and resolve NetBIOS names.
34.1. Set the Server name: same as your WINS server name (myserver.com) and click the
Resolve button to resolve the WINS server IP address (Figure 0897).
Figure 0897 : New Scope Wizard – WINS server name
34.2. Click the Add button to add the WINS server IP address to the WINS server IP address list
(Figure 0898).
Figure 0898 : New Scope Wizard – WINS server IP address
34.3. Click the Next button to continue (Figure 0899).
Figure 0899 : New Scope Wizard – WINS Servers
35. Activate Scope.
This is the last configuration for the new scope. Clients can obtain address leases only if a scope
is activated.
Select Yes, I want to activate this scope now and click the Next button (Figure 0900).
Figure 0900 : New Scope Wizard – Activate Scope
36. Completing the New Scope Wizard.
Click the Finish button to close the New Scope Wizard (Figure 0901).
Figure 0901 : New Scope Wizard – Finish
Congratulation! You have successfully completed creating the New DHCP Scope (Figure
0902).
Figure 0902 : DHCP Manager
37. Close the DHCP manager.
38. Log off the server.
EXERCISE 20.3
Testing The DHCP Server.
In this exercise you will test your DHCP server functionality.
39. Log on to the client computer using a local administrator account. Enter the User name: as
Administrator and select Log on to : CLIENTXP61 (this computer) and click the OK button
to log on (Figure 0903).
Figure 0903 : Windows XP Log On Screen
40. Launch Network Connections application program. Click Start ► All Programs
►Accessories ►Communications ►Network Connections (Figure 0904).
Figure 0904 : Launch Network Connections
41. Right click Local Area Connection and select Properties (Figure 0905).
Figure 0905 : Local Area Connection
42. Double click Internet Protocol (TCP/IP) (Figure 0906).
Figure 0906 : Local Area Connection Properties
43. Set your client to get IP address automatically from DHCP server by selecting the Obtain an IP
address automatically option and Obtain DNS server address automatically option (Figure
0907).
Figure 0907 : Internet Protocol (TCP/IP) Properties
44. Click the OK button to save the setting (Figure 0907).
45. Click the OK button (Figure 0908) and close all the remaining windows.
Figure 0908 : Local Area Connection Properties
46. Launch the Run application. Click Start ► Run… (Figure 0909).
Figure 0909 : Launch the Run Application
47. Key-in cmd in the Open : box and click the OK button to launch the Command Prompt
application (Figure 0910).
Figure 0910 : Run Window
48. List the client computer IP configuration by typing the following command:
ipconfig and press Enter (Figure 0911).
Figure 0911 : Command Prompt – ipconfig
This will display the IP address, subnet mask and default gateway for your ethernet
adapter (Figure 0912).
Figure 0912 : Command Prompt – IP Configuration
Now your client computer is set to obtain an IP address automatically from DHCP
server. So you can see the IP address has changed accordingly to the IP range you
have set in the DHCP server setting earlier.
49. Log off the client computer.
Summary
In this exercises, you are setting up a DHCP server. The DHCP server provides you with an
easy way of assigning IP addresses to workstations on your network. You were shown how to
install and configure a DHCP Server and how to avoid overlapping scopes.
Exercise 21
INSTALLING AND
CONFIGURING WEB
SERVER
Exercise 21 : Installing And Configuring WEB Server
In this exercises, you will install and configure your server to run as Web Server. This exercise
also describes the basics of managing a Web site's infrastructure, from setting a site home
directory and default Web Page, to redirecting requests and dynamically altering Web pages.
Web Server Overview
Web servers are computer that have specific software that allow them to accept requests from
client computers and return responses to those requests. Web servers let you share information
over the internet or through intranet and extranets.
The Web server role in Windows Server 2008 lets you share information with users on the
internet, an intranet, or an extranet. Windows Server 2008 delivers IIS 7.0, which is a unified
Web platform that integrates IIS, ASP.NET and Windows Communication Foundation. The key
features and improvements in IIS 7.0 include the following:
A unified Web platform that delivers a single, consistent Web solution for both
administrators and developers.
Enhanced security and the ability to customize the server to reduce the attack surface.
Simplified diagnostic and troubleshooting features to aide in resolution of problems.
Improved configuration and support for server forms.
Delegated administration for hosting and enterprise workloads.
Installing IIS and Web Server
When you install IIS initially, the service is installed in a highly secure mode. Because IIS only
serves static content by default, you must enable features such as ASP, ASP.NET, Common
Gateway Interface (CGI), Internet Server Application Programming Interface (ISAPI), and Web
Distributed Authoring and Versioning (WebDAV), if you need them.
During installation, IIS installs optional components such as common files and IIS Manager. You
can choose not to install the optional components. However, if you do not install specific
components, you can decrease IIS functionality or disable IIS services. If you are unfamiliar with
the optional components and how they affect IIS, install IIS with the default settings.
EXERCISE 21.1
Installing Internet Information Services (IIS).
1. Log on to the server as Administrator (Figure 0913).
Figure 0913 : Administrator Login
2. Launch the Server Manager. Click Start ► Administrative Tools ► Server Manager (Figure 0914).
Figure 0914 : Launch Server Manager.
3. In Server Manager, select Roles (Figure 0915).
Figure 0915 : Server Manager - Roles
4. Select Add Roles (Figure 0916).
Figure 0916 : Add Roles
5. On the Before You Begin page, review the requirements, and click the Next (Figure 0917).
Figure 0917 : Add Roles – Before You Begin
6. On the Select Server Roles page, select the check box next to the Web Server (IIS) (Figure
0918).
Figure 0918 : Server Roles – Web Server (IIS)
7. If you are asked to add features for Web Server (IIS), just click the Add Required Features
button to add the features. You cannot install Web Server (IIS) unless the required features are
also installed (Figure 0919).
Figure 0919 : Add Roles – Add Required Features
8. Click the Next button to continue (Figure 0920).
Figure 0920 : Server Roles – Web Server (IIS)
9. On the Web Server (IIS) page, review the information, and click the Next button (Figure 0921).
Figure 0921 : Web Server (IIS) page
10. Role Services.
Just use the default setting and click the Next button to continue (Figure 0922).
Figure 0922 : Add Roles Wizard – Select Role Services
11. On the Confirm Installation Selections page, click Install button (Figure 0923).
Figure 0923 : Confirm Installation Selections
Please wait. This operation will take a few minutes.
Figure 0924 : Installation Progress
12. On the Installation Result page, review the information.
Click Close to continue (Figure 0925).
Figure 0925 : Installation Result
13. Close the Server Manager.
Configuring Web Server.
IIS creates a default Web site configuration on your hard disk at the time of installation. You can
use the C:\inetpub\wwwroot directory to publish your Web content, or create any directory or
virtual directory you choose.
Creating a Web site using IIS Manager does not create content, but merely creates a directory
structure and configuration files from which to publish the content.
EXERCISE 21.2
Use the default Web site.
14. Log on to the server as Administrator (Figure 0926).
Figure 0926 : Administrator Login
15. Launch the Internet Information Services (IIS) Manager. Click Start ► Administrative Tools
► Internet Information Services (IIS) Manager (Figure 0927).
Figure 0927 : Launch Internet Information Services (IIS) Manager
16. In the Internet Information Services (IIS) Manager, expand your server (Figure 0928).
Figure 0928 : Internet Information Services (IIS) Manager
17. Expand the Sites folder (Figure 0929).
Figure 0929 : Internet Information Services (IIS) Manager - Sites
You can see, IIS already create a default Web site on your hard disk. The default folder for the
default Web site is set to the C:\inetpub\wwwroot folder.
18. View the default web page.
Click Default Web Site and click the Browse *:80 (http) link (Figure 0930).
Figure 0930 : IIS Manager - Default Web Site
19. The windows will launch the Internet Explorer. You can see the address on the address bar is
http://localhost/ and a picture with the word IIS7 at the middle of the page. This means your
Web Server and your Default Web Site is running successfully (Figure 0931).
Figure 0931 : Web Server – Default Web page
20. Close the Internet Explorer window.
21. View contents of the default web folder.
On the IIS Manager, click the Explore link (Figure 0932).
Figure 0932 : IIS Manager - Default Web Folder
22. The Windows Explorer shows the path of the Default Web Folder. There are only two files listed
under C:\inetpub\wwwroot folder (Figure 0933):
iisstart.htm - HTML document
welcome.png - image file
Figure 0933 : Windows Explorer - Default Web Folder
23. Close the Windows Explorer.
EXERCISE 21.3
Change the Default Web Folder.
In this exercise you will change the default Web folder from C:\inetpub\wwwroot to
D:\mywebserver.
24. Click Default Web Site and click the Basic Settings… link (Figure 0934).
Figure 0934 : IIS Manager - Default Web Site
25. Click the … button to browse for folder (Figure 0935).
Figure 0935 : IIS Manager – Edit Site
26. Select Local Disk (D:) and click the Make New Folder button (Figure 0936).
Figure 0936 : Edit Site - Browse For Folder
27. Rename the folder name to mywebserver and click the OK button (Figure 0937).
Figure 0937 : Edit Site - Browse For Folder - Make New Folder
28. Make sure the Physical path: is D:\mywebserver. If correct, click the OK button to continue
(Figure 0938).
Figure 0938 : Edit Site - Physical path:
EXERCISE 21.4
Create a Simple Web page.
In this exercise you will create a simple web page to act as your first web page and the file to the
D:\mywebserver folder.
29. Launch Notepad Editor. Click Start ► All Programs ► Accessories ► Notepad (Figure 0939).
Figure 0939 : Launch Notepad Editor
30. Type the following text into the file (Figure 0940):
<html>
<head>
<title>Web Server</title>
</head>
<body>
<p><h1>Welcome To My Web Server</h1></p>
</body>
</html>
Figure 0940 : Notepad Editor
31. Save document as index.htm.
31.1. Click File ►Save As… (Figure 0941).
Figure 0941 : Notepad Editor - Save As
31.2. Browse to the D:\mywebserver folder (Figure 0942).
Figure 0942 : Notepad Editor - Save As
31.3. Select Save as type: All Files (Figure 0943).
Figure 0943 : Notepad Editor - Save as type:
31.4. Key-in index.htm in the File name: box (Figure 0944).
Figure 0944 : Notepad Editor - Save As
31.5. Click the Save button to save (Figure 0944).
31.6. Close the Notepad Editor (Figure 0945) and log off the server.
Figure 0945 : Notepad Editor – index.htm
EXERCISE 21.5
Test the Web Server.
In this exercise you will test the functionality of your Web server using client workstation.
32. Log on to the client computer as Administrator (Figure 0946).
Figure 0946 : Windows XP Log On Screen
33. Launch Internet Explorer. Click Start ►All Programs ►Internet Explorer (Figure 0947).
Figure 0947 : Launch Internet Explorer
34. On the Address box, key-in http://yourdomain.com (e.g. http://myserver.com) and click the Go
button (Figure 0948).
Figure 0948 : Internet Explorer - http://myserver.com
35. Your webpage will appear in the browser (Figure 0948).
EXERCISE 21.6
Create a New Web Site.
In this exercise you will create a new Web site for your web server.
36. Log on to the server as Administrator (Figure 0949).
Figure 0949 : Administrator Login
37. Launch Windows Explorer. Click Start ► Right-click Computer ► select Explore (Figure
0950).
Figure 0950 : Launch Windows Explorer
38. Access D: drive (Figure 0951).
Figure 0951 : Windows Explorer – D Drive
39. Create a new folder named newwebSN (SN represents you’re Station Number).
In previous exercise I use number 21 as my Station Number. So in this exercise my folder named
will be newweb21.
39.1. Right-click D drive ► select New ► Folder (Figure 0952).
Figure 0952 : Windows Explorer – Create New Folder
39.2. Rename the folder as newweb21 (Figure 0953).
Figure 0953 : Rename Folder
40. Launch Notepad Editor. Click Start ► All Programs ► Accessories ► Notepad (Figure 0954).
Figure 0954 : Launch Notepad Editor
41. Type the following text into the file (Figure 0955):
<html>
<head>
<title>New Web Site</title>
</head>
<body>
<p><h1 align="center">Welcome To My New Web Site</h1>
<h3 align="right">Hosted by My <font color="#FF0000">Web
Server</font></h3></p>
</body>
</html>
Figure 0955 : Notepad Editor
42. Save document as default.htm.
42.1. Click File ►Save As… (Figure 0956).
Figure 0956 : Notepad Editor - Save As