返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).
: q" Y; O8 N; Q3 l! L1 p9 |; ?* {•        ip default-gateway [address]: This is a global command and set default gateway.2 x. z, L: |- o9 L3 A+ q
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.1 m6 ^' I1 ^: [& z: }+ K# U
•        interface fast Ethernet 0/x: This command puts users into user configuration mode.: F6 e* {/ R' ~. x6 C, |; `: }$ T
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.9 V# |8 G' E5 M8 s& |8 I* {
•        duplex {auto/full/half}: This command sets duplex mode for the interface.! _& e' p; d/ G. @
•        hostname [name]: This command assigns a host name to the switch.3 Z  s4 w" ?+ \1 f( A
•        line vty 0 15: This command enters vty (telnet) configuration mode.
5 B" D: H) S9 C: c/ S  M•        line con 0: This command enters console configuration mode.4 Z4 `% k# r- b; O# S
•        login: This command tells the switch to ask for a password.& X8 O$ ^, n4 A9 p4 {- Z$ X
•        password [password]: This command sets the password.0 j( _0 e+ F# t5 l" k/ Q. `
•        enable password [password]: This command sets the password to enter privileged mode.
+ M+ n$ X! m: l5 v3 Q8 W) I! B•        enable secret [password]: This command sets encrypted password.
: q! n+ G7 i" X3 C•        configure terminal: This command enters configuration mode.$ x  d1 ?- Q4 X" o. d) b
•        show interfaces fastethernet 0/x: This command displays interface status.7 W9 i1 ~% Z8 j$ b
•        show interfaces: This command displays information of all interfaces.+ i; S( h' a$ l+ R# k
•        show interfaces vlan 1: This command displays the ip address configuration.1 D8 P5 }$ @. M* [0 v) H2 d& j
•        show [running/startup]-config: This command displays RAM/NVRAM settings.# d3 B: Z. `2 p' x3 s! r1 U
•        show-mac-address-table: This command displays the MAC address table.0 S5 r) L1 @$ t: H
•        show version: This command displays the switch’s hardware and software status.
7 A+ R  h% O, |•        show flash: This command displays the files and directories in the flash.5 ~& d4 b; k1 y( p2 ?# Z% h  f
•        show history: This command displays the last ten commands.
" r9 f' J% T9 D•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.
% S' T  e' g( D; N% k•        show log: This command displays logging messages of the switch.
& n% h* e) E; D0 e  r0 b•        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

返回列表