返回列表 發帖

Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).
% _( K' j# m& K* v' i3 P•        ip default-gateway [address]: This is a global command and set default gateway.
8 I2 b) t$ ~% C: D$ j+ I•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.1 Y- T7 R! z4 b7 ]2 G2 |
•        interface fast Ethernet 0/x: This command puts users into user configuration mode.. \8 Q! z3 g9 Q! c1 c5 f, B1 n
•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.
8 c' U4 y, Q  G9 f•        duplex {auto/full/half}: This command sets duplex mode for the interface.
9 [  ?8 v$ O, M, v•        hostname [name]: This command assigns a host name to the switch.. z: {4 ?5 g& {) N4 G8 y/ c! `
•        line vty 0 15: This command enters vty (telnet) configuration mode.& b4 f1 w% C) V0 {0 x
•        line con 0: This command enters console configuration mode.6 I5 ~9 o% s7 l  z
•        login: This command tells the switch to ask for a password." u$ T9 b+ w' V& Z) L/ W, p
•        password [password]: This command sets the password.
9 d8 w9 {' a# `2 a' A3 s0 l7 D8 j" r•        enable password [password]: This command sets the password to enter privileged mode.
& G( ~6 U& F3 s0 j, Y& q•        enable secret [password]: This command sets encrypted password./ t7 N8 [3 {) n  T& S5 }
•        configure terminal: This command enters configuration mode.
9 g' f! u( e3 p: X4 \5 k/ k! {8 O•        show interfaces fastethernet 0/x: This command displays interface status.
! n: b8 M5 m% D, }/ W8 \8 S9 R! b•        show interfaces: This command displays information of all interfaces.
5 E  D; M/ ~% s5 P& }+ i( j( k•        show interfaces vlan 1: This command displays the ip address configuration.5 x2 B  y. K7 m6 g0 V# y
•        show [running/startup]-config: This command displays RAM/NVRAM settings.
- c0 z6 K5 l' c4 }: o$ P•        show-mac-address-table: This command displays the MAC address table.- A8 O" p3 n/ b/ d* R
•        show version: This command displays the switch’s hardware and software status.
3 A! M9 n- O4 h3 n! U# g- G- T' _•        show flash: This command displays the files and directories in the flash.! Z' s2 F; P# |' K: H6 h
•        show history: This command displays the last ten commands.
" Z+ p; s* o0 Z1 ^) g•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.( Q, B3 J9 o: C( A
•        show log: This command displays logging messages of the switch.& ]* m* P0 P; ^: q, F5 H
•        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

返回列表