Computer Networks Lab (X)
Computer Networks Lab (X)
Configuration of LAN
C:\>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
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
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
4|P age
C:\>PING 20.0.0.1
Result
Hence, created VLAN structure and observed the communications of PCs within a
VLAN
5|P age
Network Topology Diagram for Inter VLAN
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
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
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
Result
Hence, We constructed Inter VLAN and made the communications of PCs between
different VLANs.
8|P age
Network Topology Diagram for Wireless LAN
Result:
Thus, constructed a WLAN and made the Laptops communicate wirelessly
9|P age
10 | P a g e