Command Help for Switches
Switch>? Exec commands:connect Open A terminal connectiondisable Turn off privileged commandsdisconnect Disconnect an existing NETW Ork connectionenable Turn on privileged commandsexit exit from the Execlogout exit from the ExecPing Send Echo messagesres Ume Resume an active network connectionshow Show running system informationtelnet Open a telnet connectionterminal Set ter Minal Line Parameterstraceroute Trace route to destination
Post-command connection parameters or configuration content
switch>show ?arp arp tablecdp cdp informationclock display the System clockcrypto encryption moduledtp dtp informationetherchannel etherchannel informationflash: display information about flash: file systemhistory display the session command historyinterfaces interface status and configurationip IP informationipv6 IPv6 informationmac MAC Configurationmac-address-table mac forwarding tablemls show multilayer switching informationprivilege Show current privilege levelsessions Information About telnet connectionsssh status of ssh server connectionstcp status of tcp connectionsterminal display terminal configuration parametersusers display information about&Nbsp;terminal linesversion system hardware and software statusvlan vtp vlan status--more--
Forget the command how to write when
Switch>e?enable exit
Configure host Name
Switch (config) #hostname AA (config) #
Display system iOS name or version information
a#show versioncisco ios software, c2960 software (C2960-LANBASE-M), Version 12.2 (fx, release software ) (FC1) copyright (c) 1986-2005 by cisco Systems, Inc.Compiled Wed 12-Oct-05 22:05 by pt_teamROM: C2960 boot loader (c2960-hboot-m) version 12.2 (25r) fx, release software (FC4) system returned to rom by power-oncisco ws-c2960-24tt (RC32300) processor (REVISION C0) with 21039k bytes of memory.24 fastethernet/ Ieee 802.3 interface (s) 2 gigabit ethernet/ieee 802.3 interface (s) 63488K Bytes of flash-simulated non-volatile configuration memory. base ethernet mac address : 0001.42b6.7e4cmotherboard assembly number : 73-9832-06power supply part number : 341-0097-02motherboard serial number : foc103248mjpower supply serial number : dca102133jamodel revision number : b0motherboard Revision number : c0model number : ws-c2960-24ttsystem serial number : foc1033z1ey--more--
View MAC Address Table
Switch>enableswitch>enableswitch#show Mac-address-tablemac Address Table-------------------------------------------Vlan Mac Address Type Ports----------------------------
Configure the duplex mode and rate of the interface
Switch (config-if) #duplex {full | half | auto}
Full: Specifies that the interface is fully duplex
Half: Specifies the interface as half-duplex
Auto: Specifies the interface as auto-negotiation
Specifies the communication rate of the interface
Switch (config-if) #speed {ten | | | | auto}
This article is from the "arlies" blog, make sure to keep this source http://arlies.blog.51cto.com/10292766/1659439
Basic configuration of the switch