• interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1). " _; Z' o; O9 U5 m3 ]( h- D• ip default-gateway [address]: This is a global command and set default gateway.. Y7 R4 J; m' i4 R
• ip address [address][subnet mask]: This command configures the interface and sets the ip address. , J3 P$ o+ Z0 t w& o• interface fast Ethernet 0/x: This command puts users into user configuration mode. + s9 ~7 \7 X _3 n; I3 C/ B" Q• speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed. : g& d( x/ X: E ]- v6 P• duplex {auto/full/half}: This command sets duplex mode for the interface./ T5 p# U( Q5 T! K) K9 e- i" h
• hostname [name]: This command assigns a host name to the switch. - v. D1 F! E \0 f' k( m• line vty 0 15: This command enters vty (telnet) configuration mode.: M: @4 g; w4 o* M3 K
• line con 0: This command enters console configuration mode. ; n' Z8 E t% b( Y• login: This command tells the switch to ask for a password.2 H0 q2 |2 g7 m+ t$ A* E: z: ?
• password [password]: This command sets the password.- D2 N( _2 y, n
• enable password [password]: This command sets the password to enter privileged mode. ! q' ~9 d. t/ d9 E% K" Z z• enable secret [password]: This command sets encrypted password.9 X: l* P% x) {
• configure terminal: This command enters configuration mode.8 U. z! e! {9 M) a6 b" J
• show interfaces fastethernet 0/x: This command displays interface status.2 Q+ W; [7 R# j: R, y& ~8 N
• show interfaces: This command displays information of all interfaces. * ^; U% S3 d( r5 x0 M3 w• show interfaces vlan 1: This command displays the ip address configuration. , Z7 F9 ^8 u; @1 r• show [running/startup]-config: This command displays RAM/NVRAM settings.* {/ J" i( N7 u0 n6 f
• show-mac-address-table: This command displays the MAC address table. 0 L7 G: ^) ~* v; w( X- `• show version: This command displays the switch’s hardware and software status.( J4 [, R1 F& C0 y# u! }3 {% ^
• show flash: This command displays the files and directories in the flash.- D& {. f5 `* B9 I
• show history: This command displays the last ten commands. " w0 w$ l2 Q7 }8 L4 a Y' h• show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch. . I. |# u' l% _2 D• show log: This command displays logging messages of the switch.0 C& T3 z( \/ {
• copy run start / write mem: This command saves configurations from RAM to NVRAM.作者: yjq108 時間: 2012-11-23 13:18