• interface vlan 1: This is a global command that configures the interface for default LAN (VLAN 1). 7 y. k. h0 R6 \1 [, {- }. }• ip default-gateway [address]: This is a global command and set default gateway.: ?! X# e \/ d- F( U \( t+ K
• ip address [address][subnet mask]: This command configures the interface and sets the ip address.1 L4 H) Y& n3 B7 M7 s$ e
• interface fast Ethernet 0/x: This command puts users into user configuration mode.! l& M/ P" s) ?: O1 `6 n
• speed {10/100/1000/auto/nonegotiate}: This command sets the interface’s speed.% Q \: q, c) k7 v/ l
• duplex {auto/full/half}: This command sets duplex mode for the interface. , r# l) ~7 I& B2 P3 K5 I• hostname [name]: This command assigns a host name to the switch. ]2 D8 j* V3 \! |& _8 G# ?5 O• line vty 0 15: This command enters vty (telnet) configuration mode. ) ^9 S5 W( ^2 g' H* Y5 |• line con 0: This command enters console configuration mode. 0 Z" A6 h, I/ `; K• login: This command tells the switch to ask for a password. 8 g- f9 ?& f; N3 v; q% \ I' U• password [password]: This command sets the password. $ D2 r7 `8 `/ x% K" n: u% y, d• enable password [password]: This command sets the password to enter privileged mode. - w. B6 r4 X7 _1 D4 J3 ~• enable secret [password]: This command sets encrypted password. $ m, R- @) G8 r& @1 |. f' d: [• configure terminal: This command enters configuration mode. f/ Y3 N+ m( X% R0 k
• show interfaces fastethernet 0/x: This command displays interface status. # Q2 ?- k3 j0 O( S, ]! |! O" w; i( s; }8 E• show interfaces: This command displays information of all interfaces. 9 @# D* u9 G2 _1 e" k9 ~• show interfaces vlan 1: This command displays the ip address configuration.* j* p) S! O' U8 z
• show [running/startup]-config: This command displays RAM/NVRAM settings. % w: R+ E' y& ]) Y• show-mac-address-table: This command displays the MAC address table. 8 ]/ I# r, m6 p, R• show version: This command displays the switch’s hardware and software status.! \/ g) Q1 y' K) D- c
• show flash: This command displays the files and directories in the flash.+ Q* K3 q. b7 Q% d/ j
• show history: This command displays the last ten commands.* I" A6 ]/ e! O
• show cdp neighbors (detail): This command displays the information of neighboring Cisco devices connected to the switch. * N# k1 z# r: g9 J- x9 o1 z) H• show log: This command displays logging messages of the switch. 6 q; w6 s% O a2 x# O! ~* n6 G• copy run start / write mem: This command saves configurations from RAM to NVRAM.作者: yjq108 時間: 2012-11-23 13:18