返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).8 G6 I6 g( Z; n3 X
•        ip default-gateway [address]: This is a global command and set default gateway.0 ?5 u  X7 J. |' R* s; A
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.
6 n* ^  k1 X& a/ M5 ^3 l•        interface fast Ethernet 0/x: This command puts users into user configuration mode." Y" E) Q: o4 t, b
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.  t# w7 T9 U3 G( w1 `5 J' G" C
•        duplex {auto/full/half}: This command sets duplex mode for the interface.
8 I3 |. L1 d% \, i& X* F9 c& \, R•        hostname [name]: This command assigns a host name to the switch.  t7 Q6 d8 ]& n; ?% u
•        line vty 0 15: This command enters vty (telnet) configuration mode.
$ @9 R2 E" m" O6 e/ l  F% `) ^•        line con 0: This command enters console configuration mode.
( R! H0 V2 X  d- H2 U•        login: This command tells the switch to ask for a password.3 V* T5 F! x* u4 `
•        password [password]: This command sets the password.8 S1 Q7 r3 j/ P0 X5 U8 e! G8 z
•        enable password [password]: This command sets the password to enter privileged mode.
; _; e5 X+ h# S8 X" }  ]/ \1 C5 T•        enable secret [password]: This command sets encrypted password.6 ]4 i$ V3 g% _6 X" C1 N) Z
•        configure terminal: This command enters configuration mode.2 b2 }% l. v! r( b
•        show interfaces fastethernet 0/x: This command displays interface status.- {) [# G, y. B! d( z
•        show interfaces: This command displays information of all interfaces.
0 ]. d' _# ?0 A' [* J8 z: L; @•        show interfaces vlan 1: This command displays the ip address configuration.) C# |* ^. h8 s! Q4 W9 O6 ]
•        show [running/startup]-config: This command displays RAM/NVRAM settings.
* C: N3 a4 e4 n  u  Y* L5 K•        show-mac-address-table: This command displays the MAC address table.5 M- p" p! T- q* a
•        show version: This command displays the switch’s hardware and software status.
) X7 F2 y/ B/ D* _•        show flash: This command displays the files and directories in the flash." g9 D6 O! Z! ]  n7 }9 P0 e
•        show history: This command displays the last ten commands.
* y  T1 J5 p* B+ A5 x0 S  K•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.
6 {6 ?8 e7 `8 M, M  A9 `/ c8 t/ d4 u•        show log: This command displays logging messages of the switch.
- A9 c( g& @' R•        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

返回列表