Lab 1 Basic Switching Routing and VLANSs Configuration

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

University of Buea

Faculty of Engineering and


Technology Department of Computer
Engineering

CEF 453: Network design and Simulation

Practical 1: Basic switching, routing, and VLANS


configurations
Part I
Topology

Addressing Table
Device Interface IP Address Subnet Mask Default Gateway

G0/0 192.168.20.1 255.255.255.0 N/A


R1
G0/1 192.168.10.1 255.255.255.0 N/A

S1 Vlan10 192.168.10.11 255.255.255.0 192.168.10.1

S2 Vlan10 192.168.10.12 255.255.255.0 192.168.10.1

Network design and simulation Lab by Dr. Eng. DJOUELA Ines 1


PC-A NIC 192.168.10.3 255.255.255.0 192.168.10.1

PC-B NIC 192.168.20.3 255.255.255.0 192.168.20.1

Switch Port Assignment Specifications


Switch Ports Affectation

S1 F0/5, Fa0/6 Vlan 10 – Students

S2 Fa0/11, Fa0/18 Vlan 20 - Faculty

Objectives
A. Build the Network and Configure Basic Device Settings
B. Configure Switches with VLANs and Trunking
C. Verify Trunking, VLANs, Routing, and Connectivity

Required Resources
 1 Router (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable)
 2 Switches (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable)
 2 PCs
 Console cables to configure the Cisco IOS devices via the console ports
 Ethernet cables as shown in the topology
A. Build the Network and Configure Basic Device Settings
In Part A, you will set up the network topology and clear any configurations, if necessary.
Step 1: Cable the network as shown in the
topology. Step 2: Initialize and reload the router
and switches. Step 3: Configure basic settings for
R1.
a. Console into R1 and enter global configuration mode.
i. Use the ‘show version’ command to Retrieve important hardware and software
information (the name of the IOS image that the router is running, the number of
non-volatile random-access memory (NVRAM) that the router has, etc.)
ii. Display the start-up configuration.
b. Configure the following on router R1:
i. Assign a device name to the router
ii. Set the router’s domain name as fet-lab.com
iii. Disable DNS lookup to prevent the router from attempting to translate incorrectly
entered commands as though they were host names.
iv. Configure the system to require a minimum 5-character password.
v. Set the privileged access password “class”
vi. Set the console line password: cisco, configure sessions to disconnect after four
minutes of inactivity, and enable login
vii. Set the password for virtual lines: virtaccess, configure the vty lines to accept SSH
connections only, configure sessions to disconnect after four minutes of inactivity,
and enable login using the local database.
viii. Encrypt the plaintext passwords.
ix. Configure the message of the day "Welcome to Practical 1" or create a banner
that warns anyone accessing the device that unauthorized access is prohibited.
c. Configure addressing on G0/0 and G0/1 and enable both interfaces.
d. Save your different configurations and display them.

Step 4: Configure basic settings on both switches.

a. Console into the switch and enter global configuration mode.


b. Configure the switches basic configuration (disable domain lookup, enable passwords
(privileged, console and vty, enable banner).
c. Save the different configurations.
Step 5: Configure basic settings on PC-A and PC-B.
Configure PC-A and PC-B with IP addresses and a default gateway address according to the
Addressing Table.
B. Configure Switches with VLANs and Trunking
In this section, you will configure the switches with VLANs and trunking.
Step 1: Configure VLANs on S1 according to the Switch Port Assignment Specifications.
a. Create and configure Vlan10 and Vlan20
b. Configure F0/1 with the right mode.
c. Assign and configure the corresponding ports to Vlan10
d. Assign IP address to Vlan10
e. Configure the default gateway.
Step 2: Configure VLANs on S2 according to the Switch Port Assignment Specifications.
a. Create and configure Vlan10 and Vlan20
b. Configure F0/1 with the right mode.
c. Assign and configure the corresponding ports to Vlan20
d. Assign IP address to Vlan10
e. Configure the default gateway.
C. Verify Trunking, VLANs, Routing, and Connectivity
Step 1: Verify the R1 routing table.
a. On R1, issue the show ip route command. What routes are listed on R1?

b. On both S1 and S2, issue the show interface trunk command. Is the F0/1 port on both
switches set to trunk?
c. Issue a show vlan brief command on both S1 and S2. Verify that VLANs 10 and 20 are
active and that the proper ports on the switches are in the correct VLANs. Why is F0/1
not listed in any of the active VLANs?

d. What is the result of the Ping from PC-A in VLAN 10 to PC-B in VLAN 20.

e. Verify connectivity between devices. You should be able to ping between all devices.
Troubleshoot if you are not successful.

Part II
Topology

Addressing Table
Device Interface IP Address Subnet Mask Default Gateway

G0/1.1 192.168.1.1 255.255.255.0 N/A

G0/1.10 192.168.10.1 255.255.255.0 N/A


R1
G0/1.20 192.168.20.1 255.255.255.0 N/A

Lo0 209.165.200.225 255.255.255.224 N/A

S1 Vlan 1 192.168.1.11 255.255.255.0 192.168.1.1

S2 Vlan1 192?168.1.12 255.255.255.0 192.168.1.1

PC-A NIC 192.168.10.3 255.255.255.0 192.168.10.1

PC-B NIC 192.168.20.3 255.255.255.0 192.168.20.1

Switch Port Assignment Specifications

Switch Assignment Network

S1 F0/1 802.1Q Trunk N/A

S2 F0/1 802.1Q Trunk N/A

S1 F0/5 802.1Q Trunk N/A

S1 F0/6 Vlan 10 192.168.10.0/24

S2 F0/18 Vlan 20 192.168.20.0/24


Objectives
A. Edit the Network and the basic configuration settings of each device.
B. Edit switches configuration Switches (VLANs and Trunking)
C. Configure Trunk-Based Inter-VLAN Routing
Background / Scenario
A second method of providing routing and connectivity for multiple VLANs is through the use of
an 802.1Q trunk between one or more switches and a single router interface. This method is also
known as router-on-astick inter-VLAN routing. In this method, the physical router interface is
divided into multiple subinterfaces that provide logical pathways to all VLANs connected. In this
lab, you will configure trunk-based inter-VLAN routing and verify connectivity to hosts on
different VLANs as well as with a loopback on the router.
A. Edit the Network and the basic configuration settings of each device.
In Part1, you will edit the network topology and the basic configuration settings on the PC hosts,
switches, and router according to the addressing table
Step 1: edit the network topology
Step 2: Check (and edit if necessary) the IP addresses of switches interfaces
Step 3: Check (and edit if necessary) the IP addresses of PC-A and PC-B

B. Edit switches configuration (VLANs and Trunking)


Step 1: Edit Vlans on S1
Step 2: Edit Vlans on S2
C. Configure Trunk-Based Inter-VLAN Routing
Step 1: Configure a subinterface for Vlan 1
Step 2: Configure a subinterface for Vlan 10
Step 3: Configure a subinterface for Vlan 20
Step 4: Enable the G0/1 interface
Step 5: Verify connectivity
a. Enter the command to view the routing table on R1. What networks are listed?

_
b. From PC-A, is it possible to ping the default gateway for VLAN 10?
c. From PC-A, is it possible to ping PC-B?
d. From PC-A, is it possible to ping Lo0?
e. From PC-A, is it possible to ping S2?

You might also like