返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).( r& k  v+ h  O4 _/ O
•        ip default-gateway [address]: This is a global command and set default gateway.5 p, x3 M& x: Y+ J) r2 t
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.4 h  P4 [8 j. S; [* J4 q
•        interface fast Ethernet 0/x: This command puts users into user configuration mode.
+ }$ k) ~- Q" u9 Q% H) w•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.
- I0 W2 D# a5 _' t( }+ s4 v  y•        duplex {auto/full/half}: This command sets duplex mode for the interface.
* h: ?2 j9 c4 C, ?8 t; m•        hostname [name]: This command assigns a host name to the switch.
* }2 Z  ^% D+ u6 X; A1 q7 z. d, {5 ^•        line vty 0 15: This command enters vty (telnet) configuration mode.+ m" Y$ \1 j; O; X$ I
•        line con 0: This command enters console configuration mode.
: h; ?- j+ ~% `6 n8 R•        login: This command tells the switch to ask for a password.2 C4 i  p; U8 h) q9 u( Y. |: Y
•        password [password]: This command sets the password.' C. ^% N) \/ n0 v
•        enable password [password]: This command sets the password to enter privileged mode.4 R. b# A% i6 {9 g
•        enable secret [password]: This command sets encrypted password.
3 G5 t* A- i9 ?  ~* b- f% F•        configure terminal: This command enters configuration mode.. j# ^3 J% M2 r: \; e' {
•        show interfaces fastethernet 0/x: This command displays interface status.; i8 ], W' v) y9 @$ \9 r) P; Z
•        show interfaces: This command displays information of all interfaces.
8 O5 P& V6 u5 ]# u6 W4 X+ j•        show interfaces vlan 1: This command displays the ip address configuration.
; z2 s% b7 M7 o0 {& Z•        show [running/startup]-config: This command displays RAM/NVRAM settings.4 F) u/ `  i- x3 p4 k
•        show-mac-address-table: This command displays the MAC address table.3 ]/ J( i" Q1 Y' x, V6 T7 R$ T9 f' Y
•        show version: This command displays the switch’s hardware and software status.
* e- V2 t+ Q9 {0 h: p•        show flash: This command displays the files and directories in the flash.
& E' |. @% j+ l•        show history: This command displays the last ten commands.
9 J1 v: B. V9 U- U  X/ W" }$ }•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.) {# C) U% |' j( |8 c! l
•        show log: This command displays logging messages of the switch.2 }: ^) ]4 b8 i, }+ R2 m1 d* k3 S
•        copy run start / write mem: This command saves configurations from RAM to NVRAM.
Bill Tang     MSN:billtang@openplatform.com.hk
Openplatform Technology Co.,Ltd. 資訊坊科技有限公司  
無線工程施工、方案設計、無線產品、天饋材料、終端設備綜合供應商
www.openplatform.com.hk  Tel: 852-27491011  Fax: 852-81483532

中國無線技術論壇 http://www.how2do.com.Hk

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

TOP

返回列表