0% found this document useful (0 votes)
26 views35 pages

Labs

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 35

All Labs

Network and performance

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

Privilege mode: Basic or few configuration


Configuration Terminal

Global configuration mode: more configurations


Hostname configuration
Switch>enable

Switch#configure terminal

Switch(config)#Hostname HR-Switch

HR-Switch(config)#

Change the name of the second switch to IT-Switch


Line console password
To protect unauthorized access of the switch

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

It can be configured on line Console or VTP


HR-Switch(config)#line VTP 0 4
HR-Switch(config-line)#logging synchronous
HR-Switch(config-line)# exec-timeout 3 0
 exit
Turn on and off ports
HR-Switch>enable

HR-Switch#configure terminal
HR-Switch# interface fa 0/….
Shutdown

No shut down


telnet
Tele networking : remotely connecting into devices
Swi# enable
 Swi# Configure ter
Interface vlan1
Ip address 192.168.1.1 255.255.255.0
No shutdown
Exit
Line vty 0 15
Password yourpassword
Login
Exit
Remotely connect and configure the
devices
Check the connectivity from PC

( 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

As shown in the next slide

switchport mode access


switchport access vlan 10
Design the VTP topology
Identify and Configure Trunk ports
enable
confi ter
c h 1-3
t
Swi
inter range fa0/1-2
switchport mode trunk

inter range fa0/1-3


switchport mode trunk Switch 4

Don’t forget the access ports to the end devices


configure the vtp mode
There are three modes:

Server

Client

Transparent

Choose one to be a server and make the rest

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

You might also like