• interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).; @8 ]( E2 K% L; \% V( Q: _
• ip default-gateway [address]: This is a global command and set default gateway. 4 x* H/ F r7 b# M• ip address [address][subnet mask]: This command configures the interface and sets the ip address. 8 r% Q) M+ \- B6 z& T• interface fast Ethernet 0/x: This command puts users into user configuration mode.. Y) P6 o' w( S
• speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed. $ T8 l8 w4 A+ q# q: n; i% L# [• duplex {auto/full/half}: This command sets duplex mode for the interface.; U3 }! W+ p8 _
• hostname [name]: This command assigns a host name to the switch. 7 {- L! Q& Q9 z0 V" E1 Q$ j• line vty 0 15: This command enters vty (telnet) configuration mode. 2 V" J. K1 R( Z% W P• line con 0: This command enters console configuration mode. M9 m9 P# y! L% Q• login: This command tells the switch to ask for a password. $ ~' M' i1 v5 `. O& R• password [password]: This command sets the password. i) J Y1 M: i0 i D Y1 D; K
• enable password [password]: This command sets the password to enter privileged mode. " n( [# q- ^; r+ z7 ^( x1 J• enable secret [password]: This command sets encrypted password.6 {: k% I# s$ v( X/ y2 H
• configure terminal: This command enters configuration mode. ; H* \! h, a% m• show interfaces fastethernet 0/x: This command displays interface status. - @) G. h3 _4 x• show interfaces: This command displays information of all interfaces. & T1 \' D) r0 t6 r6 k( g) z6 j/ i" P• show interfaces vlan 1: This command displays the ip address configuration.# w! }; K: g' Y+ ~9 K( Q; w: q
• show [running/startup]-config: This command displays RAM/NVRAM settings.; t9 n4 c" X! G" Q$ B
• show-mac-address-table: This command displays the MAC address table.: B: \" J& G P. `
• show version: This command displays the switch’s hardware and software status.8 l- G* J3 U3 a* p& o
• show flash: This command displays the files and directories in the flash.! V/ @' F+ i/ M" ]. @/ i5 K
• show history: This command displays the last ten commands.7 [. z& H. k: s+ p, S
• show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.* R q" P7 [& p# R7 y
• show log: This command displays logging messages of the switch. j$ ]' ]& x5 V) w( j g3 p• copy run start / write mem: This command saves configurations from RAM to NVRAM.作者: yjq108 時間: 2012-11-23 13:18