• interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1)., [: v: ^. K$ d9 P
• ip default-gateway [address]: This is a global command and set default gateway. ) ?6 L' f2 @# A) U% V. W2 d• ip address [address][subnet mask]: This command configures the interface and sets the ip address. 8 `, [: w; l9 k8 o: f• interface fast Ethernet 0/x: This command puts users into user configuration mode.' I7 S1 r* @- w3 ?
• speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed. , U+ e5 l& b# ^# g! u7 p9 q7 Q4 v• duplex {auto/full/half}: This command sets duplex mode for the interface.% Q4 U: U" I; m8 e2 o
• hostname [name]: This command assigns a host name to the switch. * w& ?! k* V$ i, e& R- G/ `( j• line vty 0 15: This command enters vty (telnet) configuration mode. ) a2 Q( E% g) D: w- |7 Y1 o/ P• line con 0: This command enters console configuration mode.8 j$ Q7 Q" U0 P4 e. J
• login: This command tells the switch to ask for a password.; O! P8 f: q2 k! T5 a# U7 t- T& ^9 o
• password [password]: This command sets the password.( X. {/ k+ G8 M2 e* o" F
• enable password [password]: This command sets the password to enter privileged mode. 9 ^- H; k+ s9 r+ Y) k2 ]+ O• enable secret [password]: This command sets encrypted password. 9 r P+ j: F% V, }7 W- i7 M+ s& f• configure terminal: This command enters configuration mode. ' Q6 y1 {, f( Q6 X• show interfaces fastethernet 0/x: This command displays interface status.- _, v" i) S6 o' R
• show interfaces: This command displays information of all interfaces.) l! o6 w. U: G4 u# D$ ?
• show interfaces vlan 1: This command displays the ip address configuration. 6 M; E0 o0 n; D. o$ ~* S2 I• show [running/startup]-config: This command displays RAM/NVRAM settings. 7 e; C7 X8 n9 e; P$ z. s• show-mac-address-table: This command displays the MAC address table. . r; T" r( ~9 ^• show version: This command displays the switch’s hardware and software status.) A# X7 i* b' z' P. F5 t( y) X
• show flash: This command displays the files and directories in the flash. 1 U6 G& t- d. ^( O4 a: h• show history: This command displays the last ten commands.5 d4 R, C4 T. n0 V8 p
• show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch. 0 N, C( O" z- w" Y* C& x# @9 q4 F• show log: This command displays logging messages of the switch. ) l% f p$ G3 w• copy run start / write mem: This command saves configurations from RAM to NVRAM.作者: yjq108 時間: 2012-11-23 13:18