返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).* k# y4 E+ S. t9 P- C- b
•        ip default-gateway [address]: This is a global command and set default gateway.
+ o0 m- {  g: w" z, J•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.: Z9 [9 _1 h+ a$ h6 v
•        interface fast Ethernet 0/x: This command puts users into user configuration mode.% {6 z" X6 P( n! g, Q
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.
+ w( j6 g8 M3 X, i•        duplex {auto/full/half}: This command sets duplex mode for the interface.3 B- x' r' @6 a( V$ x& u
•        hostname [name]: This command assigns a host name to the switch.& q) h+ p( q1 l8 ^/ u# T
•        line vty 0 15: This command enters vty (telnet) configuration mode.
0 u! h4 l" t& F3 f- c9 a•        line con 0: This command enters console configuration mode.
4 l) p9 X- B7 z( J- t) K5 \•        login: This command tells the switch to ask for a password.
4 h# ^- l1 b" ^" e  l& r6 J$ N& X•        password [password]: This command sets the password.' J+ u- s6 k. {' b% k8 {7 m
•        enable password [password]: This command sets the password to enter privileged mode.
2 ~$ L9 R9 l/ \* L% i  R5 Y, }8 V! U•        enable secret [password]: This command sets encrypted password.# ]' @/ z& n% G
•        configure terminal: This command enters configuration mode.
5 g' J' T6 G( i* m# d/ c•        show interfaces fastethernet 0/x: This command displays interface status.# T5 v& j6 w5 L1 N1 P1 B( f
•        show interfaces: This command displays information of all interfaces.
) w! Q, l. V) M5 g•        show interfaces vlan 1: This command displays the ip address configuration.% \& g& s: h# o
•        show [running/startup]-config: This command displays RAM/NVRAM settings.1 a: S' |0 t! s8 k( b: l3 Q$ @+ @- R. e
•        show-mac-address-table: This command displays the MAC address table.5 ?/ |* |+ f( f9 X. m
•        show version: This command displays the switch’s hardware and software status.
5 Z) g" L  m! d! D/ v2 _2 l•        show flash: This command displays the files and directories in the flash.
9 o  ], ?0 y1 n! y/ p$ z+ Z& n•        show history: This command displays the last ten commands.  ^% @2 B& i2 K) T) r! Y
•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.
  ]- X: d' h) H8 C% w# x( y•        show log: This command displays logging messages of the switch.9 O8 P: H+ ?8 \: B+ S; q* H+ X
•        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

返回列表