Lab 3.5.2 IP Addresses and Network Communication
Objectives
* Build a simple peer-to-peer network and verify physical connectivity.
* Assign various IP addresses to hosts and observe the effects on network communication
*
Background / Preparation
In this lab, you will build a simple peer-to-peer network using two PCs and an Ethernet crossover cable. You will assign various compatible and non-compatible IP addresses to the hosts and determine the effects on their ability to communicate. The following resources are required:
NOTE: You may use the small peer-to-peer network that was built in Lab 3.1.5
* Two Windows XP Professional PCs, each with an installed and functional Network Interface Card (NIC)
* An Ethernet cross-over cable to connect the PCs (provided by instructor)
* (Optional lab setup) A hub or switch and two straight-through cables to connect the PCs (provided by instructor)
*
Step 1: Connect the PCs to create a peer-to-peer network
1. Obtain an Ethernet crossover cable provided by the instructor to connect the two PCs. NOTE: (optional lab setup) The PCs may be connected to a hub (or switch) using two straightthrough cables. The following instructions assume you are using a crossover cable.
2. Plug one end of the cable into the Ethernet NIC of PC1. Plug the other end of the cable into the Ethernet NIC of PC2. As you insert the cable, you should hear a click which indicates that the cable connector is properly inserted into the port.
Step 2: Verify physical connectivity
1. After the Ethernet crossover cable is connected to both PCs, take a close look at each Ethernet port. A link light (usually green or amber) indicates that physical connectivity has been established between the two NICs. Try unplugging the cable from one PC then reconnecting it to verify that the light goes off then back on.
2. Go to the Control Panel, double click the Network Connections icon, and confirm that the local area connection is established. The following figure shows an active local area connection. If physical connectivity problems exist, you will see a red X over the Local Area Connection icon with the words .Network cable unplugged.
3. If the Local Area Connection does not indicate that it is connected, troubleshoot by repeating Steps 1 and 2. You may also want to ask your instructor to confirm that you are using an Ethernet crossover cable.
Step 3: Configure IP settings for the two PCs
1. Configure the logical IP addresses for the two PCs so that they are able to communicate using TCP/IP. On PC1, go to the Control Panel, double click the Network Connections icon, and then right click the connected Local Area Connection icon. Choose Properties from the pull-down menu.
2. Using the scroll bar in the Local Area Connection Properties window, scroll down to highlight Internet Protocol (TCP/IP). Click the Properties button.
3. Select the Use the following IP address radio button and enter an IP address of 192.168.1.1 and a subnet mask of 255.255.255.0. With this IP address and subnet mask, the network number the host is on is 192.168.1.0 and 192.168.1.1 is the first host on the 192.168.1.0 network :
4. Click OK, which will close the Internet Protocol (TCP/IP) Properties window. Click the Close button to exit the Local Area Connection Properties window.
5. Repeat steps 3a – 3d for the PC2 using an IP address of 192.168.1.2 and a subnet mask of 255.255.255.0. The network number this PC is on is 192.168.1.0 and 192.168.1.2 is the second host on the 192.168.1.0 network.
Step 4: Verify IP connectivity between the two PCs
NOTE: To test TCP/IP connectivity between the PCs, Windows Firewall must be disabled temporarily on both PCs. Windows Firewall should be re-enabled after the tests have been completed.
1. On each PC, on the Windows XP desktop, click Start. From the Start menu, select Control Panel, and double-click Network Connections.
2. Right-click the Local Area Connection icon and select Properties. Click the Advanced tab. Locate and click the Settings button.
3. Make a note of whether the firewall settings are ENABLED (ON) for the Ethernet port or DISABLED (OFF) for the Ethernet port.
4. If the firewall settings are enabled, click the Off (not recommended) radio button to disable the firewall. The setting will be re-enabled in a later step. Click OK in this dialog box and the following to apply this setting. Repeat Steps 4a-4d on the second PC.
5. Now that the two PCs are physically connected and configured correctly with IP addresses, we need to make sure they communicate with each other. The ping command is a simple way to accomplish this task. The ping command is included with the Windows XP operating system.z
6. On PC1, go to Start, then Run. Type cmd, and then click OK. A Window command prompt window will appear as shown in the following figure.
7. At the > prompt, type ping 192.168.1.2 and press Enter. A successful ping will verify the IP connectivity. It should produce results similar to those shown in the figure that follows.
8. Repeat this procedure for PC2 but ping 192.168.1.1.
9. Close the Windows command prompt window on both PCs.
Step 5: Change IP address for PC2
1. On PC2, go to the Control Panel, double click the Network Connections icon, and then right click the connected Local Area Connection icon. Choose Properties from the pull-down menu.
2. Using the scroll bar in the Local Area Connection Properties window, scroll down to highlight Internet Protocol (TCP/IP). Click the Properties button.
3. Change the logical IP address for PC2 from 192.168.1.2 to 192.168.2.2 and leave the subnet mask set to 255.255.255.0. On what network is PC2 now? PC2 is now on the 192.168.2.0 network
4. Click OK, which will close the Internet Protocol (TCP/IP) Properties window. Click the Close button to exit the Local Area Connection Properties window.
5. Refer back to Step 3c. On what network is PC1? PC1 is still on the 192.168.1.0 network.
6. The two PCs are still on the same physical Ethernet network. Are they on the same logical IP network? Jawaban: NO
Step 6: Test network connectivity between the 2 PCs
1. On PC1, go to Start, then Run. Type cmd, and then click OK. A Window command prompt window will appear.
2. At the > prompt, type ping 192.168.2.2 and press Enter. Was it successful? No Why or why not? Jawaban: Ya.Karena pemasangan dan konfigurasinya benar.
3. What type of networking device would allow the PCs to communicate? A router, if placed between the 2 PCs using proper cabling
Step 7: Change IP address for PC1
1. Using the procedure previously described, change the logical IP address for PC1 from 192.168.1.1 to 192.168.2.99 and leave the subnet mask set to 255.255.255.0. On what network is PC1 now? Jawaban Ya. PC1 is now on the 192.168.2.0 network
2. Click OK, which will close the Internet Protocol (TCP/IP) Properties window. Click the Close button to exit the Local Area Connection Properties window.
3. The two PCs are still on the same physical Ethernet network. Are they on the same logical IP network now? Jawaban: No.
Step 8: Test network connectivity between the 2 PCs
1. On PC2, go to Start, then Run. Type cmd, and then click OK. A Window command prompt window will appear.
2. At the > prompt, type ping 192.168.2.99 and press Enter. Was it successful? Yes Why or why not? Jawaban: Ya .Karena masih dalam satu jaringan
Step 9: (Optional – Use only if the Firewall was originally ENABLED) Re-enable the firewall
1. a. If you disabled the Windows Firewall in Step 4, click Start, select Control Panel, and click Network Connections.
2. b. Right-click the Ethernet network connection icon and select Properties. Click the Advanced tab. Locate and click Settings.
3. If the firewall settings are disabled (and they were enabled before this lab began), click the On radio button to enable the firewall. Click OK in this dialog box and the following one to apply this setting.
0 komentar:
Posting Komentar