CN_Lab_File_7-10
CN_Lab_File_7-10
– 7
Topology Diagram:
Background / Scenario:
In this activity, you will subnet the Customer network into multiple subnets. The subnet scheme should be
based on the number of host computers required in each subnet, as well as other network considerations,
like future network host expansion.
After you have created a subnetting scheme and completed the table by filling in the missing host and
interface IP addresses, you will configure the host PCs, switches and router interfaces.
After the network devices and host PCs have been configured, you will use the ping command to test for
network connectivity.
Instructions:
Step 1: Create a subnetting scheme that meets the required number of subnets and required number
of host addresses.
In this scenario, you are a network technician assigned to install a new network for a customer. You must
create multiple subnets out of the 192.168.0.0/24 network address space to meet the following
requirements:
a. The first subnet is the LAN-A network. You need a minimum of 50 host IP addresses.
b. The second subnet is the LAN-B network. You need a minimum of 40 host IP addresses.
c. You also need at least two additional unused subnets for future network expansion.
Note: Variable length subnet masks will not be used. All of the device subnet masks should be the same
length.
d. Answer the following questions to help create a subnetting scheme that meets the stated
network requirements:
How many host addresses are needed in the largest required subnet?
50
e. The subnet mask is made up of two portions, the network portion, and the host portion. This is
represented in the binary by the ones and the zeros in the subnet mask.
f. To subnet a network, bits from the host portion of the original network mask are changed into
subnet bits. The number of subnet bits defines the number of subnets.
Given each of the possible subnet masks depicted in the following binary format, how many subnets and
how many hosts are created in each example?
Hint: Remember that the number of host bits (to the power of 2) defines the number of hosts per subnet
(minus 2), and the number of subnet bits (to the power of two) defines the number of subnets. The subnet
bits (shown in bold) are the bits that have been borrowed beyond the original network mask of /24. The
/24 is the prefix notation and corresponds to a dotted decimal mask of 255.255.255.0. 1)
1) (/25) 11111111.11111111.11111111.10000000
2) (/26) 11111111.11111111.11111111.11000000
3) (/27) 11111111.11111111.11111111.11100000
4) (/28) 11111111.11111111.11111111.11110000
5) (/29) 11111111.11111111.11111111.11111000
Dotted decimal subnet mask equivalent:
Number of subnets? Number of hosts?
6) (/30) 11111111.11111111.11111111.11111100
Considering your answers above, which subnet masks meet the required number of minimum host
addresses?
/26
Considering your answers above, which subnet masks meets the minimum number of subnets required?
Considering your answers above, which subnet mask meets both the required minimum number of hosts
and the minimum number of subnets required?
When you have determined which subnet mask meets all of the stated network requirements, derive each
of the subnets. List the subnets from first to last in the table. Remember that the first subnet is 192.168.0.0
with the chosen subnet mask.
192.168.0.0/192.168.0.63/64 /26
192.168.0.64/192.168.0.127/64
192.168.0.128/192.168.0.191/64
192.168.0.192/192.168.0.255/64
Assign IP addresses based on the following criteria: Use the ISP Network settings as an example.256-
a. Assign the first subnet to LAN-A.
1) Use the first host address for the CustomerRouter interface connected to LAN-A switch.
2) Use the second host address for the LAN-A switch. Make sure to assign a default gateway
address for the switch.
3) Use the last host address for PC-A. Make sure to assign a default gateway address for the
PC.
b. Assign the second subnet to LAN-B.
1) Use the first host address for the CustomerRouter interface connected to LAN-B switch.
2) Use the second host address for the LAN-B switch. Make sure to assign a default gateway
address for the switch.
3) Use the last host address for PC-B. Make sure to assign a default gateway address for the
PC.
Configure basic settings on the PCs, switches, and router. Refer to the Addressing Table for device names
and address information.
In Part 3, you will use the ping command to test network connectivity.
a. Determine if PC-A can communicate with its default gateway. Do you get a reply?
b. Determine if PC-B can communicate with its default gateway. Do you get a reply?
c. Determine if PC-A can communicate with PC-B. Do you get a reply?
Experiment No. – 8 & 9
VLANs are used to segment switched Layer 2 networks for a variety of reasons. Regardless of the
reason, hosts in one VLAN cannot communicate with hosts in another VLAN unless there is a router or
a Layer 3 switch to provide routing services.Inter-VLAN routing is the process of forwarding network
traffic from one VLAN to another VLAN.
Note: This method of inter-VLAN routing is no longer implemented in switched networks and is
included for explanation purposes only.
VLAN Configuration
VLAN Ranges on Catalyst Switches:
VLAN details are stored in the vlan.dat file. You create VLANs in the global configuration mode:
• If the Student PC is going to be in VLAN 20, we will create the VLAN first and then name it.
• If you do not name it, the Cisco IOS will give it a default name of vlan and the four digit
number of the VLAN. E.g. vlan0020 for VLAN 20.
Once the VLAN is created, we can then assign it to the correct interfaces.
VLAN Port Assignment Example:
• We will want to create and name both Voice and Data VLANs.
• In addition to assigning the data VLAN, we will also assign the Voice VLAN and turn on
QoS for the voice traffic to the interface.
• The newer catalyst switch will automatically create the VLAN, if it does not already exist,
when it is assigned to an interface.
Note: QoS is beyond the scope of this course. Here we do show the use of the mls qos trust [cos | device
cisco-phone | dscp | ip-precedence] command.
Caution: Before deleting a VLAN, reassign all member ports to a different VLAN.
• Delete all VLANs with the delete flash:vlan.dat or delete vlan.dat commands.
• Reload the switch when deleting all VLANs.
Note: To restore to factory default – unplug all data cables, erase the startup-configuration and delete the
vlan.dat file, then reload the device.
Trunk Configuration Commands:
Configure and verify VLAN trunks. Trunks are layer 2 and carry traffic for all VLANs.
Note: This assumes a 2960 switch using 802.1q tagging. Layer 3 switches require the encapsulation to
be configured before the trunk mode.
Verify Trunk Configuration:
Reset the trunk to an access mode with the switchport mode access command:
• Is set to an access interface administratively
• Is set as an access interface operationally (functioning)
Introduction to DTP:
The default DTP configuration is dependent on the Cisco IOS version and platform.
• Use the show dtp interface command to determine the current DTP mode.
• Best practice recommends that the interfaces be set to access or trunk and to turnoff DTP
Experiment No. – 10
Router-on-a-Stick Scenario:
• In the figure, the R1 GigabitEthernet 0/0/1 interface is connected to the S1 FastEthernet 0/5 port. The
S1 FastEthernet 0/1 port is connected to the S2 FastEthernet 0/1 port. These are trunk links that are
required to forward traffic within and between VLANs.
• To route between VLANs, the R1 GigabitEthernet 0/0/1 interface is logically divided into three
subinterfaces, as shown in the table. The table also shows the three VLANs that will be configured on
the switches.
• Assume that R1, S1, and S2 have initial basic configurations. Currently, PC1 and PC2
cannot ping each other because they are on separate networks. Only S1 and S2 can ping each other,
but they but are unreachable by PC1 or PC2 because they are also on different networks.
• To enable devices to ping each other, the switches must be configured with VLANs and trunking, and
the router must be configured for inter-VLAN routing.
R1 Sub-interface Configuration:
The router-on-a-stick method requires you to create a subinterface for each VLAN to be routed. A
subinterface is created using the interface interface_id subinterface_id global configuration mode
command. The subinterface syntax is the physical interface followed by a period and a subinterface
number. Although not required, it is customary to match the subinterface number with the VLAN number.
Repeat the process for each VLAN to be routed. Each router subinterface must be assigned an IP address
on a unique subnet for routing to occur. When all subinterfaces have been created, enable the physical
interface using the no shutdown interface configuration command. If the physical interface is disabled,
all subinterfaces are disabled.
In the configuration, the R1 G0/0/1 subinterfaces are configured for VLANs 10, 20, and 99.
Next, use ping to verify connectivity with PC2 and S1, as shown in the figure. The ping output
successfully confirms inter-VLAN routing is operating.