CN 8-10 Week
CN 8-10 Week
CN 8-10 Week
Every computer on an Ethernet local network has a Media Access Control (MAC) address that is
burned into the Network Interface Card (NIC). Computer MAC addresses are usually displayed as 6
sets of two hexadecimal numbers separated by dashes or colons (example: 15-EF-A3-45-9B-57). The
ipconfig /all command displays the computer MAC address.
Step 2: Locate the MAC (physical) address(es) in the output from the ipconfig /all command
Use the table below to fill in the description of the Ethernet adapter and the Physical (MAC) Address:
Procedure:
1. Select End Devices, and Drag and drop generic PCs onto your design area.
2. Select HUB, and Add a Hub-PT to your prototype network by dragging it onto your design area.
3. Select Switch, and add a 2960 switch to your prototype network by dragging it onto your design
area.
4. Choose a copper straight-through cable type to connect PC to HUB. And PC to switch.
5. Choose a copper cross-over cable type to connect HUB to SWITCH.
****************
8.4 Create a simple Ethernet network using 3 host and a switch, Observe traffic
behaviour on the network and Observer data flow of ARP broadcast and ping.
Most computer programs/applications use logical addresses (IP Addresses) to send/receive messages.
However, the actual communication happens over the Physical Address (MAC Address) that is from
layer 2 of the OSI model.
ARP stands for Address Resolution Protocol which is one of the most important protocols of the
Data link layer in the OSI model. It is responsible to find the hardware address of a host from a
known IP address.
How ARP Works: A device that wants to communicate with others over the internet. What does
ARP do? It broadcast a packet to all the devices of the source network. The devices of the network
peel the header of the data link layer from the Protocol Data Unit (PDU) called frame and transfer
the packet to the network layer (layer 3 of OSI) where the network ID of the packet is validated with
the destination IP’s network ID of the packet and if it’s equal then it responds to the source with the
MAC address of the destination, else the packet reaches the gateway of the network and broadcasts
packet to the devices it is connected with and validates their network ID. The above process
continues till the second last network device in the path reaches the destination where it gets
validated and ARP, in turn, responds with the destination MAC address.
Procedure:
1. Select End Devices from the options in the bottom left-hand corner. Drag and drop 3 generic
PCs onto the design area.
2. Select Switch from the options in the bottom left-hand corner. Add a 2960 switch to your
prototype network by dragging it onto the design area.
3. Select Connections from the bottom left-hand corner. Choose a copper straight-through cable
type. Click the first host (PC0) and assign the cable to the FastEthernet0 connector. Click
the switch (Switch0) and select a connection FastEthernet0/1 for PC0.
4. Repeat step c for PC1 and PC2. Select FastEthernet0/2 on the Switch0 for PC1 and
FastEthernet0/3 for PC2.
5. Select Router from the options in the bottom left-hand corner. Add a 1841 router to the
prototype network by dragging it onto the design area and make the connection to the
switches.
6. Click PCs. Select the Config tab. Select FastEthernet tab on the left and add the following ip
address and subnetmask and default gateway.
PC 0 PC 1 PC 2 Pc 3 PC 4 PC 5
IP
192.168.11.
Addres 192.168.10.5 192.168.10.6 192.168.10.7 192.168.11.5 192.168.11.7
6
s
Subnet 255.255.255. 255.255.255. 255.255.255. 255.255.255. 255.255.255 255.255.255.
mask 0 0 0 0 .0 0
Defult
192.168.11.
Gatewa 192.168.10.0 192.168.10.0 192.168.10.0 192.168.11.0 192.168.11.0
0
y
Router F 0/0 192.168.10.0 F 0/1 192.168.10.0
Observe the flow of data from PC-A to PC-C by creating network traffic.
1. Switch to Simulation Mode in the bottom right-hand corner.
2. Click Edit Filter in the Edit List Filter area. In the event list filter, click All/None to deselect
every filter. Click Edit Filter. Select ARP and ICMP filters under IPv4 tab.
3. Select a Simple PDU by clicking the closed envelope in the upper toolbar. With the envelop
icon, click PC-A to establish the source. Click PC-C to establish the destination.
4. Select Play from the Play Controls in the Simulation Panel. You can speed up the simulation
using the Play Speed Slider. The Play Speed Slider is located below Play inside the
Simulation Panel.
5. Observe the path ICMP and ARP envelope. Click View Previous Event to continue when
the buffer is full.
6. Click Reset Simulation in the Simulation Panel. Notice that the ARP envelop is no longer
present. This has reset the simulation but has not cleared any configuration changes or
dynamic table entries, such as ARP table entries. The ARP request is not necessary to
complete the ping because PC-A already has the MAC address in the ARP table.
7. Click Capture then Forward inside the Simulation Panel. The ICMP envelop will moved
from the source to the switch and stop. The Capture then Forward allows you to move the
simulation one step at a time. Continue selecting the Capture then Forward until you
complete the event.
8. Click the Power Cycle Device on the bottom left, above the device icons.
9. An error message will appear asking you to confirm reset. Click Yes. Now both the ICMP
and ARP envelops are present again. The power cycle will clear any configuration changes
not saved and will clear all dynamic table entries, such as the ARP and MAC table entries.
10. Exit the simulation mode by clicking Realtime a allow the network to converge.
C:\> arp -a
Internet Address Physical Address Type
192.168.1.3 0003.e406.e430 dynamic
11. Examine the ARP tables for PC-B and PC-C. Close the Command Prompt window when
finished.
9.1. Build a simple peer-to-peer network and verify physical connectivity and Assign
various IPv4 addresses to hosts and observe the effects on network
communication.
Objectives:
Background/Scenario
Build a simple peer-to-peer network using two PCs and an Ethernet crossover cable. You will
assign various IPv4 addresses to the hosts and determine the effects on their ability to
communicate.
Required Resources
2 PCs (Windows 10 with at least one wired Ethernet NIC on each PC)
1 Ethernet cross-over cable to connect the PCs.
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.
2. On PC-A, right-click Start and select Network Connections.
3. If there was a problem connecting the network cable, Ethernet0 will read Network cable
unplugged and will have a red X in the icon. If so, troubleshoot by repeating Steps 1 and 2.
1. Configure manual IPv4 addressing on PC-A and PC-B so that they can communicate using
TCP/IP. On PC-A, right click the Ethernet0 and click Properties.
2. In the Ethernet0 Properties window select Internet Protocol Version 4 (TCP/IPv4) and click
the Properties button.
3. Select the Use the following IPv4 address and enter the IPv4 address 192.168.1.1 and subnet
mask 255.255.255.0. Click OK > Close to exit the Ethernet0 Properties window.
4. Repeat steps 3-for PC-B using an IPv4 address 192.168.1.2 and a subnet mask 255.255.255.0.
Step 4: Verify IPv4 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. To access
Windows Firewall, click Settings> Network & Internet > Ethernet > Windows Firewall > Turn
Windows Firewall on or off.
1. Now that the two PCs are physically connected and configured correctly with IPv4 addresses,
we need to make sure they can communicate with each other. The ping command is a simple
way to accomplish this task.
2. Navigate to the Command Prompt on PC-A. In a Command Prompt on PC-A, ping
192.168.1.2. A successful ping will verify network connectivity and PC- A can communicate
with PC-B.
OUTPUT
1. On PC-B, right-click on Start and select Network Connections, and right- click the Ethernet0
icon. Choose Properties from the pull-down menu.
2. Select Internet Protocol Version 4 (TCP/IPv4). Click Properties.
3. Change the logical IPv4 address for PC-B from 192.168.1.2 to 192.168.2.2 and leave the subnet
mask set to 255.255.255.0.
4. Click OK which will close the Internet Protocol Version 4 (TCP/IPv4) window. Click the Close
button to exit the Ethernet0 Properties window.
Was it successful?
Ans: The ping was unsuccessful because PC-A and PC-B are no longer in the same subnet. Without
a router, these PCs cannot communicate with each other.
What type of networking device would allow the PCs to communicate even though they are on
different networks?
1. On PC-A, right-click Start and select Network Connections, and right-click the Ethernet0 icon.
Choose Properties from the pull-down menu.
2. Select Internet Protocol Version 4 (TCP/IP). Click Properties.
3. Change the logical IPv4 address for PC-A from 192.168.1.1 to 192.168.2.99 and leave the
subnet mask set to 255.255.255.0. Click OK, to close the Internet Protocol Version 4 (TCP/IP)
window. Click Close to exit the Ethernet0 Properties window.
The two PCs are still on the same physical Ethernet network. Are they on the same logical IPv4
network now?
Was it successful? Yes, the ping was successful because PC-A and PC-B are in the same subnet
9.3. Subnetting of a network using simulator
Define subnetting?
A subnet, or subnetwork, is a part of a larger network. Subnets are a logical part of an IP
network into multiple, smaller network components. The Internet Protocol (IP) is the
method for transmitting data from one computer to another over the internet network.
Each computer, or host, on the internet, has at least one IP address as a unique identifier.
Uses of Subnetting
1. Subnetting helps in organizing the network in an efficient way which helps in expanding
the technology for large firms and companies.
2. Subnetting is used for specific staffing structures to reduce traffic and maintain order
and efficiency.
3. Subnetting divides domains of the broadcast so that traffic is routed efficiently, which
helps in improving network performance.
4. Subnetting is used in increasing network security.
Definition of Subnet Mask: Subnet Mask is a 32 bit value that defines which portion of an
IP address is network and which portion is host.
Example:
Subnetting Class C - 192.168.10.0/25
Number of subnets (for /25 mask) = 2 N
N = 1, so 2 1 = 2
So number of subnets (for /25 mask) = 2
For /25 mask, we will get 2 subnets, each with 126 hosts.
1st Subnet = 192.168.10.0/25
2nd Subnet = 192.168.10.128/25
For 1st Subnet, 1st valid IP is 192.168.10.1/25, last valid IP is 192.168.10.126/25,
And broadcast address is 192.168.10.127/25
For 2nd Subnet, 1st valid IP is 192.168.10.129/25, last valid IP is 192.168.10.254/25,
and broadcast address is 192.168.10.255/25
Practices exercise:
OUTPUT:
ping 192.168.1.130
ping 192.168.1.133
A web server is software and hardware that uses HTTP (Hypertext Transfer Protocol) and other
protocols to respond to client requests made over the World Wide Web. The main job of a web
server is to display website content through storing, processing and delivering webpages to users.
Web server software is accessed through the domain names of websites and ensures the delivery of
the site's content to the requesting user. The software side is also comprised of several components,
with at least an HTTP server. The HTTP server is able to understand HTTP and URLs. As hardware,
a web server is a computer that stores web server software and other files related to a website, such
as HTML documents, images and JavaScript files.
When a web browser, like Google Chrome or Firefox, needs a file that's hosted on a web server, the
browser will request the file by HTTP. When the request is received by the web server, the HTTP
server will accept the request, find the content and send it back to the browser through HTTP.
Practices exercise:
1. Deploy 2 PC, one switch and one server as shown in the figure.
2. Click on the connection category and select Automatically choose connection type to connect PC
to Switch and switch to server
3. Click on PC, go to desktop and select IP configuration and assign IP address to all the individual
PCs and a server.
4. Select the Desktop Tab > Command Prompt.
5. Verify connectivity to the web server. At the command prompt, ping the IP address of the web
server by entering ping 192.168.1.2
Output:
ping 192.168.1.2
6. Go to tool bar & take a packet (PDU) & place it into source device (PC) and mention the
destination
7. We can start the simulation & we can see the message going from one PC to Server.
Static routing is a routing protocol that helps to keep your network organized and to optimize routing
performance. It enables the router to assign a specific path to each network segment and to keep
track of network changes. This helps to improve network stability and continuity. This adds security
because a single administrator can only authorize routing to particular networks.
Manually: Remote networks are manually entered into the route table using static routes.
Dynamically: Remote routes are automatically learned using a dynamic routing protocol.
1. Static routes are not advertised over the network, resulting in better security.
2. Static routes use less bandwidth than dynamic routing protocols, as routers do not exchange
routes.
3. No CPU cycles are used to calculate and communicate routes.
4. The path a static route uses to send data is known.
Steps to Configure and Verify Two Router Connections in Cisco Packet Tracer:
1. First, open the cisco packet tracer desktop and select the devices given below:
Repeat the same procedure with other PCs to configure them thoroughly.
3. Configure router with IP address and subnet mask.
S.NO Device Interface IPv4 Addressing Subnet Mask
Repeat the same procedure with other routers to configure them thoroughly.
4. After configuring all of the devices we need to assign the routes to the routers.
To assign static routes to the particular router:
First, click on router0 then Go to CLI.
Then type the commands and IP information given below.
CLI command : ip route <network id> <subnet mask><next hop>
5. Verifying the network by pinging the IP address of any PC. We will use the ping command to do
so.
First, click on PC1 then Go to the command prompt
Then type ping <IP address of targeted node>
As we can see in the below image we are getting replies which means the connection is working
Select PDU and click host and destination device, example PDU from PC0 to PC2.
10.2 Troubleshooting of IP Addressing:
6. Using command prompt to test the network, for example select PC0 goto command prompt
and ping PC (i.e, ping 192.168.1.3)
OUTPUT:
1. Change the router IP address (in interface2) from 192.168.1.129 to 10.1.1.1 and observe the
output i.e, ping and simulation
A connectivity problem across a network is that the routing tables have not
been properly defined. The Data (packets) are going out to the remote
destination, and data are being sent back to your system but are taking a bad
route on the way to your network. This problem occurs when the routes for
the network point to the wrong router.
1. Change the IP Address of the PC2 (172.16.1.5) and observe the output i.e, ping and simulation
1. Change the subnet mask on the Router (in interface2) from 255.255.255.128 to 255.0.0.0 and
observe the output.
Incorrect Subnet Mask: If a network uses a subnet mask other than the default mask for its
address class, and a client is still configured with the default subnet mask for the address
class, communication will fail to some nearby networks but not to distant ones.
10.3 Configure DHCP On a Wireless Router
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides
an Internet Protocol (IP) host with its IP address and other related configuration information such as
the subnet mask and default gateway.
The network administrator establishes DHCP servers that maintain TCP/IP configuration information
and provide address configuration to DHCP-enabled clients.
The DHCP server stores the configuration information in a database that includes:
Benefits of DHCP:
From the bottom toolbar, click on ‘End Devices’ and select ‘PC’ and then drag it to the
workspace.
Now select ‘Laptop’ and drag it to the workspace.
From the bottom toolbar, click on ‘Network Devices’ and under ‘Wireless Devices’, select
“Home Router” and drag it to the workspace.
2. Configure DHCP on Home-Router-PT-AC :
Click on “GUI” tab and configure the basic setup as shown in the image below :
3. Click on the PC and under physical tab, change the module of the PC as follows :
Turn off the PC.
Change the default module with the WMP300N module which is a 2.4 GHz wireless
interface for connecting to wireless network.
4. Click on Laptop and under physical tab, change the module of the Laptop as follows :
Click on the PC and under the “Desktop” tab click on “Command Prompt” and check IP
configuration with the command :
Now, check the connectivity with other devices in the topology by pinging them :
Simulation