Win2k server construction experience: 2

Source: Internet
Author: User
IP address corresponds to multiple domain names

I. Analysis

Some ISPs (Internet Service Providers) usually share one IP address with multiple domain names because they have limited IP Address resources when providing virtual host services to customers, each domain name can access their corresponding files independently without interfering with each other. That is, an IP address corresponds to multiple independent domain names. This can be easily implemented on the Win2k server. For example, the two domain names "www.popunet.com" and "www.yesnew.com" on the local machine all point to the same IP address "192.168.0.1 ". Enter "www.popunet.com" to call the file in "d \ Website", and enter "www.yesnew.com" to call the file in "C \ myweb. This can be done by setting different "host headers" in the IIS manager.

Ii. Settings

1. Make sure that the two domain names have been set in "DNS" and both point to the same IP address.

2. Open "Internet Service Manager ". Select "Start Menu>Program→ Administrative Tools → Internet Service Manager → Internet Information Service → uc1 (server name )".

3. Set the first domain name "www.popunet.com"

① Basic settings. Select "Default web site → right-click → properties → web site → IP Address: 192.168.0.1 ".

② Specify the home directory. Select "main directory> local path: d \ Website ".

4. Set the second domain name "www.yesnew.com"

① Basic settings. Select "Default web site> right-click → new → site → Description: XX (any content) → IP Address: 192.168.0.1 → Host header of the site: www.yesnew.com ".

② If the site has been built. Select "XX (description) → right-click → properties → web site → IP Address: 192.168.0.1 → advanced → 192.168.0.1 → edit → Host header name: www.yesnew.com ".

③ Specify the home directory. Select "main directory> local path: C \ myweb ".

5. If there are more domain names pointing to different "home directories", set the method as above and enter the corresponding "Host header name.

6. after the establishment is successful, if you enter a domain name specified in "Host header name" such as "www.yesnew.com", the corresponding webpage in "XX (description)" will be called up, if you enter an IP address or "www.popunet.com" or other domain names that do not have a "Host Header" but direct to this IP address, the corresponding webpage in "Default web site" is called up.

3. the operation for "multiple IP addresses in IIS correspond to multiple domain names" is similar to the above method, but you do not need to set the "host header name ", direct the IP Address Bar of each "web site" to a different IP address.

Part 2: DHCP settings

1. About DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) automatically allocates IP addresses, subnet masks, and IP addresses of default gateways, DNS servers, and WINS servers to the TCP/IP configurations of clients in the network. The Network Administrator does not need to go to the site to configure the TCP/IP parameters on each computer. All settings can be modified directly on the server, you can also make the most efficient use of limited IP addresses. For example, when the network administrator configures the Win2k server as a DHCP server during network installation, when the client starts, the DHCP server automatically releases the relevant TCP/IP configuration parameters that contain IP addresses to it so that it can connect to the network normally, and the client only needs to install the TCP/IP protocol, no further settings are required. During use, if the resources on the Win2k server change, you only need to modify its DHCP configuration to automatically assign a new value to the client.

Because the TCP/IP configuration parameters that contain IP addresses are "temporarily issued" by the DHCP server to the client, these parameters are automatically released after the client is restarted or shut down, DHCP servers can also allocate them to other computers. Based on this principle, for example, a certain Telecommunications Bureau has only 10 thousand IP addresses that can be allocated to dial-up users, and there are 50 thousand dial-up users throughout the city, then, the carrier only needs to configure its host as a DHCP server. As long as there are no more than 10 thousand dial-up clients on the internet throughout the city, there will be no shortage of IP Address resources.

Ii. DHCP Installation

If the DHCP server has not been installed, select "Control Panel> Add/delete Programs> Add/delete Windows Components> network services> select: Dynamic Host Configuration Protocol DHCP.

Iii. DHCP settings

1. Call DHCP. Select Start> program> Administrative Tools> DHCP ".

2. Add a DHCP server. Select "DHCP → right-click → Add Server → browse → uc1 (name of the server to be added )".

3. Configure the DHCP server. Select "server name → right-click → create scope", where:

① Set the name. Select "Domain Name> name: mydhcp (any )".

② Set the IP address range to be allocated. Select "ip address range → start IP Address: 192.168.0.10 → end IP Address: 192.168.0.244 → subnet mask: 255.255.255.0" (3 ).

③ Set the IP address range to be retained. In "add exclusion", you can enter an IP address or IP address range that you do not want to assign to the server.

④ The "term of lease" can be set to one year (that is, 365 days ).

⑤ Set the default gateway, DNS, and wins. In each step, "add" the Server IP address (for example, "192.168.0.1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.