ROUTING and Switching
ROUTING and Switching
ROUTING &
SWITCHING
Created and prestented by : SEBABIBANE Ikram
WHAT'S A
COMPUTER
Group of components or devices
NETWORK ?
which are connected together to give
the user a certain service (application).
NETWORK COMPONENTS
End devices : servers and hosts.
Network Devices : devices that interconnect different
computers together (hub-switch-router-acces point-firewall).
Connectivity : media that physically connect the computers
and network devices (metallic wires-fiber optic –Wireless).
NETWORK TYPES
LAN (Local Area Network): It is a group of network components
03 that work
within small area. It characterized by high data speeds (up to 10Gbps)
using: Ethernet, Fast Ethernet, GigaEthernet,..
MAN (Metropolitan Area Network): It is a group of LANs that are
interconnected within small area. It characterized by very high data
speeds (up to 40Gbps).
01
WAN (Wide Area Network): It is a group of LANs that are interconnected
within large area. It characterized by slow data speeds (up to 155Mbps &
622Mbps ) using: analog dial-up, digital dial-up, leased lines, DSL, Frame,..)
OSI MODEL
------------------------
DATA
Segment
packet
frame
signal
OSI MODEL
The OSI (Open Systems Interconnection) Model is a
fundamental reference for understanding how networks work.
Physical and Link Layers:
Hardware bit transmission functions.
Management of access to physical media.
Network layer:
Packet routing and forwarding.
Logical addresses (e.g.: IP addresses).
Transport layer:
Data flow management.
Error checking and retransmission.
OSI MODEL
Session Layer:
Establishment, management, and closure of sessions.
Data synchronization.
Presentation layer:
Data translation between application and network.
Compression/decompression, encryption/decryption.
Application layer:
Direct interactions with users and software.
Application-specific protocols (e.g. HTTP, FTP).
WHAT IS THE MEANING OF SWITCHING?
Switching means that the device (router or switch) receive
the data on a certain port (Interface) and forwards it to
appropriate port (Interface) transparently without caring
about how to reach the final end, just care about who is
the next hop, so it is a layer 2 action
LAYER 2 DEVICES
A layer 2 device is a device that understand MAC for ex:
LAB3
INTERVLAN ROUTING USING ROUTER
INTERVLAN ROUTING CONFIGURATION
Switch(config)#int fastEthernet 0/1
Switch(config-if)#switchport mode trunk
Router(config)#int G0/0
Router(config-if)#no shutdown
Router(config)#int g0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 10.0.0.1 255.0.0.0
Router(config)#int g0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 20.0.0.1 255.0.0.0
LAB4
INTERVLAN USING MULTILAYER SWITCH
INTERVLAN MULTILAYER SWITCH CONFIGURATION
Switch(config)#int vlan 10
Switch(config-if)#ip add 10.0.0.1 255.0.0.0
Switch(config-if)#no sh
Switch(config)#int vlan 20
Switch(config-if)#ip add 20.0.0.1 255.0.0.0
Switch(config-if)#no sh
Switch(config)#int vlan 30
Switch(config-if)#ip add 30.0.0.1 255.0.0.0
Switch(config-if)#no sh