Board logo

標題: Cisco 2960 常用命令 [打印本頁]

作者: admin    時間: 2011-12-1 23:35     標題: Cisco 2960 常用命令

•        interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).2 V' j+ K9 `" J- E
•        ip default-gateway [address]: This is a global command and set default gateway.9 c9 o) k0 p( C
•        ip address [address][subnet mask]: This command configures the interface and sets the ip address.
+ N  a3 Y! {- D7 W+ ]; B" F•        interface fast Ethernet 0/x: This command puts users into user configuration mode.
0 J% R; J( {; ~! z. S. B6 n" Y6 a- |•        speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.
$ j0 |# {% u. _2 t% L•        duplex {auto/full/half}: This command sets duplex mode for the interface.2 r4 |8 |! V3 E8 f
•        hostname [name]: This command assigns a host name to the switch.$ A1 Z2 ]* O' D/ {4 q% D/ T1 B+ f" O8 @
•        line vty 0 15: This command enters vty (telnet) configuration mode.
+ i. w) b; Z! q9 U$ G- z•        line con 0: This command enters console configuration mode.3 j) s3 ~0 A! k
•        login: This command tells the switch to ask for a password.' N9 z) }0 N7 U4 y7 @2 `3 j' D
•        password [password]: This command sets the password.+ ~$ P, n  a& F: F1 z! L1 H2 v5 Y
•        enable password [password]: This command sets the password to enter privileged mode.; t$ G$ N" J9 U. V5 w' P8 W
•        enable secret [password]: This command sets encrypted password.9 e9 G) L" U" j' E9 W5 J
•        configure terminal: This command enters configuration mode.4 Z, |7 X3 |: `- V. s" y
•        show interfaces fastethernet 0/x: This command displays interface status.7 H2 _& Z& A1 h2 |4 |
•        show interfaces: This command displays information of all interfaces.
' y, U( V0 O0 y•        show interfaces vlan 1: This command displays the ip address configuration.
& U7 j5 c# ]7 d3 V•        show [running/startup]-config: This command displays RAM/NVRAM settings.
$ e2 ]+ f: S  d6 `# `7 \2 ?- }% _- w! L4 V•        show-mac-address-table: This command displays the MAC address table.
! f* M: L9 O2 r, F- m•        show version: This command displays the switch’s hardware and software status., v1 Y' Q' n1 O1 N
•        show flash: This command displays the files and directories in the flash.( Q* b. T( r7 F- h: }, B7 k8 U6 R
•        show history: This command displays the last ten commands.
, b; M& |, P! x# d•        show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.
$ V) n/ m/ |/ F2 `•        show log: This command displays logging messages of the switch.
8 K" g+ b; }7 L0 k! Q•        copy run start / write mem: This command saves configurations from RAM to NVRAM.
作者: yjq108    時間: 2012-11-23 13:18

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




歡迎光臨 How2Do (http://forum.how2do.com.hk/) Powered by Discuz! 7.2