返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).' C* o& _# ?2 a% R+ a/ x5 Z
•        ip default-gateway [address]: This is a global command and set default gateway.
* W/ o8 r+ e7 C9 V$ H•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.
0 a# `$ A5 {' Z9 Q  r# B•        interface fast Ethernet 0/x: This command puts users into user configuration mode.5 D% Y# R& O. Z4 D; k7 |9 S8 [
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.& B1 X7 p5 h2 k+ T* J! y
•        duplex {auto/full/half}: This command sets duplex mode for the interface./ e6 k% V5 j2 `. Q9 P- j8 N
•        hostname [name]: This command assigns a host name to the switch.
. r$ h0 y# T' O•        line vty 0 15: This command enters vty (telnet) configuration mode.
: y* G2 ]* @: y! c•        line con 0: This command enters console configuration mode.% e+ ]% D' d: n3 s* t
•        login: This command tells the switch to ask for a password.
5 x% G) k! `1 X  ?2 M! c; o•        password [password]: This command sets the password., q! Q8 q# L4 t! y5 j) B
•        enable password [password]: This command sets the password to enter privileged mode.0 K3 `7 `  s3 H! X* v! {0 \
•        enable secret [password]: This command sets encrypted password.
8 T: {6 F+ v: W6 |% ~5 K•        configure terminal: This command enters configuration mode.$ A8 q0 q! l, i5 Q5 T4 f, h
•        show interfaces fastethernet 0/x: This command displays interface status.
" I" [  w) w& k' T5 u•        show interfaces: This command displays information of all interfaces." P2 I/ X+ A. @; B" p3 c' ]: t
•        show interfaces vlan 1: This command displays the ip address configuration.2 f% O* i  I4 h( ^' s* N/ {
•        show [running/startup]-config: This command displays RAM/NVRAM settings.
0 Q5 I+ e; g$ f' I, ?6 Q•        show-mac-address-table: This command displays the MAC address table.
" `3 t% p7 q2 q. M; |•        show version: This command displays the switch’s hardware and software status.
* `: {, e% `# Y- g8 G! W+ i% ?•        show flash: This command displays the files and directories in the flash.  k% Z4 |- E; i/ X
•        show history: This command displays the last ten commands.
5 S# ]4 N, E1 |•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.: I6 h, e; i" e/ t' w
•        show log: This command displays logging messages of the switch.) h2 C+ A6 s. b; A
•        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

返回列表