Switch command
Switch> User Mode
1: enable in privileged Mode
Switch> enable
Switch #
2: Enter the global configuration mode configure terminal
Switch> enable
Switch # configure terminal
Switch (conf )#
3: The vswitch name is hostname aptech2950. aptech2950 is used as an example.
Switch> enable
Switch # configure terminal
Switch (conf) # hostname aptch-2950
Aptech2950 (conf )#
4: configure the enable password. cisco is used as an example.
Switch> enable
Switch # configure terminal
Switch (conf) # hostname aptch2950
Aptech2950 (conf) # enable password cisco
5. Configure enable password: enable secret ciscolab. Here, we use cicsolab as an example.
Switch> enable
Switch # configure terminal
Switch (conf) # hostname aptch2950
Aptech2950 (conf) # enable secret ciscolab
8: view the show command
Switch> enable
Switch # show version: View All version information in the system
Show interface vlan 1: view the ip Protocol configuration of a vswitch
Show running-configure
Show interface fastethernet 0/1 view vswitch 1 interface configuration and statistics
Show mac-address-table view mac address table
Show mac-address-table aging-time View automatic aging time of mac address table
9: Switch restore factory default recovery 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 using port 17 as an Example
Aptech2950 (conf-if) # duplex full/half/auto has three Optional options: full, half, and auto
11: cdp commands
Switch> enable
Switch # show cdp view the cdp global configuration information of the device
Show cdp interface fastethernet 0/17 view cdp configuration information on port 17
Show cdp traffic
Show cdp nerghbors list cisco devices connected to the device
12: csico2950 password recovery
Unplug the power line of the switch.
Press the switch MODE key by hand to insert the power cord
Run the flash_ini command: switch: flash_ini
View files in flash: switch: dir flash:
Rename the "config. text" file to "config. old": switch: rename flash: config. text flash: config. old
Run boot: switch: boot
Enter the dialog box for the vswitch to enter the configuration, and run no:
In privileged mode, view the files in flash: show flash:
Rename the "config. old" file to "config. text": switch: rename flash: config. old flash: config. text
Paste "config. text" into the system's "running-configure": copy flash: config. text system: running-configure
Reset the password storage disk in configuration mode and the password is restored successfully.
This article is from "network collection notes"