Installation and Configuration of TCP/IP Protocol
Objectives
- To install and configure the TCP/IP protocol on a Windows and a Linux machine.
- To understand how to set static and dynamic IP addresses.
- To verify network connectivity using various commands.
Materials Needed
- Two computers (one running Windows and one running Linux)
- Network switch or router
- Ethernet cables
- Access to administrative privileges on both systems
- Basic knowledge of command-line interface (CLI) for Linux
Procedure
Part 1: Configuration on Windows
Open Network Connections:
- Press
Windows + R, typencpa.cpl, and press Enter.
- Press
Select Network Adapter:
- Right-click on the active network adapter (e.g., Ethernet or Wi-Fi) and select
Properties.
- Right-click on the active network adapter (e.g., Ethernet or Wi-Fi) and select
Install TCP/IP Protocol:
- Ensure that
Internet Protocol Version 4 (TCP/IPv4)is listed. If not, clickInstall, selectProtocol, and add it.
- Ensure that
Configure TCP/IP Settings:
- Select
Internet Protocol Version 4 (TCP/IPv4)and clickProperties. - Choose to either obtain an IP address automatically (for DHCP) or use the following settings for a static IP:
- IP Address:
192.168.1.10 - Subnet Mask:
255.255.255.0 - Default Gateway:
192.168.1.1 - Preferred DNS Server:
8.8.8.8
- IP Address:
- Click
OKto save the settings.
- Select
Verify Configuration:
- Open Command Prompt and type
ipconfig. - Check that the IP address, subnet mask, and gateway are correctly configured.
- Open Command Prompt and type
Part 2: Configuration on Linux
Open Terminal:
- Access the terminal on your Linux machine.
Check Current Network Interfaces:
- Run the command:
- Identify the network interface (e.g.,
eth0,wlan0).
- Run the command:
Configure TCP/IP Settings:
For Debian/Ubuntu:
- Edit the network interfaces file:
- Add the following lines for static IP configuration:
- Save and exit (Ctrl + X, then Y, then Enter).
- Edit the network interfaces file:
For Red Hat/CentOS:
- Edit the interface configuration file:
- Modify or add the following lines for static IP:
- Save and exit.
- Edit the interface configuration file:
Restart Networking Service:
- For Debian/Ubuntu:
- For Red Hat/CentOS:
- For Debian/Ubuntu:
Verify Configuration:
- Run the command:
- Check that the IP address, subnet mask, and gateway are correctly configured.
- Run the command:
Part 3: Testing Connectivity
Ping Test:
- From the Windows machine, open Command Prompt and type:
- From the Linux machine, open the terminal and type:
- Verify that you receive replies from the other machine.
- From the Windows machine, open Command Prompt and type:
Check DNS Resolution:
- On both machines, test DNS resolution by pinging a public domain:
- On both machines, test DNS resolution by pinging a public domain:
Expected Outcomes
- Both machines should have their TCP/IP settings configured correctly.
- The Windows machine should be able to ping the Linux machine and vice versa.
- DNS resolution should
Post a Comment
If you have any doubts, please let me know