Cisco switches common Commands

Source: Internet
Author: User
Tags config switches

Switch command

Switch> User mode

1: Enter privileged mode enable

Switch> Enable

switch#

2: Enter global configuration mode configure terminal

Switch> Enable

Switch#configure Terminal

Switch (conf) #

3: Switch name hostname aptech2950 Take aptech2950 as an example

Switch> Enable

Switch#configure Terminal

Switch (conf) #hostname aptch-2950

aptech2950 (CONF) #

4: Configure enable password enable password Cisco for example

Switch> Enable

Switch#configure Terminal

Switch (conf) #hostname aptch2950

aptech2950 (CONF) # Enable password Cisco

5: Configure enabling password enable secret Ciscolab take Cicsolab as an example

Switch> Enable

Switch#configure Terminal

Switch (conf) #hostname aptch2950

aptech2950 (CONF) # enable secret Ciscolab

8: View Commands Show

Switch> Enable

switch# Show version View all versions information in the system

Show interface VLAN 1 view switch configuration information about the IP protocol

Show Running-configure View the configuration information that the switch is currently working on

Show interface fastethernet 0/1 view switch 1 interface specific configuration and statistical information

Show Mac-address-table view MAC Address Table

Show mac-address-table aging-time view MAC Address Table automatic aging time

9: Switch Restore factory default RESTORE command

Switch> Enable

switch# Erase Startup-configure

switch# Reload

10: Duplex Mode settings

Switch> Enable

Switch#configure Terminal

switch2950 (conf) #hostname aptch-2950

aptech2950 (CONF) # interface Fastehernet 0/17 with 17 ports for example

aptech2950 (conf-if) #duplex Full/half/auto has full, half, auto three options

11:CDP Related commands

Switch> Enable

switch# Show CDP View the CDP global configuration information for the device

Show CDP interface fastethernet 0/17 View CDP configuration information for 17 ports

Show CDP traffic View statistics about CDP packages

Show CDP Nerghbors lists Cisco devices connected to devices

12:csico2950 Password Recovery www.bianceng.cn

Disconnect the switch power cable.

Press the switch mode key with your hand and plug in the power cord

After switch: Execute flash_ini command: Switch:flash_ini

See the files in Flash: Switch:dir Flash:

Rename "Config.text" file as "Config.old": Switch:rename flash:config.text Flash:config.old

Execute Boot:switch:boot

Switch entry into the configured dialog, execute No:

Enter privileged mode to see files in Flash: Show Flash:

Rename "Config.old" file as "Config.text": Switch:rename flash:config.old Flash:config.text

"Config.text" into the system of "running-configure": Copy flash:config.text System:running-configure

Reset the configuration mode to save the password and restore the password successfully.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.