lab 2 (1)bbbbhbbbvvvvvvccccbbvvvccc.pptx

BinyamBekeleMoges 43 views 24 slides May 11, 2024
Slide 1
Slide 1 of 24
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24

About This Presentation

Networking lab


Slide Content

SSH (Secure Shell) and Telnet  used for remote access to network devices Telnet: Telnet is an unencrypted protocol used for remote terminal access to network devices . It allows a user to establish a text-based session with a remote device and execute commands remotely . SSH: SSH is a secure replacement for Telnet. It provides encrypted communication between the client and the server, ensuring confidentiality and integrity of the data transmitted.

Configuring ssh password Configure ssh for router and switch to control form computers

Configuring ssh password… Steps to configure ssh password Change the host name Assign the I p address for all devices Assign the domain-name generate the rsa key for the encryption purpose Create user name and password for user and enable Apply ssh configuration

Configuring ssh password… Switch( config )#hostname S1 S1( config )#interface vlan 1 S1( config -if )# ip address 192.168.10.20 255.255.255.0 S1( config -if )#no shutdown S1( config -if)# exit

Router( config )#hostname R1 R1( config )#interface G0/0/0 R1( config -if)# ip address 192.168.10.1 255.255.255.0 R1( config -if)#no shutdown R1( config -if)#exit

Configuring ssh password… R1( config )# ip domain-name lab.com R1( config )#crypto key generate rsa How many bits in the modulus [512]: 1024 R1( config )#enable password 12345 R1( config )#username admin password cisco R1( config )# ip ssh version 2 R1( config )#line vty 0 15 R1( config -line )#transport input ssh R1( config -line )#login local R1( config -line)#exit

Configuring ssh password… Access from pc’s CMD: ssh –L example ssh –l admin 192.168.10.1 Access remotely from pc to configure both pc.

LAN Switching Part II

VLAN- Virtual Local Area Network Virtual Local Area Networks (VLANs) separate an existing physical network into multiple logical networks . Thus, each VLAN creates its own broadcast domain . Communication between two VLANs can only occur through a router that is connected to both.

VLAN- Types In short, there are 2 types of VLANs: Port-based VLANs (untagged) With port-based VLANs, a single physical switch is simply divided into multiple logical switches. The following example divides an eight-port physical switch (Switch A) into two logical switches. Tagged VLANs With tagged VLANs, multiple VLANs can be used through a single switch port. Tags containing the respective VLAN identifiers indicating the VLAN to which the frame belongs are attached to the individual Ethernet frames as they exit the port. If both switches understand the operation of tagged VLANs, the reciprocal connection can be accomplished using one single cable connecting from a “ trunk ” port.

VLAN- Types VLAN-1 (Default VLAN) Data VLAN : is a VLAN dedicated to carrying user data traffic. It is used to segregate and isolate different types of network traffic, such as user devices, servers, or specific applications. Management VLAN :  is a VLAN specifically designated for managing network devices, such as switches, routers, or wireless access points. Native VLAN : The native VLAN is a VLAN that is assigned to an 802.1Q trunk port without tagging the frames with a VLAN ID.

VLAN- Virtual Local Area Network

VLAN- Virtual Local Area Network VLAN Configuration (SW-0) Switch(config)#VLAN 10 Switch(config)#name Staff Switch(config)#VLAN 99 Switch(config)#name mgt

VLAN- Virtual Local Area Network Assigning Ports to VLAN (SW-0) SWA(config)#interface fastethernet0/2 SWA(config-if-range)# switchport mode access SWA(config-if-range)# switchport access vlan 10 SWA(config-if-range)#exit SWA(config)#interface fastethernet0/24 SWA(config-if-range)# switchport mode access SWA(config-if-range)# switchport access vlan 99 SWA(config-if-range)#exit

VLAN- Virtual Local Area Network VLAN Configuration (SW-1) Switch(config)#VLAN 10 Switch(config)#name Staff

VLAN- Virtual Local Area Network Assigning Ports to VLAN (SW-1) SWA(config)#interface fastethernet0/2 SWA(config-if-range)# switchport mode access SWA(config-if-range)# switchport access vlan 10 SWA(config-if-range)#exit

VLAN- Virtual Local Area Network Assigning trunk Ports to VLAN (SW-0) SWA(config)#interface fastethernet0/10 SWA(config-if-range)# switchport mode trunk SWA(config-if-range)# switchport trunk allowed vlan 1,10,99 SWA(config-if-range)# exit

VLAN- Virtual Local Area Network Assigning trunk Ports to VLAN (SW-1) SWA(config)#interface fastethernet0/10 SWA(config-if-range)# switchport mode trunk SWA(config-if-range)# switchport trunk allowed vlan 1,10,99 SWA(config-if-range)#exit

Management VLAN Create vlan mngt Assign the ip address for all device Sw # vlan 99 Sw#name mnget Sw#interface fa0/2-52 Sw#sw mode acess Sw#sw acc valn99 ___________________________________ Step 2 Assign the ip address to switch Sw#interface vlan 99 Sw#ip address 192.168.50.1 255.255.255.0 Sw # no shut

Step 3 Create the vty password and enable password. Step 4 Sw#ping the device of vlan mngt otr vlan99 step 5 Access the switch from the device …. Telenet switch address ….. telnet 192.168.50.1 User pass Enable pass

VLAN- Virtual Local Area Network Management VLAN (SW-0) SWA(config)#interface fastethernet0/24 SWA(config-if)# switchport mode access SWA(config-if)# switchport access vlan 99 SWA(config-if)#exit SWA(config-if)#interface vlan 99 SWA(config-if)#ip address 192.168.99.100 255.255.255.0 SWA(config-if)#no shutdown

VLAN- Virtual Local Area Network Management VLAN (SW-0)- Remote Login SWA(config)# enable secret vty SWA(config)#line vty 15 SW A (confi g - l i n e )#pa s s wor d 1 2 3 SWA(config-if)# login SWA( config -if )#exit SWA( config )# enable password cisco

VLAN- Virtual Local Area Network Native VLAN The VLAN services developed with backward compatibility to support old devices that does not support VLANs is called native VLAN. It is associated with Trunk port. SWA(config)#vlan 100 SWA(config)#name Native SWA(config)#exit SWA(config)#interface f0/10 (trunk port) SWA(config)# switchport trunk native vlan 100 SWA(config)#show int f0/10 switchport SWA(config)# show int trunk
Tags