• interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1).: c* p! C$ C4 _% `; d( ?1 G" O
• ip default-gateway [address]: This is a global command and set default gateway., c0 s; v: D, ^9 F1 f8 t9 _
• ip address [address][subnet mask]: This command configures the interface and sets the ip address. / x9 |. z0 V+ Z, ~- A" w* V/ i7 h3 y• interface fast Ethernet 0/x: This command puts users into user configuration mode. 1 z7 c( t/ d6 _) \0 p; j% V• speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.# Y- J8 }1 w0 C' }( o9 _3 \, V1 ?
• duplex {auto/full/half}: This command sets duplex mode for the interface.& ? w/ V5 L$ f6 j
• hostname [name]: This command assigns a host name to the switch.) l8 Q3 n# Q; L% l) R* s' j# j
• line vty 0 15: This command enters vty (telnet) configuration mode. & ^! L! S d" n |+ Q, _• line con 0: This command enters console configuration mode.! J; }# `' t7 x- l- q
• login: This command tells the switch to ask for a password.( l( c; N9 ]: V: y* ^! p7 G! e. q
• password [password]: This command sets the password. . z2 ^( v7 l! _$ R6 X• enable password [password]: This command sets the password to enter privileged mode. & z7 X* F% H" h+ g• enable secret [password]: This command sets encrypted password. ' X+ }! ]1 |9 S" [& a/ H8 d$ ?• configure terminal: This command enters configuration mode.1 x# }( N6 t5 k
• show interfaces fastethernet 0/x: This command displays interface status.- {( u" B! M5 ]; B
• show interfaces: This command displays information of all interfaces. $ s+ b0 K6 i8 U; {' i! {0 Z• show interfaces vlan 1: This command displays the ip address configuration.- W- u m5 m: m, V
• show [running/startup]-config: This command displays RAM/NVRAM settings. " E1 o1 E2 Z4 m- i8 P6 Q• show-mac-address-table: This command displays the MAC address table. 3 Y8 J0 }& v4 R; i• show version: This command displays the switch’s hardware and software status.0 U; }% p" F5 y" u2 v# p
• show flash: This command displays the files and directories in the flash. 2 d) e4 q* w9 _3 n% K; t2 v. \• show history: This command displays the last ten commands. 2 y& X; d* V: t+ L/ C• show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch.# g; k: T' \ K' Q
• show log: This command displays logging messages of the switch.( r/ v7 g& Y" N u" Z
• copy run start / write mem: This command saves configurations from RAM to NVRAM.作者: yjq108 時間: 2012-11-23 13:18