LAB05_
LAB05_
LABORATORY SESSION 5
EC4060
JENARTHTHAN A.
2021/E/006
GROUP CG1
SEMESTER 4
22 DEC 2023
OBJECTIVES
APPARATUS
PROCEDURE:
Steps:
Switch>enable
Switch#delete flash:vlan.dat
Delete filename [vlan.dat]? [Enter]
Delete flash:vlan.dat? [confirm] [Enter]
%Error deleting flash:vlan.dat (No such file or directory)
Switch#erase startup-config
Erasing the nvram filesystem will remove all files! Continue? [confirm]
Erase of nvram: complete
4. Reload Switch Software:
Switch(config)#reload
System configuration has been modified. Save? [yes/no]:
Proceed with reload? [confirm] [Enter]
Reload requested by console.
Would you like to enter the initial configuration dialog? [yes/no]:
Press RETURN to get started! [Enter]
OBSERVATION:
Router>enable
Router#erase startup-config
Erasing the nvram filesystem will remove all files! Continue? [confirm]
Erase of nvram: complete
Router(config)#reload
System configuration has been modified. Save? [yes/no]:
Proceed with reload? [confirm]
Reload requested by console.
Would you like to enter the initial configuration dialog? [yes/no]:
Press RETURN to get started!
Figure 3: Command Line Interface - Erasing and Reloading the Router
DISCUSSION
The process of erasing and reloading a switch or router serves as a critical preparatory step in networking
labs. By starting with a clean slate, devoid of any prior configurations, this practice ensures a predictable and
stable environment for subsequent exercises. Removing VLAN databases and startup configurations not only
prevents potential conflicts but also establishes a reliable baseline, crucial for consistent lab outcomes.
Verification steps, such as checking for successful configuration deletion, enhance understanding and
proficiency in command-line operations. The act of restarting the device through the reload command
reinforces the importance of software readiness. In conclusion, the significance of this process lies in its role
as a foundational practice, fostering a conducive learning environment and providing essential skills for
effective network administration and configuration.
CONCLUSION
The importance of erasing and reloading lies in the establishment of a pristine, interference-free environment
for subsequent lab activities. This process ensures a predictable, reliable starting point, prevents
configuration conflicts, and sets the stage for effective learning and experimentation in network
configuration labs. The objectives include achieving a clean slate, verifying the removal of configurations,
and preparing the device for successful lab execution. This foundational knowledge is critical for anyone
pursuing hands-on experience in network administration and configuration.
Lab – Configuring Per-Interface Inter-VLAN Routing
Topology
The network topology consists of a router (R1) connected to two switches (S1 and S2) as per the provided
addressing table. Two PCs (PC-A and PC-B) are connected to S1 and S2, respectively.
Addressing Table
• The lab aims to configure per-interface inter-VLAN routing, a legacy approach that facilitates
understanding before moving to more advanced methods.
Preparation:
• Verified that routers and switches have no startup configurations to ensure a clean setup.
• Used Cisco 1941 Integrated Services Routers for routers and Cisco Catalyst 2960s for switches,
referring to the Router Interface Summary Table for correct interface identifiers.
PROCEDURE:
Step 2: Initialized and reloaded both the router and switches to clear any existing configurations.
• Device: R1
• Interface: G0/0
• IP Address: 192.168.20.1
• Subnet Mask: 255.255.255.0
• Default Gateway: N/A
• Interface: G0/1
• IP Address: 192.168.10.1
• Subnet Mask: 255.255.255.0
• Default Gateway: N/A
Router successfully configured with the provided IP addresses on interfaces G0/0 and G0/1.
For switch 1:
For switch 2:
PC-A Configuration:
• IP Address: 192.168.10.3
• Subnet Mask: 255.255.255.0
• Default Gateway: 192.168.10.1
PC-A Configuration
PC-B Configuration:
• IP Address: 192.168.20.3
• Subnet Mask: 255.255.255.0
• Default Gateway: 192.168.20.1
PC-A and PC-B successfully configured with the specified IP addresses and default gateways.
o Assigned IP addresses and default gateway addresses to PC-A and PC-B according to the
Addressing Table.
Switch>enable
Switch#configure terminal
Switch(config)#
Switch(config)#vlan 10
Switch(config-vlan)#name Student
c. Created VLAN 20 and assigned the name 'Faculty-Admin'.
Switch(config)#vlan 20
Switch(config-vlan)#name Faculty-Admin
Switch(config)#interface FastEthernet0/1
Switch(config-if)#switchport mode trunk
e. Assigned ports F0/5 and F0/6 to VLAN 10 and configured them as access ports.
f. Assigned an IP address to VLAN 10 and enabled it. (Referred to the Addressing Table)
Switch(config)#interface vlan 10
Switch(config-if)#ip address 192.168.10.11 255.255.255.0
Switch(config-if)#no shutdown
Step 2: Configured VLANs on S2
a. Accessed the command-line interface of S2.
Switch>enable
Switch#configure terminal
Switch(config)#
e. Assigned ports F0/11 and F0/18 to VLAN 20 and configured them as access ports.
Switch(config)#interface range FastEthernet0/11 - 18
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
f. Assigned an IP address to VLAN 10 and enabled it. (Referred to the Addressing Table)
Switch(config)#interface vlan 10
Switch(config-if)#ip address 192.168.10.12 255.255.255.0
Switch(config-if)#no shutdown
• VLAN: 10
• IP Address: 192.168.10.11
• Subnet Mask: 255.255.255.0
• Default Gateway: 192.168.10.1
S2 Configuration:
• VLAN: 10
• IP Address: 192.168.10.12
• Subnet Mask: 255.255.255.0
• Default Gateway: 192.168.10.1
Switches S1 and S2 successfully configured with VLAN 10 and assigned IP addresses according to the
Addressing Table.
Part 3: Verified Trunking, VLANs, Routing, and Connectivity
a) On R1, issued the show ip route command to check the listed routes.
Router#show ip route
b) On both S1 and S2, issued the show interface trunk command to verify the trunk status of F0/1.
Verified that the F0/1 port on both switches was set to trunk.
c) Issued a show vlan brief command on both S1 and S2 to check the active VLANs and port
assignments.
Verified the activity of VLANs 10 and 20 and checked the correct port assignments.
The reason F0/1 is not listed in any of the active VLANs is because it has been configured as a trunk port.
Trunk ports are used to carry traffic for multiple VLANs, and they do not belong to a specific VLAN like
access ports do. In the context of the lab instructions, F0/1 is configured as a trunk port to allow traffic for
multiple VLANs, and therefore, it is not associated with a specific VLAN in the "show vlan brief" output.
C:\>ping 192.168.20.3
Checked the success of Inter-VLAN routing by ensuring successful pings between the 192.168.10.0
network and the 192.168.20.0 network.
e) Verified connectivity between devices by attempting to ping between all devices.
Checked the success of Inter-VLAN routing by ensuring successful pings between PC-A to PC-B
Checked the success of Inter-VLAN routing by ensuring successful pings between PC-B to PC-A
Ensured successful pings between all devices.
Legacy inter-VLAN routing offers a straightforward and cost-effective solution for network configurations.
By connecting different physical router interfaces to distinct switch interfaces, the setup is simplified,
making it ideal for smaller networks. The approach, exemplified by Router-on-a-Stick, proves compatible
with older equipment and provides fine-grained control over traffic flow through the application of access
control lists. Additionally, it enhances security by restricting communication between VLANs and offers an
efficient option for small to medium-sized networks, striking a balance between simplicity and effectiveness.
In summary, legacy inter-VLAN routing provides a balance between simplicity, cost-effectiveness, and
security, making it a viable option for certain network configurations, especially in scenarios with budget
constraints or compatibility requirements with older equipment.
CONCLUSION
In conclusion, this lab on configuring per-interface inter-VLAN routing provided valuable hands-on
experience in setting up a network infrastructure with legacy routing methods. The process involved erasing
and reloading configurations on both switches and routers, ensuring a clean slate for effective configuration.
The steps covered configuring basic device settings, creating VLANs, trunking, and verifying routing and
connectivity. Legacy inter-VLAN routing, exemplified by Router-on-a-Stick, emerged as a simple and cost-
effective solution, particularly suitable for smaller networks. Through this practical exercise, a deeper
understanding of VLANs, routing, and switch configuration was gained, reinforcing fundamental concepts in
network administration.