Friday 31 March 2023

Practical -70:- Setup and configure a Virtual LAN.

 

Aim:

To construct a VLAN and make the PC’s communicate among a VLAN

Requirements

Windows pc – 6 Nos

CISCO Packet Tracer Software (Student Version)

8 port switch – 1 No

Cat-5 LAN cable

Procedure

Open the CISCO Packet tracer software

Drag and drop 6 pcs using End Device Icons on the left corner

Select 8 port switch from switch icon list in the left bottom corner

Make the connections using Straight through Ethernet cables

Give IP address of the PCs as per table, ping between PCs and observe the transfer of data packets in real and simulation mode.

Theory

A VLAN is a group of devices on one or more LANs that are configured to communicate as if they were attached to the same wire, when in fact they are located on a number of different LAN segments. Because VLANs are based on logical instead of physical connections, they are extremely flexible.

VLANs define broadcast domains in a Layer 2 network. A broadcast domain is the set of all devices that will receive broadcast frames originating from any device within the set. Broadcast domains are typically bounded by routers because routers do not forward broadcast frames. Layer 2 switches create broadcast domains based on the configuration of the switch. Switches are multiport bridges that allow you to create multiple broadcast domains. Each broadcast domain is like a distinct virtual bridge within a switch.




CONFIGURATION OF THE SWITCHPORT FOR VLAN:

Switch>en

Switch#config

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#ex

Switch(config)#vlan 20

Switch(config-vlan)#ex

Switch(config)#interface range fastEthernet 0/1-3

Switch(config-if-range)#switchport access vlan 10

Switch(config-if-range)#ex

Switch(config)#interface range fastEthernet 0/4-6

Switch(config-if-range)#switchport access vlan 20

Switch(config-if-range)#ex

Switch(config)#ex

Switch#

%SYS-5-CONFIG_I: Configured from console by console

 

VLAN OUTPUT: (PINGING FROM PC0)

 

C:\>PING 10.0.0.2

 

Pinging 10.0.0.2 with 32 bytes of data:

Reply from 10.0.0.2: bytes=32 time=1ms TTL=128

Reply from 10.0.0.2: bytes=32 time<1ms TTL=128

Reply from 10.0.0.2: bytes=32 time<1ms TTL=128

Reply from 10.0.0.2: bytes=32 time<1ms TTL=128

Ping statistics for 10.0.0.2:

 

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

 

C:\>PING 20.0.0.1

 

Pinging 20.0.0.1 with 32 bytes of data:

 

Request timed out.

Request timed out.

Request timed out.

Request timed out.

 

Ping statistics for 20.0.0.1:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),



Popular Posts