Cisco Switch Configuration basic commands Last Updated : 03 Jul, 2020 Comments Improve Suggest changes Like Article Like Report Prerequisite - Switch Functions A switch is a layer 2 device used to forward packet from one device to another within the network. It forwards the packet through one of its ports on the basis of destination MAC address and the entry in the MAC table. Following basic commands are used to configure a new switch : 1. Changing the hostname of a switch to GfgSwitch : It is used to set the name of the device. switch(config)#hostname GfgSwitch GfgSwitch(config)# 2. To add a banner message : It provides a short message to the user who wants to access the switch. GfgSwitch(config)#banner motd & Enter Text message. End with character '&' $ This is GeeksforGeeks floor Switch & 3. To set IP address in Switch : IP address is the address of device in network. GfgSwitch(config)#interface vlan1 GfgSwitch(config-if)#ip address 172.16.10.1 255.255.255.0 GfgSwitch(config-if)#exit GfgSwitch(config)#ip default-gateway 172.16.10.0 4. To set the current clock time : This is set the current time stored in the switch. GfgSwitch#clock set 3:03:14 June 25 2020 5. Apply password protection (enable password, secret password, console password and vty password) : Enable password : The enable password is used for securing privilege mode. GfgSwitch(config)#enable password GFGGFG Enable secret password : This is also used for securing privilege mode but the difference is that it will be displayed as ciphertext(***) on the configuration file. GfgSwitch(config)#enable secret GFGGFG Line console password : When a person will take access through console port then this password will be asked. GfgSwitch(config)#line console 0 GfgSwitch(config-line)#password GFG GfgSwitch(config-line)#login Line VTY password : When a person want to access a router through VTY lines (telnet or ssh) then this password will be asked. GfgSwitch(config)#line VTY 0 2 GfgSwitch(config-line)#password GFGGFG GfgSwitch(config-line)#exit 6. Copy to startup-configuration file from running-configuration file : GfgSwitch#copy running-config startup-config 7. To watch startup-configuration file and running-configuration file : GfgSwitch#show startup-config GfgSwitch#show running-config 8. Clear mac address table : Switch stores MAC addresses in MAC address table GfgSwitch#clear mac address-table Comment More infoAdvertise with us Next Article Cisco Switch Configuration basic commands abhishekg25 Follow Improve Article Tags : Computer Networks Similar Reads Basic Switch Configuration in Cisco The switch is a network device that is used to segment the networks into different subnetworks called subnets or LAN segments. It is responsible for filtering and forwarding the packets between LAN segments based on the MAC address. In this article, we will see the switch configuration in the Cisco 2 min read Cisco Router basic commands A router is a layer 3 device used to forward packets from one network to another. It forwards the packet through one of its ports on the basis of destination IP address and the entry in the routing table. By using a routing table, it finds an optimized path between the source and destination network 4 min read ADD PPP Command in PPP Configuration To use a physical layer, ADD command, as the name suggests, is required to add synchronous port, ISDN call, ACC call, MIOX circuit, etc. simply to the Point-to-Point Protocol (PPP) interface. There are several parameters included in this command. Some of the parameters are given below : OVER paramet 3 min read Common iOS Navigation Techniques in Cisco An IOS mode is a collection of commands used to customize a set of related features or to manage a specific area of the device. IOS modes are also referred to as IOS access modes and IOS command modes. There are five IOS modes: Â global configuration mode, privileged EXEC mode, user EXEC mode, setup 8 min read Setting IP Address Using ipconfig Command Setting up an IP address using the ipconfig command is a simple process that can be performed from any computer with an internet connection. This article aims to provide a step-by-step guide on setting up an IP address using the default gateway and the DNS server. This can be useful if you cannot ac 2 min read Steps Involves in Cisco Router Configuration Backups A backup of Configurations is required for troubleshooting the device when necessary, or if the device accidentally gets reset. These Backups are nothing but files (generally text files) stored separately on a Server which is a precautionary measure to protect against the system shutdown and is used 4 min read Configuring Port Security on Cisco IOS Switch Overview :Switch is a network device, which is configured to connect and maintain communication channel between various devices. Ethernet ports are present on a switch, which are used to connect devices, such as Router, computer system and Laptop in the network. To connect all these network, Etherne 4 min read Configuring Basic Password Authentication in Cisco The Access Control Passwords are generally used to restrict access to a certain network server along with its services for a specified group of users (hosts). The Authentication, Authorization, and Accounting (AAA) network services provide the framework or platform through which one can set up Acces 3 min read How to Configure SSH on Cisco Routers and Switches? Overview :SSH is a security mechanism, which can be used to access the privilege and configuration mode of a Router and a Switch from a remote location to perform the required action. The primary aim to configure SSH is to access devices deployed in a network from a remote location so that the requi 3 min read Commands required to configure PPP Nowadays, several commands are available on the router to simply configure, manage, and handle Point-to-Point Protocol (PPP) on the router. Configuration simply means process of setting networkâs control, flow, and operation to usually support communication over network of an organization or between 4 min read Like