Professional Documents
Culture Documents
Switching
Switching
Switching – A Process of using the MAC address on LAN is called Layer 2 Switching.
Layer 2 Switching is the process of using hardware address of devices on a LAN to segment a network.
Switching breaks up large collision domains into smaller ones and that a collision domain is a network
segment with two or more devices sharing the same bandwidth.
Ethernet is a LAN technology based on the IEEE 802.3 standard. It provides a shared medium to transfer
the data.
2. Fragment Free (Modified cut through)- This is the default mode for the catalyst 1900 switch, and
it’s sometimes referred to as modified cut through. In fragment free mode, the switch checks the
first 64 bytes of a frame before forwarding it for fragmentation, thus guarding against forwarding
runts, which are caused by collisions.
3. Store and forward- In this mode the complete data frame is received on the switch’s buffer, a
CRC is run, and if the CRC passes, the switch looks up the destination address in the MAC filter
table.
Flooding- A process of transferring a frames copy to its all ports except that port on which it was
received.
Routing Rules
1. If the destination is in the same subnet or network then a device directly sends the packet to the
destination.
2. If destination is not in same subnet or network then a device directly send packet to default
gateway.
(Note: ARP Request is used to find out the Destination MAC. Cisco 6500 series switch can store 1.80 Lac
MAC Address.)
Types of Switching
1. L2 -2900 Series
2. L3
3. L4
4. MLS -3500, 3700, 4500, 6500
Layer 2 Switching-
Layer 2 switches learn MAC addresses automatically, building a table which can be used to selectively
forward packets. For example, if a switch receives packets from MAC address X on Port 1 it then knows
that packets destined for MAC address X can simply be forwarded out of that port rather than having to
try each available port in turn.
Switching
Layer 3 Switching-
1. In layer 3 switching packets are forwarded based on destination L3 information as a router does.
2. Packets are forwarded with high speed as compared to router.
3. Packets are switched using dedicated hardware.
Layer 4 Switching- In layer 4 switching TCP & UDP port numbers are checked.
As a router maintain routing table just like this a MLS maintains FIB.
Packet Rewriter-
TCAM Components
SDM is used for Storage
FM – to compile ACL
VLAN
Before understand VLAN we have to understand LAN
Broadcast domain: - A set of LAN connected devices in which when a device sends a broadcast then all
devices get a copy of frame so LAN & Broadcast domain are same thing.
By default a switch consider its all interface in a single broadcast domain but a switch has ability to put
some interface in one broadcast domain & some interfaces in another broadcast domain. These new
broadcast domain are called V-LAN.
Types of VLAN
1. Static Vlan- Static Vlan provides port based Vlan membership. In static Vlan we configure switch
ports in a particular Vlan.
2. Dynamic Vlan- Dynamic Vlan provides Vlan membership based on MAC. When any end device is
connected with the switch, then switch learn the MAC address of end devices. After learning
MAC it sends a request to VMPS (Vlan Management Policy Server) that I have a MAC, now tell
me VLAN ID of this MAC. Now VMPS is responsible for Vlan assignment based on MAC. Now a
day we use AAA (Authentication, Authorization & accounting) for dynamic vlans. It works based
on username and password of a user.
VLAN Trunking
When a switch sends a frame to another switch then it adds an extra header with the frame which
contains VLAN ID of frame. This process is called VLAN trunking or tagging.
1. ISL (Inter Switch Link)- It is a cisco proprietary protocol. It encapsulate original Ethernet frame
with ISL header & trailer. It inserts 26 bytes header & 4 bytes trailer. This process is also called
dual tagging. It doesn’t support untagged data and native vlan.
2. 802.1Q- It is an open standard protocol. It doesn’t encapsulate original Ethernet frame with
dot1Q header & trailer but it insert 4 byte dot1Q header in original Ethernet header. It supports
untagged data and native vlans.
12 bit – vlan id
DTP modes
(i) DD
(ii) DA
(iii) No Negotiate
Before run this command we need to make this interface at least part of access list or trunk link. Only
we will be able to run this command.
1 to 1005
Switching
1 Native vlan
1002 fddi-default
1003 token-ring-default
1004 fddinet-default
1005 trnet-default
Extended Range
1006 to 4094
Reserved
4095
DD DD Yes
DA DA No
DA DD Yes
Static DD Yes
DA Static Yes
Trunk
This setting place the port in permanent trunking mode. DTP is still operational so if the far-end switch
port is configured to trunk, DD, or DA, trunking will be negotiated successfully.
Switching
DD (Dynamic Desirable)
The port actively attempts to convert the link into trunking mode. In other words, it asks the far-end
switch to bring up a frame. If the far-end switch port is configured to trunk, DD or DA mode, trunking is
negotiated successfully.
DA (Dynamic Auto)
The port can be converted in to a trunk link, but only if the far-end switch actively request it. Therefore,
if the far-end switch port is configured to trunk or DD mode, trunking is negotiated. Because of passive
negotiation behavior, the link never becomes a trunk if both ends of the link are left to the Dynamic
auto.
In all these modes, DTP frames are sent out every 30 sec to keep neighboring switch ports informed of
the links mode.
By default idle CAM table entries are kept for 300 seconds before they are deleted. We can change the
default setting using the following command.
By default, MAC addresses are learned dynamically from incoming frames. We can also configure static
CAM table entries that contain MAC addresses that might not be learned otherwise. To do this use
following commands
Switch (config) #mac-address-table static (mac-address) vlan (vlan-id) interface type (mod|num)
Switching
To view the contents of the CAM table, we can use the following form of the command
To set the link mode on a switch port, enter the following command
We can repeat this command to enable or disable more than one cause.
By default ports put into the errdisable state must be re enabled manually. This is done by issuing the
shut down and then no shut.