To Demonstrate: Aim: Objective: Algorithm
To Demonstrate: Aim: Objective: Algorithm
To Demonstrate: Aim: Objective: Algorithm
1. Start
2. Setup the Topology and initializedevices
3. Configure Devices and router and verifyconnectivity
4. Display Deviceinformation
5. End
DESCRIPTION AND EXECUTION:
R1
S0/0/0 192.168.2.1 255.255.255.0 N/A
R2
S0/0/0 192.168.2.2 255.255.255.0 N/A
2
PC2 N/A 192.168.3.10 255.255.255.0 192.168.3.1
3
Configuring PC-A and PC-B:
4
Configuring router 1:
5
Configuring router 2:
6
Checking ping from PCA to PCB:
RESULTS:After the configuration and connection of all devices, the ping is successful
from PC-A to PC-B.
7
EXPERIMENT / PRACTICAL – 6
ALGORITHM:
1. Start
2. Setup the Topology and initialize devices
3. Configure Devices and verify connectivity
4. Display Device information
5. End
• Virtual LAN (VLAN) is a concept in which we can divide the devices logically on layer 2 (data link
layer). Generally, layer 3 devices divide the broadcast domain but the broadcast domain can be divided
by switches using the concept of VLAN. This is a custom network we create from one or more existing
LANs. It enables a group of devices from multiple networks (both wired and wireless) to be combined
into a single Logical network. The result is a VLAN that can be administered like a physical area net-
work. The network equipment like routers or switches must support the VLAN configurations to create
a VLAN.
Connecting the devices using cables:
Let us create a network in Cisco Packet Tracer and configure VLAN in it. Here we create 2 LANs with 6 hosts
each of them and in each LAN we create 2 VLANs and try to communicate between them.
Step 1: At first, we create a LAN, LAN-A with 6 hosts. To create a LAN we need one Layer 2 switch Switch0
and 6 end devices. Now we provide IP addresses to the hosts starting from 192.168.10.1 (you can provide any
valid IP addresses). To provide an IP address to a host just select that host → Desktop → IP Configuration →
IPv4 Addresses and provide an IP address and then ENTER, the Subnet Mask will be provided by default.
Step 2: Let us create 2 VLANs where the name of the first VLAN is VLAN-STUDENT and the second VLAN
is VLAN-FACULTY. To configure VLANs we have to go to the switch Switch0 and move to Config →
SWITCHING → VLAN Database. Now let us take the VLAN Number for STUDENT is 150 and for
FACULTY is 250 and add these numbers to VLAN Database.
8
9
Step 3: Next we have to select the hosts under VLAN-STUDENT. Here I have put hosts with IP addresses from 192.168.10.1
to 192.168.10.3 under VLAN-STUDENT. To do so we have to select the switch Switch0 → Config → INTERFACE, here
we choose FastEthernet0/1 corresponding to the host 192.168.10.1 which we consider to be in VLAN-STUDENT. Now we
select the down arrow beside VLAN and select 150:STUDENT, which is for student VLAN.
Step 4: Now we have to configure the hosts under VLAN-FACULTY. Here I have put hosts with IP addresses 192.168.10.4
to 192.168.10.6 under VLAN-FACULTY. To do so, just follow the process mentioned in Step 3, but instead of selecting the
VLAN Number 150:STUDENT, select 250:FACULTY for FastEthernet0/4, FastEthernet0/5, and FastEthernet0/6.
Step 5: Lastly, just change the switch port mode from Access to Trunk for FastEthernet0/7.
10
Adklfad
You can create LAN-B similarly by following these steps and connect LAN-A and LAN-B by using a Cross-Over
11
cable. And your end network will look like this:
Now our VLAN configuration is ready, and we can check this by sending data packets from one host to another
under LAN-A. Let us ping from 192.168.10.1 to 192.168.10.3. To do so, we have to select the host with IP
192.168.10.1 and then select Desktop → Command Prompt. Now run the following command to ping
192.168.10.3.
ping 192.168.10.3
You can get the Request timed out at first but don’t worry, if you followed all the steps mentioned properly then
run the command again to ping, and it’ll do the job.
12
You can also ping the hosts under VLAN-FACULTY by following the previous steps, but you cannot ping from a host under
VLAN-STUDENT to a host under VLAN-FACULTY or vice versa. It’ll generate a request time out because your created
Virtual LAN STUDENT doesn’t contain any host with IP addresses from 192.168.10.3 to 192.168.10.6. Similarly, VLAN-
FACULTY also doesn’t contain IP addresses from 192.168.10.1 to 192.168.10.3.
13
RESULTS:After the configuration and connection of all devices, the ping is successful from
the VLAN-FACULTY host of LAN-B.
14