返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).
. ~: |6 ]+ m4 s, q•        ip default-gateway [address]: This is a global command and set default gateway.4 C: q) i- t( I
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.
- J; L( W$ ^- Y6 j. J9 k•        interface fast Ethernet 0/x: This command puts users into user configuration mode.1 X' e, H1 E9 y  t0 l, p/ V, H' m
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.; i5 o2 h' ~" f$ u
•        duplex {auto/full/half}: This command sets duplex mode for the interface.3 U1 ?8 |  f2 {# ~9 Q5 `
•        hostname [name]: This command assigns a host name to the switch.
# n6 U) U: r& `5 r•        line vty 0 15: This command enters vty (telnet) configuration mode.6 Y/ H: H2 T8 }
•        line con 0: This command enters console configuration mode.6 @* W! l4 O; t7 Z, x! _' P5 q
•        login: This command tells the switch to ask for a password.
# n0 t2 q6 z  h: Q* F•        password [password]: This command sets the password.
6 ^+ O  H+ O  x3 ^0 y/ s•        enable password [password]: This command sets the password to enter privileged mode." l3 m. c7 R4 E
•        enable secret [password]: This command sets encrypted password.3 X6 ^: O* V3 I# D* a( o) ]
•        configure terminal: This command enters configuration mode.
: Z& R$ N; k1 F) B& Z6 m•        show interfaces fastethernet 0/x: This command displays interface status.0 w" G3 h5 y) J0 k2 h2 J
•        show interfaces: This command displays information of all interfaces.
% ^8 B: S- K4 }, x7 d•        show interfaces vlan 1: This command displays the ip address configuration.# K* K# q5 M+ Y4 @% x/ E9 p& o0 n
•        show [running/startup]-config: This command displays RAM/NVRAM settings.
+ o3 A' W3 g' T& r•        show-mac-address-table: This command displays the MAC address table.
* @; F& g; n' j•        show version: This command displays the switch’s hardware and software status.6 c1 F0 {3 n2 w6 ^
•        show flash: This command displays the files and directories in the flash.! l; ^. V" D# c0 }( A% N
•        show history: This command displays the last ten commands.
# V8 ?& y% [' s. l! A•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.- i! r9 Y( i0 I3 Y
•        show log: This command displays logging messages of the switch.
# w0 F( F* W- t. n% {•        copy run start / write mem: This command saves configurations from RAM to NVRAM.
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
Tel: 852-27491011  Fax: 852-81483532

现在我这边都是在用h3c的,命令差别多,思科的还就都没用了,不过现在还有这个型号设备在网。
来自生活现象

TOP

返回列表