×

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

TCP/IP and DoD Model

Introduction to TCP/IP Model TCP/IP model was introduced in 1974. TCP/IP stands for Transmission Control Protocol/Internet Protocol. TCP/IP is an underlying communication protocol used by internet and commercial networks. The Transmission Control Protocol (TCP)...

10 minutes 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.

Subnetting

Subnetting is the process of dividing a big network into many small networks. Suppose there is a company which has four departments like Development, HR, Marketing, and Testing. We don't want that all...

5 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.

VLAN Basics

VLAN stands for Virtual Local Area Network. It is a logical group of networking devices that allows a single extended LAN to be partitioned into several separate LANs. The important feature of...

4 minutes read.

Getting familiar with the IOS modes

  There are following primary modes of operation in IOS. Setup ModeUser Exec ModePrivileged Exec ModeGlobal Configuration ModeInterface Configuration ModeRommon Mode Setup Mode In router or switches, all configurations are saved in NVRAM.If there is no...

3 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.

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.

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.

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.

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.

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.

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.

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...

3 minutes read.

The OSI Reference Model

OSI Reference Model OSI stands for Open System Interconnection. OSI provides a framework for creating and implementing networking standards, devices, and internetworking schemes. The following devices operate at the OSI model: Network...

6 minutes read.

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.

Configuring EIGRP

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

2 minutes read.

Variable Length Subnet Masks (VLSMs)

Variable Length Subnet Masks (VLSMs) A VLSM is a process of allocating IP addresses to the subnets according to the user’s need.VLSM is introduced to avoid the wastage of IP addresses.It allows you to...

3 minutes read.

Cisco IOS Overview

Cisco IOS Overview Cisco Internetwork Operating System (IOS) is a multitasking operating system which controls all functions of Cisco routers and switches. Willaim Yeager wrote the first IOS in 1986.It is used to allocate resources and manages...

2 minutes read.