返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).
% v5 L" z2 Q" h& _# E& g* [5 d3 ]•        ip default-gateway [address]: This is a global command and set default gateway.+ `. |: P) Y7 T0 M# M5 ~
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.
- I+ v. W, n2 x, W6 q  O•        interface fast Ethernet 0/x: This command puts users into user configuration mode.
( u. s" Z4 ]1 B$ `* M' I0 I•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.1 J3 g  G3 Z2 [6 l- C+ F
•        duplex {auto/full/half}: This command sets duplex mode for the interface.
. K4 d: R3 k! d2 z  A0 T•        hostname [name]: This command assigns a host name to the switch.8 w) E9 V- {0 z5 A
•        line vty 0 15: This command enters vty (telnet) configuration mode.
+ ~9 V% o" V' K) L" b) u/ V$ R•        line con 0: This command enters console configuration mode.2 u2 S, p4 N, d3 I8 m! j
•        login: This command tells the switch to ask for a password.4 B3 T, z+ V4 f$ N
•        password [password]: This command sets the password., L3 r  A4 t* l  W3 b. s+ A, [
•        enable password [password]: This command sets the password to enter privileged mode.
0 @! W6 l1 S7 l0 _% |; t0 h•        enable secret [password]: This command sets encrypted password.
0 t9 r: F! G% N•        configure terminal: This command enters configuration mode.  A, c/ y$ L" @2 \  W. F
•        show interfaces fastethernet 0/x: This command displays interface status.
4 h7 O8 k) X: {% L7 A- x8 C•        show interfaces: This command displays information of all interfaces.5 d  S7 q' N/ Y
•        show interfaces vlan 1: This command displays the ip address configuration.
1 F( `1 o$ H9 q" u4 W•        show [running/startup]-config: This command displays RAM/NVRAM settings.
7 C0 [: j2 Q5 u8 j. N# X; c1 c•        show-mac-address-table: This command displays the MAC address table.
0 V2 f& R# g0 L' [" V•        show version: This command displays the switch’s hardware and software status.
, v8 {9 u9 }! I& u•        show flash: This command displays the files and directories in the flash.) A( l1 z3 |- O+ B
•        show history: This command displays the last ten commands.
9 f% N+ o/ R# d, s7 ?+ T4 `•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.- F6 x! D% l# H$ F& o
•        show log: This command displays logging messages of the switch.
* ], M8 b5 F9 Z4 ~  g1 F•        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

返回列表