Professional Documents
Culture Documents
TABLE OF CONTENTS
1. Introduction 2. Internet Connection Sharing (ICS) for Windows 2000 2.1. Introduction 2.2. Server Setup 2.2.1. Introduction 2.2.2. Setup for Dial-Up connection 2.2.3. Setup for Broadband connections 2.3. Client Setup 2.3.1. Introduction 2.3.2. TCP/IP: Manual Setup 2.3.3. TCP/IP: Automatic Setup 3. Additional Remarks 3.1. Network Printer Setup 3.2. Network Ping 4. Appendix 5. Index
ii
1. Introduction
The purpose of this manual is to facilitate the set-up and troubleshooting of the networking a group of computers in a peer-to-peer connection through a hub. This was created to assist the Scala Program international volunteers in their technical work overseas. According to the authors own experience, it is believed that networking computers by following the steps of sharing an Internet connection (whether or not there actually is an Internet connection is irrelevant) is easier and more straightforward than the steps of file-sharing by itself. We will outline the steps to connect Win2000 Professional systems. This manual was written with information from: http://www.wown.com/j_helmig/w2knetve.htm http://members.cox.net/kgamard/win2ktip.htm#ICS and was commented by the author who has the experience of setting up many peer-topeer networks.
Click the Sharing tab, then check the Enable Internet Connection Sharing box and the Enable on-demand dialing box. If you have more than one network adapter connected to local area networks, you'll have to choose which network adapter to use by clicking the down arrow and selecting the one to use for sharing the dial-up connection. After enabling ICS, click OK. Win2000 warns you that it will change the IP address of the LAN adapter. Click Yes to continue. Now open the dial-up connection's Properties again and go to the Options tab to configure it. The connection will dial automatically when a client computer requests Internet access. If you don't want to have a window pop up on your screen showing that dialing is in progress, un-check the first box (Display progress while connecting). You can also configure the connection to hang up automatically when it has been idle for a certain length of time. Click OK after making the settings. The ICS server is now set up, and ICS is running. You don't even need to reboot.
Click the Sharing tab, then check the Enable Internet Connection Sharing box. If you have more than one network adapter connected to local area networks, you'll have to choose which network adapter to use by clicking the down arrow and selecting the one to use for sharing the Internet connection. NOTE #4: You can also see the benefit of having two different NICs. If you had the exact same two cards, the Wizard will give you no clue as to which is connected to the cable modem and which is connected to your LAN. You have to guess, and if you guess wrong, you get to go through the whole process over again! After enabling ICS, click OK. Win2000 warns you that it will change the IP address of the LAN adapter. Click Yes to continue. The ICS server is now set up, and ICS is running. You don't even need to reboot.
Application Settings Go to the Preferences settings of each application (browser, email, or other applications) and make sure you change them to "Direct connection to the Internet" or to use a LAN. Note that this is the setting to use, even if the ICS server computer is connecting to the Internet using a Dial-Up connection. In most cases, programs use the same options as the general Internet Options in the Control Panel. Open the Internet Options Control Panel and click on the Connections tab. Click on the LAN Settings button near the bottom of the window. Make sure that Automatically detect settings is not checked. Open the Network and Dial-up Connections folder by right clicking My Network Places on the Desktop and selecting Properties, or by opening the Network & Dial-Up Connections in the Control Panel. Then right click the connection for your LAN and select Properties. Click Internet Protocol (TCP/IP) and then click Properties. Now decide whether to have the client receive its TCP/IP settings automatically from the ICS Server or to make the settings manually (see the relevant portion of section 4 to decide which method to use). Follow the steps in the appropriate sections below.
NOTE #2: These settings assume that the IP address of the LAN NIC in the ICS server is 192.168.0.1. A Win2000 ICS server always uses that address. If the IP address of the ICS Server's LAN NIC is not 192.168.0.1, then either change it to 192.168.0.1 or substitute the IP address that it is set to, wherever you see 192.168.0.1 in the steps below. NOTE #3: You can have a mix of automatically and manually assigned client machines on your network. Because ICS' DHCP server assigns addresses sequentially starting at 192.168.0.2 and works up, assign your manual addresses starting at 192.168.0.254 and work down. Set the IP address to a unique address (not the same as any other machine's address) from 192.168.0.2 to 192.168.0.254. Set the Subnet Mask to 255.255.255.0. Set the Preferred DNS server address to 192.168.0.1. Click the Advanced button and set the Default gateway to 192.168.0.1 by clicking Add, entering the address, and clicking Add again. Click OK to exit from each screen.
3. Additional Remarks
Here you will find additional tips and general notes that will hopefully take care of all the questions/troubleshooting you may encounter.
This starts the Add Printer Wizard: select "Next " Select:"Network Printer", the "Next" Enter "Network Path" (if you know it), better: use "Browse" to locate the printer and just pick it from the list. The system shows then the Network-path of the printer in UNC-format: \\<server-name>\<printername> You can also define, if you need to print from MS-DOS based programs, then select "Next" to continue. Define the "Printer-name", as you like to see it yourself, and whether this printer should be your "Default Printer", then "Next" to continue. When asked: "Would you like to print a Test-Page:" select "Yes" as recommended, then "Finish" to continue. You are finished: The printer will appear in the folder "Printers", and the system will prompt you to confirm, that the test-page was printed properly.
10
This means that TCP/IP is working on the machine that you are typing on. 127.0.0.1 is a special address that "loops back" to the machine you are pinging from. You can also type ping localhost and receive a similar response, since localhost and 127.0.0.1 mean the same thing. If things aren't ok, you'll get something like: Pinging 127.0.0.1 with 32 bytes of data Request Request Request Request timed timed timed timed out. out. out. out.
If the above "pinged" ok, next you should ping your cable modem NIC IP. This is the second network that connects to your soon-to-be shared computer, and is a subnet of your cable provider. Type ping [yourISPIP] where [yourISPIP] is the IP address temporarily assigned to you by your ISP. You should get the proper "Reply from..." response. If you don't know your cable modem NIC IP address, use the winipcfg command to find out. An example winipcfg screen is shown below (you'll have to click on the "More Info" button on the opening Control Panel to get this view). Your temporary IP address is next to IP Address in the Ethernet Adapter Information section. If all of that is ok, then things are working, and you might as well ping your sharing Clients! They will have IP addresses of 192.168.0.X. You can also try pinging the second NIC on the Sharing computer from your Client computer(s). Also try Client to Client if you have more than one. Just don't try to ping your ISP or anything other than the computers on the LAN. That won't work until after you set up Sharing. You are now able from any application to use this printer.
3.5. IP Addresses
You can have a mix of automatically and manually assigned client machines on your network. Because ICS' DHCP server assigns addresses sequentially starting 11
at 192.168.0.2 and works up, you should assign your manual addresses starting at 192.168.0.254 and work down. Use 192.168.0.1 as the IP for the NIC in the computer that will be running the sharing software. The first Client computer should be assigned IP 192.168.0.2. If you don't like those numbers or have more computers, then feel free to use any numbers between 192.168.0.1 and 192.168.0.254. Just remember that each machine must have its own unique IP address.
3.7. Summary
3.7.1. TCP/IP Settings for the Server Computer
Enter the following information into your TCP/IP Control panel for the second NIC in your Sharing computer: IP address: set to 192.168.0.1 Subnet Mask: 255.255.255.0 WINS Configuration: Disable WINS resolution Gateway: Make sure there are NO entries. DNS Configuration: Leave this alone DNS settings apply to all NICs in a given computer, so you can't set them differently for the LAN NIC. If your ISP has assigned you a static IP address, this will probably be enabled and other information will be filled in when the first NIC was set up. If your ISP uses DHCP to assign you an IP address, then this will probably be disabled because the DHCP server takes care of giving your computer the DNS and Gateway server information it needs. At any rate, don't change the DNS setting.
12
Bindings: Check Client for Microsoft Networks and File and Printer Sharing for Microsoft Networks if you don't have any other protocol (NetBeui, IPX/SPX) installed and bound to these items. Otherwise uncheck both these items so that you do not have either item bound to TCP/IP. Advanced: make sure the "Set this protocol to be the default protocol." is checked. NetBios: no changes.
13
14
Internet Connection Sharing Adapter o Bindings tab Internet Connection Sharing (protocol) -> Internet Connection Sharing TCP/IP -> Internet Connection Sharing Your preferred Network Protocol -> Internet Connection Sharing Your Network Interface Card (NIC) o Bindings tab Internet Connection Sharing (protocol) -> Your NIC TCP/IP (Home) -> Your NIC Your preferred Network Protocol -> Your NIC TCP/IP (Home) -> your NIC o IP Address tab IP Address: 192.168.0.1 Subnet Mask: 255.255.255.0 o WINS Configuration tab Disable WINS Resolution o Gateway tab No gateway o DNS Configuration Disable DNS o Bindings tab Client for Microsoft Networks, File and Printer sharing for Microsoft Networks TCP/IP (Shared) -> Dial-Up Adapter no settings made TCP/IP -> Internet Connection Sharing o IP Address tab Obtain an IP address automatically o WINS Configuration tab Disable WINS Resolution o Gateway tab No gateway o DNS Configuration Disable DNS o Bindings tab o Client for Microsoft Networks, File and Printer sharing for Microsoft Networks File and printer sharing for Microsoft Networks Browse Master: Enabled LM Announce: No Control Panel > Internet Options > Connections tab Always dial my default connection (checked) Perform system security check before dialing (checked) o Under Local Area Network (LAN) settings Sharing
15
o Enable ICS o Show Icon o Use Dial-up Adapter to Connect to Internet LAN Settings o Automatically detect settings (checked)
16