Labs
Labs
Labs
Mehamed Ahmed(Ph.D.)
[email protected]
Basic Switch configurations
Hostname
Line console password
Line VTY password: Virtual teletype(VTY)
Encrypt password
Banner message
Logging synchronous
Exec-timeout
Turn port on and off
Save configurations
Topology
Hostname
There are three modes in Switch or Router
User mode
Enable
Switch#configure terminal
Switch(config)#Hostname HR-Switch
HR-Switch(config)#
HR-Switch>enable
HR-Switch#configure terminal
HR-Switch(config)#Line console 0
HR-Switch(config-line)#password HR@1234
HR-Switch(config-line)#login
HR-Switch(config-line)#exit
Line VTY Password
To configure a device remotely
HR-Switch>enable
HR-Switch#configure terminal
HR-Switch(config)#Line VTY 0 4
HR-Switch(config-line)#password HR@telnet1234
HR-Switch(config-line)#login
HR-Switch(config-line)#exit
Encrypt
To hide the password
HR-Switch>enable
HR-Switch#configure terminal
HR-Switch(config)#enable secret HR@1234
Exit
Banner Message
Messege to be displayed up on access
….
….
HR-Switch(config)# Banner motd #only HR users are
authorized#
HR-Switch(config)# exit
logging synchronous
To prevent the switch or router from prop out log
messages
It can be configured on line Console or VTY
HR-Switch(config)#line console 0
HR-Switch(config-line)#logging synchronous
HR-Switch(config-line)# exec-timeout 3 5
Exit
Exec-Timeout
Enable the devices to disable or deactivate after the default
or set time
It will be idle the default or set time and logout after that
HR-Switch#configure terminal
HR-Switch# interface fa 0/….
Shutdown
( Administrator)
ping 192.168.1.1 and
telnet 192.168.1.1
Lab-3-4
VLANs
VLANs
Design the topology
Configure the VLANs
There are the VLANs,
VLAN 10 : Name IT
VLAN 20: Name HR
VLAN 30: Name Finance
Networks
VLAN 10 : Name IT :-> 192.168.10.0
VLAN 20: Name HR:-> 192.168.20.0
VLAN 30: Name Finance:-> 192.168.30.0
IP for PCs
.1-4 in each VLANs
Identify interface range and Switchport mode
Identify range of switch ports and Assign VLANs
Modes access and trunk
Switvh# ena
Switch # conf t Repeat this configuration as per the #
Interface range fa0/2-3 VLANs Available and on each Switch on
the topology
Switchport mode access
Swichport access Vlan 10, 20,30 …..
Trunk configuration
The link b/n two network devices
Example switch 1 and switch 2
Intre fa 0/1
Switchport mode
VTP
VLAN Trucking Protocol:
Allows to simplify the management of VLAN database
across multiple switches
As example if we need to design the network for five
departments of an organization, IT, HR, FIN, Faculty and
Studentdean
Five VLANs ( VLAN 10,20,30,40,50 and Switches is required
Server
Client
Transparent
client
Server configuration
enable
confi ter
vtp mode Server
vtp domain cisco.com
vtp password cisco
vtp version 2
Client configuration
enable
confi ter
vtp mode client
vtp domain cisco.com
vtp password cisco
vtp version 2
Configure the LANs
VLANs configuration should be done only the server
switch
VLANs and give the names according the design
enable
confi ter
vlan 10
vlan 20
vlan 30
vlan 40
vlan 50
Check the advertisement
Check on each switch if the VLANs are configured
automatically
Lab-5
Routing
Static and dynamic routing
Static Routing
Dynamic Routing Protocols
The three kinds of dynamic routing
RIP: routing information protocol
EIGRP: Enhanced Interior Gateway
Protocol
OSPF: Open Short Path First
Dynamic Routing
Routing Information Protocol(RIP)
enable Router1 Router3
confi t network 192.168.1.0 network 10.10.13.0
router rip network 10.10.11.0 network 10.10.12.0
network 10.10.10.0 network
version 2
192.168.2.0
Router2
Router4
network 10.10.11.0
network 10.10.13.0
network 10.10.12.0
network 10.10.10.0
Enhanced Interior Gateway Protocol( EIGRP )
enable
confi t
router eigrp 10
Network ---, SM
Router1 Router3
Network 10.10.10.0 Network 10.10.12.0
255.255.255.0 255.255.255.0
Network 10.10.11.0 255.255.255.0 Network 10.10.13.0
Network 192.168.1.0 255.255.255.0
Network 192.168.2.0
255.255.255.0
255.255.255.0
Router2
Router4
Network 10.10.12.0
Network 10.10.10.0
Open Short Path First
Router 1
Network 10.10.10.0 255.255.255.0 area
enable 1
conf t Network 10.10.11.0 255.255.255.0 area
router ospf 20 1
Network 192.168.1.0 255.255.255.0 area
1
Router2
Network 10.10.12.0 255.255.255.0 area
1
Network 10.10.11.0 255.255.255.0 area
1
Router3
Network 10.10.12.0 255.255.255.0 area
1
Wireless LANS
Thank
You