Switching: - Switch Is A Layer 2 Device - Two Types of Switches
Switching: - Switch Is A Layer 2 Device - Two Types of Switches
Switching: - Switch Is A Layer 2 Device - Two Types of Switches
• Loop avoidance
• Two links are connected to two switches.
• A loop occurs between the loops
STP (SPANNING TREE PROTOCOL)
• Provides a loop-free redundant network topology by
placing certain ports in the blocking state.
• It is to avoid Looping in switches
BRIDGE ID
• It is an address used to identify switches
• It is a combination of priority value + MAC address
• Ex: 32768:aa:bb:cc:dd
ROUTE BRIDGE
• The highest priority switch among network of switch.
• It controls the other ones.
• Only one Route Bridge is in a network
• The other switches are called non-Route Bridge
DESIGNATED PORT
• The forwarding port of frame is called DP
• All ports in Route Bridge are Designated ports
• All ports in a non-Route Bridge are non- Designated ports
ROOT PORT
• The ports in which designated and Non-Designated ports
communicate.
STP OPERATION
• BPDU (Bridge Protocol Data Unit), with the help of this packet, Root
Bridge is elected.
• The Root Bridge is elected with comparing Bridge ID and Root ID.
• The lowest BPDU Root ID is the Root Bridge.
• Initially BPDU packets are sent to all switches.
• A Root Port is selected with the help of Path Cost.
• The port in which Path cost having lowest value is the Root port.
SWITCH COMPONENTS
• Processor
• Motherboard
• SMPS
• RAM
• NVRAM
• FLASH
• Switches typically have no power switch to turn them on and off.
They simply connect or disconnect from a power source.
COMMAND LINE INTERFACE
• The command line interface of switch is same as that of a Router
• The Port interface is automatically assigned with IP and by default the
status is up.
SWITCH PORT TYPES
1. Trunk
A Switch to Switch connections are Trunk
2. Access
PC- Switch connections are Access
SETTING ACCESS & TRUNK PORT
Switch(config)#interface fastethernet 0/1
Switch(config-if)#switchport mode access (For Access Port)
Switch(config-if)#switchport mode trunk
PORT SECURITY
Switch(config)#interface fastethernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)#switchport port-security maximum 1
Switch(config-if)# switchport port-security mac address sticky
Switch(config-if)# switchport port-security violation shutdown
Switch# show port-security (To Verify)
VLAN
• Switch is a single broadcast domain
• Converting a single broadcast domain into multiple broadcast
domain is called Vlan.
• It is a virtual LAN created in a switch.
• Two types:-
• 1- 1005 standard
• 1006 – 4096 extended