返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).
; r5 m" N7 \9 m' y: e# {•        ip default-gateway [address]: This is a global command and set default gateway.* L; o6 W% L& f/ P
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.
: e( q  i. I4 `! c6 U) e2 w•        interface fast Ethernet 0/x: This command puts users into user configuration mode./ j# g/ [- L: z/ k0 {
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.
1 q2 \0 x* y! l- A- [8 _! v) S' Z•        duplex {auto/full/half}: This command sets duplex mode for the interface.) I( }) q; g6 i! Z
•        hostname [name]: This command assigns a host name to the switch.: `, j7 N& c! s0 I1 q" [
•        line vty 0 15: This command enters vty (telnet) configuration mode.+ p) n5 k3 S9 k/ c* A6 j# u: Y
•        line con 0: This command enters console configuration mode.9 t' q/ F/ h8 ]( q9 U
•        login: This command tells the switch to ask for a password.
/ l3 @0 P1 w% \8 i4 N# {•        password [password]: This command sets the password.% X. O2 `' C7 e3 D" w# u  }4 ]
•        enable password [password]: This command sets the password to enter privileged mode.4 t0 J8 q* v: F* d' C  x
•        enable secret [password]: This command sets encrypted password.
7 U+ z2 S, b% J. A# N5 j. i/ o•        configure terminal: This command enters configuration mode.( B* A7 M" h1 p& l; }$ W5 S4 [) v, E
•        show interfaces fastethernet 0/x: This command displays interface status.
& g# V, m' a. o" a; T8 Z3 s+ X•        show interfaces: This command displays information of all interfaces.  L" ]1 I( `! q0 Q) ]* S3 m. p" u
•        show interfaces vlan 1: This command displays the ip address configuration.
7 Q6 l8 s  x& b* a3 X•        show [running/startup]-config: This command displays RAM/NVRAM settings.0 `* x9 t( o, \) }4 ?* Z5 x; C. n% P
•        show-mac-address-table: This command displays the MAC address table.1 D% }) G5 `' M
•        show version: This command displays the switch’s hardware and software status.- i6 U/ }5 T! ^+ ^( |
•        show flash: This command displays the files and directories in the flash.
# |& v! `# E# n9 q: N•        show history: This command displays the last ten commands.* }1 k2 c& X( f: _
•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.
0 l$ T" @4 _. H% l% Z•        show log: This command displays logging messages of the switch.
5 n7 q! ^$ n5 c$ @7 W8 N•        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

返回列表