|
|
进入特权模式:
# u h0 B5 y. Y9 J+ M1 hSwitch#configure terminal 6 M$ z: E& N0 z2 ~
Enter configuration commands, one per line. End with CNTL/Z.
5 D' T$ ?/ f( n; O7 a6 }1 F: \! T7 W' a" m3 [1 ?; d% C
h8 |6 m6 l+ N# _3 K设置成default状态:
6 r* n A- L Y+ _0 n. m' HSwitch(config)#default interface fastEthernet 0/23. w, h$ K4 S& h4 k5 o
Interface FastEthernet0/23 set to default configuration8 z* ^% k2 @, E# P: _ j8 i
3 Z( R" o2 m, S- s
01:45:25: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to down; D3 p$ G7 v2 \! @7 _
, H' v6 Z3 B1 k! c: _2 h01:45:28: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to up& w" L2 ^9 V2 N3 z1 g
01:45:34: %SYS-5-CONFIG_I: Configured from console by console H% d! H$ q0 Y$ E" P
01:45:58: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
8 \) h* w8 o. k+ C1 u3 x( ^+ j/ b3 R) |% R: W* o4 |
Switch#show interfaces fastEthernet 0/23
5 a* T$ ^1 }, _- V( \0 ?9 qFastEthernet0/23 is up, line protocol is up (connected)
, v3 \! [3 P( f C7 ~9 z& S Hardware is Fast Ethernet, address is 001b.2b79.7499 (bia 001b.2b79.7499)
5 y. }4 V6 x, @5 ]; J- m; L: u" E MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
' i- T* w& r z m& C2 d' g* y5 H reliability 255/255, txload 1/255, rxload 1/255
3 T8 t" C1 U1 d$ ` Encapsulation ARPA, loopback not set( F. W* ~* E! t! c0 X! X b6 g
Keepalive set (10 sec) I( l& D3 V D! `2 E2 F
Full-duplex, 100Mb/s, media type is 10/100BaseTX( Q. }% ]8 C: p7 o& f* X/ H }
input flow-control is off, output flow-control is unsupported
; S+ ?6 o& z* f0 `$ s! m L- G ARP type: ARPA, ARP Timeout 04:00:00. J& W- {, K5 g$ b2 o7 Q
Last input never, output 00:00:00, output hang never2 q) p' D4 B* ]9 o& z% L
Last clearing of "show interface" counters never
" m" O- b$ E0 u Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
- e9 d" K! r a3 e3 L4 F Queueing strategy: fifo& s( g5 o& ]- Y# t# {- b
Output queue: 0/40 (size/max)
4 c3 l9 @" o7 Q1 y 5 minute input rate 0 bits/sec, 0 packets/sec
% m8 ]6 r$ M4 s& ^9 N 5 minute output rate 0 bits/sec, 0 packets/sec
* \, ?, g: {/ W6 M2 q( ] 4281 packets input, 538052 bytes, 0 no buffer
5 P B$ G2 n6 m3 [ Received 4015 broadcasts (0 multicast)
. D* I& W! |, _ 0 runts, 0 giants, 0 throttles- |' t. P4 F3 r% }1 y7 d5 g& F
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored5 R7 a, F) X% g
0 watchdog, 3224 multicast, 0 pause input
& V! Z* H1 S' H0 f6 V 0 input packets with dribble condition detected% y# @7 s4 k- m8 n) t( O6 [: B
2225 packets output, 193144 bytes, 0 underruns4 f6 J" C7 X- t
0 output errors, 0 collisions, 1 interface resets
' K: x4 ]' w) q) S 0 babbles, 0 late collision, 0 deferred
6 h# S, a5 N# S/ K3 c7 S4 w3 K 0 lost carrier, 0 no carrier, 0 PAUSE output3 Q4 Z, y9 H% C+ x$ z3 O
0 output buffer failures, 0 output buffers swapped out' o3 p* Z7 W/ J- P) ?
8 P; G' n' J( T; o, N: L6 ]. D
0 |7 X' v/ B+ b4 e+ {: {( R
' ^% w* V1 M% o
# E& l( B# R& Q' Y
Switch#show configuration
. \, ?) g2 x- hUsing 1832 out of 524288 bytes2 E1 k, q7 c3 u/ c
!8 m2 ~; p/ i$ F C* l
version 12.2- _8 p, \& o% q/ }
!
( K& v# R) f0 p W/ Y7 cinterface FastEthernet0/23! j8 W! D& r" }6 J# `# }9 l
!
0 [8 |# y3 y3 {$ ~4 Q n/ Dinterface FastEthernet0/24
i4 Y8 d. u2 z m9 ]: |' n( P/ I6 K0 T! E; V' Y
# T+ E6 P3 b7 ~) h: d3 | A( x: A) Y |
|