返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).0 w$ Q$ K' h. F! R2 N( i4 Y$ G1 h1 i
•        ip default-gateway [address]: This is a global command and set default gateway.6 r  O1 s4 d6 G9 p+ s* i% B+ Z5 x
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.% U- q8 i! c+ V  l6 k, o/ E% P! e
•        interface fast Ethernet 0/x: This command puts users into user configuration mode.
: x6 u3 O! a! }  Q! H/ w•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.: ]4 Q7 u( @" g& L3 R; U3 W
•        duplex {auto/full/half}: This command sets duplex mode for the interface.
: m; T, \1 l6 b: m/ g0 a% G•        hostname [name]: This command assigns a host name to the switch.
; m& Z4 t  J% D•        line vty 0 15: This command enters vty (telnet) configuration mode.
$ k4 I' F! M9 e" V6 E7 d•        line con 0: This command enters console configuration mode.
0 l7 K5 ?+ K; L( U9 _•        login: This command tells the switch to ask for a password./ m; ~: u% q( s3 Q3 A, V+ {
•        password [password]: This command sets the password., J8 N0 b( ?' a# e0 o* I
•        enable password [password]: This command sets the password to enter privileged mode.0 @. h$ f- M: Y% O
•        enable secret [password]: This command sets encrypted password.: ^1 s2 R$ A3 x( f- d
•        configure terminal: This command enters configuration mode.
0 u- b# ?3 j4 G, v" Z) I+ C; L. d•        show interfaces fastethernet 0/x: This command displays interface status.: g" q6 E5 H- g% y2 }; Y3 u
•        show interfaces: This command displays information of all interfaces." z" S- i% i! f- F& }( }
•        show interfaces vlan 1: This command displays the ip address configuration.
# l; G, x* x. [# X•        show [running/startup]-config: This command displays RAM/NVRAM settings.6 ~# X8 v( |# |1 P/ N( I1 b
•        show-mac-address-table: This command displays the MAC address table.
& o# W( H  m- d$ ?•        show version: This command displays the switch’s hardware and software status.
6 \  T! O7 ~, h4 _3 H•        show flash: This command displays the files and directories in the flash.1 v1 l) F3 B8 g2 H
•        show history: This command displays the last ten commands.! r* j% g: K; J! {* i" f  L
•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.8 G) |. e  ?$ S+ i# _  `7 |
•        show log: This command displays logging messages of the switch.! z# a) ], L: I4 ~8 G
•        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

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

TOP

返回列表