找回密码
 注册
查看: 1351|回复: 0

cisco设备清空某个端口的配置

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-11-13 12:27:11 | 显示全部楼层 |阅读模式
进入特权模式:
( o. j5 X% D6 c1 g$ w4 I8 Q/ H1 {Switch#configure terminal
5 }9 J: [( i/ M0 S1 z& c- NEnter configuration commands, one per line.  End with CNTL/Z.
2 ~3 A' J1 r' o. `( V2 H
" N/ F/ T) m4 a; N  e" S' P5 W9 R7 Q( X- r- [0 F7 X$ u
设置成default状态:4 Q. s, D( a5 l0 N+ z
Switch(config)#default interface fastEthernet 0/23
1 y* Z7 H0 A) [4 i+ x1 |2 iInterface FastEthernet0/23 set to default configuration& f3 Z' t8 z+ f7 F' Q- f3 R* `6 H

! C7 P) w! n9 k  g- ?6 H. l0 \9 k01:45:25: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to down
3 V+ M/ a& K( I+ G$ E1 n+ A1 D0 Q. h
4 M9 _1 M$ H/ T8 x+ F/ g01:45:28: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/23, changed state to up
% I) o! G3 T5 ]! X- W! u2 A  I01:45:34: %SYS-5-CONFIG_I: Configured from console by console$ S# _, I! Y. [- g- u- M7 m
01:45:58: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
' ~" A. w3 b: h/ |9 l9 b9 l* c
+ I& `- I& ~. ?% }% H( ?Switch#show  interfaces fastEthernet 0/23; y! T+ S' r) N4 I* v
FastEthernet0/23 is up, line protocol is up (connected)
5 h' `5 n; Z2 O6 W6 A/ Z' a" u1 z1 ?  Hardware is Fast Ethernet, address is 001b.2b79.7499 (bia 001b.2b79.7499)
1 {: H9 q: Y4 N* V, s  n- j; o% ^5 m  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
' ^% N* u4 ]2 @5 S, A     reliability 255/255, txload 1/255, rxload 1/255
0 h: i) U1 d4 v  Encapsulation ARPA, loopback not set: O: P3 L  n5 W) n
  Keepalive set (10 sec)
+ @% t6 T9 B: d( v0 Q! z) {  I  Full-duplex, 100Mb/s, media type is 10/100BaseTX( v8 t# q8 f3 d
  input flow-control is off, output flow-control is unsupported
7 N$ n' e+ @( ]+ h  ARP type: ARPA, ARP Timeout 04:00:00
; r& _5 J6 M# N- p! r! {$ d& [. d  Last input never, output 00:00:00, output hang never
* r% Z! v. i% v; A) \' p. O  Last clearing of "show interface" counters never* v; _& @5 Y& c: X" r- X6 T
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0/ b  s4 x, I+ a+ r/ Y( c# a
  Queueing strategy: fifo
- l4 _* F& b, m  _0 O/ G+ V: I  Output queue: 0/40 (size/max). {6 v5 L' S* ^0 D& z$ ~: ^. O
  5 minute input rate 0 bits/sec, 0 packets/sec
- l5 [4 O- p5 n5 U7 Z  5 minute output rate 0 bits/sec, 0 packets/sec5 C$ H8 t5 Q" N" [) a9 D9 [( X  b0 ]
     4281 packets input, 538052 bytes, 0 no buffer* Z1 l, C7 |3 [- M6 Y7 V- R9 l! U
     Received 4015 broadcasts (0 multicast)$ }7 C' i7 [, j/ Q" ]) z9 i! F
     0 runts, 0 giants, 0 throttles
6 \5 Z, z9 G+ m     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
! E: k, k" ?7 w9 ]- \0 z5 b5 C8 {     0 watchdog, 3224 multicast, 0 pause input
, P: R. c0 h! @+ v/ b     0 input packets with dribble condition detected5 d: w. M0 l7 _& u
     2225 packets output, 193144 bytes, 0 underruns2 I7 j" U' R- a' Q! J
     0 output errors, 0 collisions, 1 interface resets  T$ r  r- |+ s$ o0 y0 Z
     0 babbles, 0 late collision, 0 deferred" d$ X1 g% X2 @+ {3 f- v
     0 lost carrier, 0 no carrier, 0 PAUSE output
; Q% s& F$ ~8 K$ ~7 H     0 output buffer failures, 0 output buffers swapped out
% u* r2 ?! `0 ^% W( b7 M7 y) Y7 x/ q' s" f
2 g+ I9 H0 D1 v
9 D" `* {5 b3 Q, k  m/ K. c

& `# u5 n2 i& ~) \Switch#show configuration
2 A; |$ b: ?0 f4 l: p) pUsing 1832 out of 524288 bytes
( }$ M, f% _4 t0 K' |7 C* }% E2 r* {!
; v0 b, m/ Z' ]version 12.2
% I* l- @; ^; Z0 I" ]2 Y, @1 x!         ) j% X" Q  f/ @5 z1 ~& V0 ~. C2 @
interface FastEthernet0/23
4 P5 f* J6 w4 ~. c' u2 I!         1 C; c- t' {7 J" a; `
interface FastEthernet0/24
5 p- N. \4 V  o$ S# [1 {! g8 K1 M5 U, Z8 c5 s
. Y  h, A6 z# R# a+ S
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:21 , Processed in 0.030327 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表