CN 9 12 - Practical File
CN 9 12 - Practical File
1. Open Cisco Packet Tracer: Open Cisco Packet Tracer simulator or some
related tool to simulate a network topology and simulate web traffic in it.
2. Place some end devices in the topology: These end devices will
communicate each other in the network through switch and router.
3. Place network devices (router and switch) in the topology: Use the relevant
router and switch, which are compatible with another devices
5. Configure IP Address and Subnet mask on every host: Configure every machine including host (PC) and
router by assigning it an IP address and subnet mask in order to make them communicate with each
other in the network. Add Default gateway to every host.
6. Configuring Router’s Interfaces: Configure router by assigning a IP address to each interface. Add
Gateway of hosts as the IP address of Router’s Interface of respective network.
Network masks:
Subnetting involves extending the network ID portion of an IP address by borrowing bits from the host
portion to create a subnet portion. The remaining bits in the host portion are used to assign individual host
addresses within each subnet.
Number of Subnets: The number of subnets created depends on how many bits are borrowed from
the host portion. If m bits are borrowed, the number of subnets is 2m2^m2m.
Number of Hosts per Subnet: The number of hosts that can be assigned within a subnet is
determined by the remaining bits in the host portion. If n bits are left for hosts, the number of usable host
addresses per subnet is 2n−22^n - 22n−2, accounting for the network and broadcast addresses that cannot
be assigned to hosts.
o For example, in a subnet with a /24 mask, there are 8 bits for hosts (since 32 bits total - 24 bits
for the network). This results in 28−2=2542^8 - 2 = 25428−2=254 usable host addresses per subnet.
Subnet Portion Restrictions: The host portion of the address cannot consist entirely of zeros (for
the network address) or all ones (for the broadcast address).
Creating Subnets:
By borrowing 8 bits from the host portion, you can create 256 subnets (2^8), with each subnet
supporting 254 usable host addresses (2^8 - 2).
Example: A Class B network like 131.60.0.0 with a subnet mask of 255.255.255.0 (or /24)
gives you 256 subnets, each with 254 hosts.
A Class B network (e.g., 172.16.0.0) can be split into 256 subnets by changing the network mask
from 255.255.0.0 (default) to 255.255.255.0.
The broadcast address for each subnet reveals the network address while hiding the host part. For
instance, for subnet 172.16.246.0/24, the broadcast address is 172.16.246.255.
Subnet Configuration:
You can allocate bits from the host portion for subnets. For example, 8 bits for subnets and 8 bits for
hosts would be a typical configuration, allowing up to 256 subnets with 254 hosts in each.
A Class C subnet mask (255.255.255.0) applied to a Class B network allows for 256 subnets with
254 hosts per subnet. If fewer hosts are needed but more subnets are required, you could use a mask of
255.255.255.128, creating 512 subnets with 126 hosts each.
For a network 131.60.0.0/24, the first subnet would have the range from 131.60.0.1 to
131.60.0.126 with a broadcast address of 131.60.0.127.
For a Class C network (e.g., 221.138.62.0), you can borrow bits from the host portion to create
subnets. For example, using a mask of 255.255.255.224 (or /27), you can create 8 subnets with 30
usable hosts per subnet, which is ideal for smaller networks.
Step 3:
Viewing the routing tables.
You can view routing tables in Packet Tracer using the Inspect tool. The Inspect tool is in the
Common Tools bar to the right of the topology. The Inspect tool is the icon that appears as a
magnifying glass.
a) In the Common Tools bar, click on the Inspect tool.
Tania 2223626
b) Click the MCSEn Office router and choose Routing Table.
c) Click the BranchOffice router and choose Routing Table.
d) Click the PartnerNet router and choose Routing Table.
e) Move the routing table windows around so that you can see all three at once.
f) What networks do each of the routers already know about?
g) Does each router know how to route to all networks in the topology? After comparing the
routing tables, close the window for each routing table by clicking the x in the upper right
corner of each window.
Step 4:
Configure default routes on the BranchOffice and PartnerNet routers.
To configure static routes for each router, first determine which routes need to be added for
each device. For the BranchOffice and the PartnerNet routers, a single default route allows
these devices to route traffic for all networks not directly connected. To configure a default
route, you must identify the IP address of the next hop router, which in this case is the
MCSEnOffice router.
a) From the Common toolbar, click the Select tool.
b) Move the cursor over the red serial link between the BranchOffice router and the
MCSEnOffice router. Notice that the interface of the next hop is S3/0.
c) Move the cursor over the MCSEnOffice router and note that the IP address for Serial 3/0 is
10.10.10.1.
d) Move the cursor over the red serial link between the PartnerNet router and the
MCSEnOffice router. Notice that the interface of the next hop is S2/0.
e) Move the cursor over the MCSEnOffice router and note that the IP address for Serial 2/0 is
10.10.10.5.
f) Configure the static routes on both the BranchOffice and PartnerNet routers using the CLI.
Click the BranchOffice router, and click the CLI tab.
g) At the BranchOffice> prompt, type enable to enter privileged EXEC mode.
h) At the BranchOffice# prompt, type configure terminal.
i) The syntax for a default route is ip route 0.0.0.0 0.0.0.0 next_hop_ip_address. Type ip route
0.0.0.0 0.0.0.0 10.10.10.1.
j) Type end to get back to the BranchOffice# prompt.
k) Type copy run start to save the configuration change.
l) Repeat steps f through k on the PartnerNet router, using 10.10.10.5 as the next hop IP
address. Step 5: Configure static routes at MCSEn Office.
a) The configuration of static routes at the MCSEn Office is a bit more complex because the
MCSEnOffice router is responsible for routing traffic to and from the Branch Office and
PartnerNet LAN segments. The MCSEnOffice router knows only about routes to the
10.10.10.0/30, 10.10.10.4/30, and 192.168.2.0/24 networks because they are directly
connected. Static routes to the 192.168.1.0/24 and 192.168.3.0/24 networks need to be added
so that the MCSEnOffice router can route traffic between the networks behind the
BranchOffice and PartnerNet routers. a. Click the MCSEnOffice router, and then click the CLI
tab.
b) At the MCSEnOffice> prompt, type enable to enter privileged EXEC mode.
c) At the MCSEnOffice# prompt, type configure terminal.
Tania 2223626
d) The syntax for a static route is ip route network
subnet_mask next_hop_ip_address: ip route 192.168.1.0 255.255.255.0 10.10.10.2 ip route
192.168.3.0 255.255.255.010.10.10.6
e) Type end to return to the MCSEnOffice# prompt.
f)Type copy run start to save the configuration change.
g) Repeat steps a through e from Step 3. View the routing tables and notice the difference in
the routing tables. The routing table for each router should have an “S” for each static route.
Step 6: Test connectivity.
a) Now that each router in the topology has static routes configured, all hosts should have
connectivity to all other hosts. Use ping to verify connectivity.
b) Click BOpc and click the Desktop tab.
c) Choose the Command prompt option.
d) Type ping 192.168.3.2. The ping should be successful, verifying that the static routes are
configured properly.
e) Type ping 192.168.2.2. Notice that the result is successful even though you did not
specifically add the 192.168.2.0 network as a static route into any of the routers. Because a
default route was used on the Branch Office and Partner Net routers, a route for the
192.168.2.0 network was not needed. The default route sends all traffic destined off network to
the MCSEn Office router. The 192.168.2.0 network is directly connected to the MCSEn Office
router; therefore, no additional routes needed to be added to the routing table
f) Click the Check Results button at the bottom of this instruction window to check your work
Tania 2223626