Documente Academic
Documente Profesional
Documente Cultură
Bonus Command
. By default switch ports are set dynamic desireable mode which means that switch will
dynamically set the mode of a port based on the device which is plugged in.
Note An interface whose encapsulation is auto can not be set to trunk mode.Higher level
switches support both ISL and 802.q.
sw(config-if)# switchport trunk encapsulation dot1q
sw(config-if)# switchport trunk encapsulation isl
sw(config-if)# switchport trunk encapsulation negotiate
Security Check
After setting trunk set rest of the ports to access mode.
* interface range fastethernet 0/0 - 0/12
sw#(config) Switchport mode access
VTP Configuration
sw(config)#vlan 10
sw(config-vlan)#name sales
Sw(config)#interface fa 0/2
Sw(config-if)#switchport access vlan 10
Here router interfaces depanding upon the VLAN are set to act as a gateway for each
VLAN
Sw(config)#ip routing
This is the layer 3 command
SPANNING TREE PROTOCOL
Three layeres
Redundancy Chaos:
1. Redundancy is good but packets can loop for ever in redundant network if SPT
protocol is not applied properly.
2. TTL (time to live) is a layer 3 technology and switches are not able to subtract
time from packet.
3. STP puts a tree on a redundant links.
Root Bridge is selected based on the Bridge ID which is the combination of Priority
number and Mac address.
1. Root port(port that is used to reach a Root Bridge based on the link cost,Root
bridge does not a root port)
2. Designated port(Forwarding port every switch has at least one designated port)
3. Blocking ports(Else is the blocking port i-e where the tree fell)
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 0002.4A1E.ED05
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 00E0.8F85.4C12
Aging Time 300
Enhancement to STP
Learning: 15 seconds time switches learn Mac address to put in a CAM table
Forwarding : Happy state i-e when the switch can forward traffic.
Blocking: when switch interface goes down switch wait for 20 seconds to put the blocking
interface to up state.
Cisco Enhancement
Per VLAN STP
1) By default switches run PVST i-e separate root bridge for each VLAN
2) You need to manually configured Root Bridge for each VLAN.
3) This can be handy for load balancing
Command to Put Root Bridge for Every VLAN in a Network
Sw(config)#spanning-tree vlan 1,2,3,4.. root priority
Solution
*sw(config)#portfast
Solution
Three ports
Root Port
Designated port
Alternated Port
Routing Porotocols
Distance Vector
Easy to configure
Not many Features
Rip,IGRP
Link State
In their simplicity DV routing protocols have Looping issues. These looping causes the
Hop count to increase indefinitely called Count down to infinity.
Route poisoning: If the link goes down immediate set its Hop Count to 16.
Triggered Update: If the link goes down immediately send the update ignore all the timers.
Split Horizon: Never send an update to an interface about the route that is received from
that interface.
Hold Down Timers:If the link goes down Router will not believe for any update regarding
the down link for x amount of time.
Faster convergences
No Loop
Technical Complexity
Routing Protocol
OSPF Concepts
Route summarization
To make the routing table small
To advertise a single route for the bunch of routes to the neighbouring Routers.
Area
When the network is big and it is continuously expending than it is better to divide the
whole network into groups(based on the subnets) these groups are called areas.
The routers that have route to more than 1 area are called Area border Router(ABR)
All the routers with in an area must have same Topology Table(Road Map) but different
routing Tables.
Rouer ID
Area ID*
Network mask*
Hello and dead Timers*
Neighbours *
Router priority
DR/BDR IP address
Authentication password*