×

Configuring Catalyst Switches

When you power on a new purchased Switch for the first time, it runs a series of Power-On Self Tests (POSTs) operations. A  POST is designed to verify the basic operations of the network interfaces, memory, and CPU.

The following post results are visible when we power on a newly purchased switch or reload a freshly erased switch:

show version command

show version command provides information about the device, including its IOS version number, type of interface, device model number, and device serial number.

Configure console port protection with one password:

To configure the password on the switch, give the following commands:

Switch>enable //used to enter in the   privileged exec mode
Switch#configure terminal //used   to enter in the global configuration mode   Switch(config)#line console 0 //used   to enter in the line console   
Switch(config-line)#login //used   to login the switch   
Switch(config-line)#password charu //used to provide the password   
Switch(config-line)#^Z //used to move in the privileged exec mode   
Switch#    

To verify that password is configured, give “logout “command and if it is configured then “Password:” appears on the screen.

Switch#logout //used to exit from the switch
Switch con0 is now available
Press RETURN to get started.
User Access Verification
Password: //is seen if password   is configured   

Enable Password  

The enable password is used when we move from user EXEC mode to Privileged EXEC mode. Privileged EXEC mode gives an opportunity to view and change the configuration. The enable password is stored in the plain text in the configuration file.

Configuring the enable password

Switch>enable
Switch#configure terminal 
Switch(config)#enable
password gunjan
Switch(config)#exit
Switch#    

The enable password is not encrypted. We use “show running-config” command to see the enable password.

Switch#show
running-config    

Enable secret password

The enable secret password uses an encryption algorithm. It is more secure password as compared to the enable password. This password does not encode the password.

Configuring the enable secret password

Switch#configure terminal
Switch(config)#enable secret poonam
Switch(config)#exit
Switch#    

We use the “show running-config” command to see the encrypted password.

Switch#show
running-config 

Configuring an IP address in the Switch

The IP address configured on switch’s interface is used to manage the particular interface of the switch. To manage the entire switch, we have to configure an IP address to the interface VLAN1.

We use following commands to configure IP address in the switch:

Switch>enable
Switch#configure terminal
Switch(config)#interface vlan1
Switch(config-if)#ip address 192.168.10.2   255.255.255.0
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#    

To verify that an IP address is configured on the switch, we use “show int vlan 1” command.

Switch#show
int vlan 1 

show flash

The show flush command will list the content of the flash memory. It is useful to know information about the size of IOS, name of IOS, and available memory space in a flash.

 Switch#show flash

show vlan

show vlan command displays the VLANs. For the administrative purpose, switch automatically creates VLAN 1.

 Switch#show vlan

show ip interface brief

We use “show ip interface brief” command to display all interfaces on the switch.

 Switch#show  ip interface brief

Saving running configuration in the switch

Switch stores all running configuration in RAM. All data is erased from the RAM when we turned off the device. To save the running configuration in the switch we use “copy running-config startup-config” command:

 Switch#copy running-config startup-config

Related Topics

Data Encapsulation and De-Encapsulation

Data Encapsulation It is the process of adding headers and trailers to data. When a host transmits data to another device over a network, the data is encapsulated, with protocol information...

5 minutes read.

Configure IP Routing

IP Routing stands for “Internet Protocol Routing.”It is the process of sending packets (data) from a source network to a destination network.In IP Routing, routers select the best route for a data packet from the...

2 minutes read.

Routing Information Protocol

Routing Information Protocol (RIP) Routing Information Protocol is a distance-vector routing protocol. It uses hop count to determine the best way for the remote network. By default, it has a maximum hop count 15. In...

5 minutes read.

IP Addressing

IP Addressing IP Addressing is designed to allow hosts on a network to communicate with another host on a different network. There are two types of IP address: IPv4 IPv4 addresses are 32-bits long. It allows...

2 minutes read.

Download and Install the Cisco Packet Tracer

Download and Install the Cisco Packet Tracer Step1: -Download Cisco Packet Tracer from the link given below: https://arief-jr.blogspot.com/2016/01/download-cisco-packet-tracer-62-for.html Here we will download Cisco packet tracer for Windows OS, so for Windows, go for...

1 minute read.

Checking Network Connectivity and Troubleshooting

As a Network Engineer, you must know that how to check network connectivity and troubleshoot a network. There are following commands are used in the network to check and troubleshoot the network connectivity – 1)...

3 minutes read.

Configuring IP Routing in Our Network

There are 3 types of IP routing that we can configure in our network. Default RoutingStatic RoutingDynamic Routing Default Routing Default Routing is used to configure unknown destination networks.It is used on stub networks. Stub networks are...

3 minutes read.

Configure Hostname

Configure a hostname on a router A hostname is a unique name given to a device (router or switch) on a network and is used to identify one device from another on a specific...

1 minute read.

Configure Password

Password configuration is an in-built feature of Cisco devices.Each Cisco device uses a password to authenticate users for accessing the device and also provides security to the Cisco devices. There are five types of the...

2 minutes read.

Internetworking Basics

What is a Network? A network is a group of two or more devices connected by some transmission media, i.e., cables. The purpose of designing a network is to enable the sharing...

4 minutes read.

Static Routing

Static Routing Static Routing is the process in which static routes are manually added to the routing table through the direct configuration. Static routing is configured in the global configuration mode using syntax: Router(config)#ip route...

3 minutes read.

Power on a Cisco device

Power on a Cisco device When you power on a new purchased Cisco device for the first time, it performs a power-on-self-test (POST) operation to identify the hardware components and to verify that all...

1 minute read.

Switching

A switch is a network device which is used to connect multiple devices (routers, computers) inside the LAN (Local Area Network). It operates at Data Link Layer (Layer 2) of the OSI reference...

3 minutes read.

Spanning Tree Protocol (STP)

Spanning Tree Protocol (STP) is a Data link layer (layer 2) protocol that is used to discover and maintain a valid loop-free path for the switched network. It is also used to analyze...

4 minutes read.

EIGRP Basics

EIGRP stands for Enhanced Interior Gateway Routing Protocol. It is also called as the Hybrid routing protocol. It contains the features of both distance vector and link-state routing protocols. Characteristics of EIGRP There are the...

5 minutes read.

Banner config

Banner config The banner is a little pool which is used in Cisco systems and also in other systems like Unix, Linux and so no.It permits a text that is displayed when you log in a...

1 minute read.

Saving, Erasing, and Verifying Configuration

Saving Configuration Cisco device store commands information into two configuration files: running configurationstartup configuration running configuration In the running configuration, you can manually save the data from RAM to NVRAM by typing the copy running-config startup-config command. When you...

3 minutes read.

Classes of IP Addresses

Classes of IP Addresses There are following five classes of IP Addresses: Class A – It is used for allocating an IP address.Class B - It is used for allocating an IP address.Class C – It...

6 minutes read.

Configuring EIGRP

Consider the topology given below – The initial IP configuration table is given below: Devices Interface IP address Router1 ...

2 minutes read.

Verifying OSPF Configuration

There are several ways to verify OSPF configuration and operations, which are: show ip route commandshow ip ospf commandshow ip ospf database commandshow ip ospf interface commandshow ip protocol commandshow ip ospf neighbor commanddebugging ospf Consider the following topology –We...

2 minutes read.