• interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1). ( K* i) S/ v, e n, |• ip default-gateway [address]: This is a global command and set default gateway., N- |1 H: I. I' e4 |0 r& K a
• ip address [address][subnet mask]: This command configures the interface and sets the ip address.0 \9 g* \( d+ [) H
• interface fast Ethernet 0/x: This command puts users into user configuration mode. ! O/ S7 P) k" | A1 r• speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.$ u; ]; Q5 D2 g4 s, i+ ?
• duplex {auto/full/half}: This command sets duplex mode for the interface.' ^! A5 S9 l0 X8 ?
• hostname [name]: This command assigns a host name to the switch. 0 _8 W8 F; H# ?9 S• line vty 0 15: This command enters vty (telnet) configuration mode. $ j3 l$ z; u9 d: }, W( K% @( Z: G• line con 0: This command enters console configuration mode. & ?* h2 \# J' A• login: This command tells the switch to ask for a password.9 U5 M4 p5 }7 ]8 l
• password [password]: This command sets the password. 4 \/ D& f5 L3 H6 f e/ b! A• enable password [password]: This command sets the password to enter privileged mode.; J9 Q3 I$ B# A, c6 W. x7 u, R
• enable secret [password]: This command sets encrypted password. * O; |& h2 J6 e• configure terminal: This command enters configuration mode.5 i3 f% M. Z( t9 ]9 X& v
• show interfaces fastethernet 0/x: This command displays interface status. - ~! N" b" h' |2 ` Y8 |0 Q" V3 R• show interfaces: This command displays information of all interfaces. : H0 Q, U1 k+ J7 X( w0 ?• show interfaces vlan 1: This command displays the ip address configuration.6 ]& F' ?+ }2 J$ A5 m
• show [running/startup]-config: This command displays RAM/NVRAM settings. . @1 V5 a) y7 C5 K; C. j# H. e) F• show-mac-address-table: This command displays the MAC address table.0 y2 i8 Q! r/ t& r& p) G0 t
• show version: This command displays the switch’s hardware and software status.# {- h$ R/ }6 ^- y |/ T$ o P7 {: p
• show flash: This command displays the files and directories in the flash.0 j4 w3 T4 `( V
• show history: This command displays the last ten commands. $ j& w4 H% Q. S" U4 D• show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch. % K4 o! h3 F7 R$ r: e# O• show log: This command displays logging messages of the switch.& T7 N/ A# ~! N) h
• copy run start / write mem: This command saves configurations from RAM to NVRAM.作者: yjq108 時間: 2012-11-23 13:18