3 CISCO+Switch
3 CISCO+Switch
Welcome
To
Network for you
CISCO Switch
CISCO Switch:
• Switch is a device used to connect multiple systems in LAN.
• Switch is a device used to connect same network where are Router is a device used to connect
two or more different Network.
• We have type of Switch that is Manageable and Unmanageable Switch.
• In Manageable Switch we can assign IP address and Create VLan we can do operation and it
have Console port.
• Un Manageable Switch In this type of switch we cannot assign IP address and it is not having
Console Port. In our Syllabus we are going to discuss Manageable switches.
• We have two type of switch that is Layer 2 and Layer 3.
• Switches which operate at Network Layer 3 called Layer 3 or Multilayer Switches.
• Switches which operate at Data Link Layer of OSI Model it is called Layer 2 Switches.
• Basic Function of CISCO Switch is to forward Layer 2 packets.
• Switch Forwards Ethernet Frames from Sources device to destination device.
• As we know without switch we cannot connect multiple devices so we can say switch is very
important device in networking to connect multiple devices in a network.
• As we know we can Managed switch locally or remotely? If you want to connect to Switch
Remotely then we will use SSH or Telnet to connect switch via remotely.
• CISCO IOS is proprietary Operating System that CISCO routers and switches run on it.
Switch#sh ver
Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE
SOFTWARE (fc1)
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Wed 12-Oct-05 22:05 by pt_team
ROM: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE SOFTWARE (fc4)
Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memory.
Switch# Sh Ver
Catalyst Switch:
• Catalyst was a company which produced switches and which was bought by CISCO.
• CISCO sold that series of switches by company named catalyst as catalyst switches.
• Catalyst switches are switches belonging to that old series of CISCO switches.
• For Example: Catalyst 2960 Series, Catalyst 4500 Series, and Catalyst 6500 Series etc.
• For Catalyst Switches, CATOS (Catalyst Operating System) and IOS are available.
• Catalyst switches are mainly designed for distribution and core layers in the network.
Modular Switches:
• These Switches support to add card that expansion modules into the switches as needed.
• In this switches we can add more modules as per our requirements.
• This type of switches offers more flexibility in their configuration.
• Such as expansion modules for additional interfaces, power supplies or cooling fans.
• Cisco Catalyst 9400, Catalyst 6500 and 6800 are good examples of modular switches.
Fixed Switch:
• Fixed Switches are switches with fixed number of ports.
• Fixed Configuration Switches are types of switches are fixed in their configuration.
• Cannot add features or options to switch beyond those that originally came with switch.
Standalone Switch:
• Standalone switches need to configured and managed individually.
• Standalone switches troubleshooting needs to be handled on individual basis.
Layer 2 Switch:
• The Terms Layers 2 and 3 adopted from OSI Model.
• The layer 2 provides direct data transfer between two devices within a LAN.
• Layer 2 switch functions by keeping a table of MAC address (Media Access Control).
• Uses MAC address to facilitate communicate within the same Network.
• It send packet to destination on the basis of MAC address and it work with in that MAC address
only.
• Switching at layer 2 is quite fast as they do not look at the layer 3 portion.
• Each network card has a unique identifier called Media Access Control Address.
• This address is used in LANs for Communication between devices on same network.
• Devices that want to communicate need to know each other MAC address.
• Use process called ARP to find out the MAC address of another device in LAN.
• Switches work base on MAC address or Hardware address or Physical address
• MAC (Media Access Control address used for layer 2 Datalink layer communication.
• MAC has two parts, OUI (Organization Unique Identifier) and Serial Number.
• MAC address is total 48 Bits, 24 Bits for OUI and 24 Bits for Company Serial Number.
• MAC address also called Hardware, Physical, Fixed and Brun address
• Switch manage and use MAC address table to forward traffic from one interface to another.
• MAC address table is combination of VLAN ID, MAC address, Address Type and Port number.
• MAC address table is of two type Dynamic address and Static address table.
• Dynamic MAC address table is a table where Switch learns dynamically.
• Dynamic MAC address is that the switch learns and After it age time flash out if they are not
communicating.
• Static MAC address is the address that manually we can assign. And for Static MAC address
there is no age time and it will not remove when we restart our device.
• If switch received frame and destination MAC address is not there then it flooded to all ports.
• When the destination replies then switch adds that source MAC address to the table.
• CISCO Switches default aging time is 300 seconds or five mints, we can be modifying.
• Aging timer is used to remove inactive Media Access Control addresses from the table.
• Aging time help to remove inactive MAC address from the MAC table.
Command Description
Show mac address-table aging-time It will display Aging time for mac address entry
Show mac address-table count It will display the number of entire currently in
mac address table and capacity etc.
Mac address-table static mac-address vlan To configure static Mac address on stitch.
vlan-id interface
PC1> sh ip
NAME : PC1[1]
IP/MASK : 192.168.1.1/24
GATEWAY : 0.0.0.0
DNS :
MAC : 00:50:79:66:68:00
LPORT : 10010
RHOST:PORT : 127.0.0.1:10011
MTU: : 1500
PC2> ip 192.168.1.2/24
PC2> sh ip
NAME : PC2[1]
IP/MASK : 192.168.1.2/24
GATEWAY : 0.0.0.0
DNS :
MAC : 00:50:79:66:68:01
LPORT : 10004
RHOST:PORT : 127.0.0.1:10005
MTU: : 1500
PC3> ip 192.168.1.3/24
PC3> sh ip
NAME : PC3[1]
IP/MASK : 192.168.1.3/24
GATEWAY : 0.0.0.0
DNS :
MAC : 00:50:79:66:68:05
LPORT : 10008
RHOST:PORT : 127.0.0.1:10009
MTU: : 1500
PC4> ip 192.168.1.4/24
PC4> sh ip
NAME : PC4[1]
IP/MASK : 192.168.1.4/24
GATEWAY : 0.0.0.0
DNS :
MAC : 00:50:79:66:68:04
LPORT : 10006
RHOST:PORT : 127.0.0.1:10007
MTU: : 1500
S1#sh mac address-table dynamic
Mac Address Table
-------------------------------------------
Switch Memory:
ROM (Read-Only Memory):
• ROM Stand for Read Only Memory also called Permanent Memory.
• ROM used to store Bootstrap Programs, Mini IOS and Diagnostic Applications.
• Bootstrap program is loaded when the device first powers ON.
• It is used to find IOS Image and Manage the process of loading the IOS into RAM.
Flash Memory:
• Flash Memory is also Permanent Memory like NVRAM.
• Flash Memory stored Cisco Operating System IOS in compress format.
• Flash Memory also store IOS software images and other files.
• This type of memory retains its content even after the device loses power.
• Flash Memory normal sizes are 32MB, 64MB, 128 MB, 256 MB & 512 MB.
• Flash Memory can be upgraded as per environment requirements.
Ip routing command is use to enable routing in Layer 3 switch. By default layer 3 switch
disable Routing.
Device Management:
• Traffic that network administrator uses to configure network devices is called device
Managements.
• Management plane provides the ability to manage network infrastructure devices.
• Management plane traffic is usually consisting of protocol traffic like Telnet, SNMP or SSH.
• First step toward management is to set username and password.
Console Port:
• Console port is used to connect a computer directly to a router or switch.
• Every Cisco Router, Firewall or a Switch has a console port.
• Console port also know as the management port.
• It manages the router or switch since there is no display device for a router or switch.
• Console port must be used to initially to install routers.
• Console port can be used to log into a router directly without network connection.
• Console require a terminal emulator application like putty to connect to router.
• Console port connect to router when a router cannot be accessed over the network.
• Console port is can be used to log into a router directly without network connection.
Config t
Enable password 12345
Line vty 0 4 ------------ if we want to allow 5 people to access device remotely then we will use vty 0 4
i.e. Qty 5
Password cisco
Login
Or
Other Method
Config t
Username abc password abc
Password cisco
Login local
line vty 0 4
transport input ssh
login local
username admin password admin
Type
Ssh -l username IP
Password
To Assign Telnet Password for Users To Assign Console Password for user
SW>en SW>en
SW# config t SW# config t
SW(config)# username admin password admin SW(config)# username admin password admin
SW(config)# line vty 0 4 SW(config-line)# line con 0
SW(config-line) # password <password> SW(config-line) # password <password>
SW(config-line) # login local SW(config-line) # login local