0% found this document useful (0 votes)
23 views10 pages

Computer Networks Lab (X)

The document outlines the configuration and testing of various Local Area Networks (LAN), Virtual Local Area Networks (VLAN), Inter-VLAN routing, and Wireless LAN (WLAN). It includes detailed input configurations, command outputs, and results from ping tests demonstrating successful communication within and between networks. The experiment concludes with the successful establishment of network connectivity across different setups.

Uploaded by

2205171
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views10 pages

Computer Networks Lab (X)

The document outlines the configuration and testing of various Local Area Networks (LAN), Virtual Local Area Networks (VLAN), Inter-VLAN routing, and Wireless LAN (WLAN). It includes detailed input configurations, command outputs, and results from ping tests demonstrating successful communication within and between networks. The experiment concludes with the successful establishment of network connectivity across different setups.

Uploaded by

2205171
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Experiment: 1

Configuration of LAN

Network Topology Diagram for LAN

Input Details for LAN

PC0 PC1 PC2


IP Address : 10.0.0.1 IP Address : 10.0.0.2 IP Address : 10.0.0.3
Gate way : 10.0.0.50 Gate way : 10.0.0.50 Gate way : 10.0.0.50

LAN OUTPUT WINDOW: (PINGING FROM PC0-PC1)

Packet Tracer PC Command Line 1.0

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=8ms TTL=128


Reply from 10.0.0.2: bytes=32 time=4ms TTL=128
Reply from 10.0.0.2: bytes=32 time=4ms TTL=128
Reply from 10.0.0.2: bytes=32 time=4ms 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 = 4ms, Maximum = 8ms, Average = 5ms

1|P age
LAN - MAC ADDRESS TABLE:

Result

Hence, the various configurations and protocols in LAN are analysed and the
experiment is performed successfully.

2|P age
Network Topology Diagram for VLAN

Input Details for VLAN 10

PC0 PC1 PC2


IP Address : 10.0.0.1 IP Address : 10.0.0.2 IP Address : 10.0.0.3
Subnet Mask : Subnet Mask : Subnet Mask :
255.255.255.0 255.255.255.0 255.255.255.0
Gate way : 10.0.0.50 Gate way : 10.0.0.50 Gate way : 10.0.0.50

Input Details for VLAN 20

PC0 PC1 PC2


IP Address : 20.0.0.1 IP Address : 20.0.0.2 IP Address : 20.0.0.3
Subnet Mask : Subnet Mask : Subnet Mask :
255.255.255.0 255.255.255.0 255.255.255.0
Gate way : 20.0.0.50 Gate way : 20.0.0.50 Gate way : 20.0.0.50

3|P age
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

4|P age
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),

MAC- ADDRESS TABLE:

Result
Hence, created VLAN structure and observed the communications of PCs within a
VLAN

5|P age
Network Topology Diagram for Inter VLAN

Input Details for VLAN 10

PC0 PC1
IP Address : 10.0.0.1 IP Address : 10.0.0.2
Subnet Mask : 255.255.255.0 Subnet Mask : 255.255.255.0
Gate way : 10.0.0.50 Gate way : 10.0.0.50

Input Details for VLAN 20

PC0 PC1
IP Address : 20.0.0.1 IP Address : 20.0.0.2
Subnet Mask : 255.255.255.0 Subnet Mask : 255.255.255.0
Gate way : 20.0.0.50 Gate way : 20.0.0.50

CONFIGURING THE TRUNK PORT IN SWITCH:


Switch#configure ter
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface fastEthernet 0/7
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 10,20
Switch(config-if)#no shut
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#exit

6|P age
ROUTER CONFIGURATION:
Router>en
Router#config ter
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface fastEthernet 0/0.10
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed state to
up

Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 10.0.0.50 255.0.0.0
Router(config-subif)#no shut
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.20
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20, changed state to
up

Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 20.0.0.50 255.0.0.0
Router(config-subif)#no shut
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

7|P age
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B – BGP D - EIGRP, EX -
EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF
NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E – EGP i - IS-IS,
L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user
static route, o – ODR P - periodic downloaded static route

Gateway of last resort is not set

C 10.0.0.0/8 is directly connected, FastEthernet0/0.10


C 20.0.0.0/8 is directly connected, FastEthernet0/0.20

OUTPUT:(PINGING PC3 IN VLAN20 FROM PC0 IN VLAN10)


C:\>ping 20.0.0.1
Pinging 20.0.0.1 with 32 bytes of data:
Request timed out.
Reply from 20.0.0.1: bytes=32 time<1ms TTL=127
Reply from 20.0.0.1: bytes=32 time<1ms TTL=127
Reply from 20.0.0.1: bytes=32 time=4ms TTL=127
Ping statistics for 20.0.0.1:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 4ms, Average = 1ms

Result

Hence, We constructed Inter VLAN and made the communications of PCs between
different VLANs.

8|P age
Network Topology Diagram for Wireless LAN

WLAN OUTPUT WINDOW:(PINGING FROM laptop 1- laptop 0)


C:\>ping 169.254.129.204

Pinging 169.254.129.204 with 32 bytes of data:

Reply from 169.254.129.204: bytes=32 time=30ms TTL=128


Reply from 169.254.129.204: bytes=32 time=16ms TTL=128
Reply from 169.254.129.204: bytes=32 time=15ms TTL=128
Reply from 169.254.129.204: bytes=32 time=13ms TTL=128

Ping statistics for 169.254.129.204:


Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 13ms, Maximum = 30ms, Average = 18ms

Result:
Thus, constructed a WLAN and made the Laptops communicate wirelessly

9|P age
10 | P a g e

You might also like