返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).
: t- e; F! T& s. T5 Z0 G, z- Q•        ip default-gateway [address]: This is a global command and set default gateway.
5 c+ s+ W( s. x5 p•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.
$ ~3 L0 M& a4 w/ Y( I•        interface fast Ethernet 0/x: This command puts users into user configuration mode.8 i# J+ k0 Q* ]4 y/ I, e( a8 a
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.. }, j9 Z2 Q6 G( v
•        duplex {auto/full/half}: This command sets duplex mode for the interface.
0 l$ @) R; _" l# e& O* w•        hostname [name]: This command assigns a host name to the switch.( B) l5 ]3 o5 K4 J2 r( i( N* N' d
•        line vty 0 15: This command enters vty (telnet) configuration mode.
( I* G+ o2 }7 R•        line con 0: This command enters console configuration mode.
+ I* u) G; X* c- t. _8 w•        login: This command tells the switch to ask for a password.% i2 X" H5 p* @" [
•        password [password]: This command sets the password." I% P  ^; e) U8 k9 Q
•        enable password [password]: This command sets the password to enter privileged mode.7 [3 b& W3 G. P2 B' {+ {
•        enable secret [password]: This command sets encrypted password.
: g- z8 c$ B( A) ]•        configure terminal: This command enters configuration mode." b; p* }7 f' F
•        show interfaces fastethernet 0/x: This command displays interface status.2 X$ d) j8 ?0 I+ o, P' t' Z
•        show interfaces: This command displays information of all interfaces.
& i( N1 l+ q" R0 }+ o•        show interfaces vlan 1: This command displays the ip address configuration., K6 G+ w& a- E0 T. E3 Q8 B& a7 B
•        show [running/startup]-config: This command displays RAM/NVRAM settings.
( N" ~4 P2 i& F/ r% Y•        show-mac-address-table: This command displays the MAC address table.4 D  [* I) ?  A0 [: h; C# p
•        show version: This command displays the switch’s hardware and software status.) A& f% ~  I$ V9 y
•        show flash: This command displays the files and directories in the flash.( w4 _5 [4 s+ U, Y, g2 R
•        show history: This command displays the last ten commands.* u, @. x- `; ?$ d. W% |
•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.
+ f2 z* z. J. C5 i. T% i, Q•        show log: This command displays logging messages of the switch." t& f- Q' a$ |+ j* i
•        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

返回列表