交換機(jī)配置必須用命令_交換機(jī)技術(shù)欄目:電話,無(wú)線,思科,華為三層交換機(jī)等
本文關(guān)鍵詞:交換機(jī)配置,由筆耕文化傳播整理發(fā)布。
> 交換機(jī) > 正文
如何清空交換機(jī)配置
2012-02-29
我要投稿
關(guān)于交換機(jī)清空配置,閑來(lái)沒(méi)事兒自己在總結(jié)一下。
Switch#erase startup-config
清除VLAN配置
Switch#delete vlan.dat
這是基本命令,下邊是在交換機(jī)中顯示的信息。
------------------------------------
SW-1#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
SW-1#
*Mar 1 01:34:46.041: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
SW-1#delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
SW-1#
SW-1#
SW-1#
SW-1#sh vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/21
Fa0/23, Fa0/24, Fa0/25, Fa0/26
Fa0/27, Fa0/28, Fa0/29, Fa0/30
Fa0/31, Fa0/32, Fa0/33, Fa0/34
Fa0/35, Fa0/36, Fa0/37, Fa0/38
Fa0/39, Fa0/40, Fa0/41, Fa0/42
Fa0/43, Fa0/44, Fa0/45, Fa0/46
Fa0/47, Fa0/48, Gi0/1, Gi0/2
2 VLAN0002 active
3 VLAN0003 active
4 VLAN0004 active
5 VLAN0005 active
10 VLAN0010 active
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#
SW-1#reload
Proceed with reload? [confirm]
*Mar 1 01:35:20.174: %SYS-5-RELOAD: Reload requested by console. Reload reason: Reload command
Boot Sector Filesystem (bs) installed, fsid: 2
Base ethernet MAC Address: 00:22:0c:6a:fa:00
Xmodem file system is available.
The password-recovery mechanism is enabled.
Initializing Flash...
flashfs[0]: 528 files, 19 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 32514048
flashfs[0]: Bytes used: 25319424
flashfs[0]: Bytes available: 7194624
flashfs[0]: flashfs fsck took 23 seconds.
...done Initializing Flash.
done.
Loading "flash:/c2960-lanbasek9-mz.122-55.SE4.bin"...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "flash:/c2960-lanbasek9-mz.122-55.SE4.bin" uncompressed and installed, entry point: 0x3000
executing...
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE4, RELEASE SOFTWARE (fc1)
Technical Support:
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Tue 06-Sep-11 03:13 by prod_rel_team
Image text-base: 0x00003000, data-base: 0x01900000
Initializing flashfs...
fsck: Disable shadow buffering due to heap fragmentation.
flashfs[1]: 528 files, 19 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 32514048
flashfs[1]: Bytes used: 25319424
flashfs[1]: Bytes available: 7194624
flashfs[1]: flashfs fsck took 6 seconds.
flashfs[1]: Initialization complete....done Initializing flashfs.
Checking for Bootloader upgrade.. not needed
POST: CPU MIC register Tests : Begin
POST: CPU MIC register Tests : End, Status Passed
POST: PortASIC Memory Tests : Begin
POST: PortASIC Memory Tests : End, Status Passed
POST: CPU MIC interface Loopback Tests : Begin
POST: CPU MIC interface Loopback Tests : End, Status Passed
POST: PortASIC RingLoopback Tests : Begin
POST: PortASIC RingLoopback Tests : End, Status Passed
POST: PortASIC CAM Subsystem Tests : Begin
POST: PortASIC CAM Subsystem Tests : End, Status Passed
POST: PortASIC Port Loopback Tests : Begin
POST: PortASIC Port Loopback Tests : End, Status Passed
Waiting for Port download...Complete
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
If you require further assistance please contact us by sending email to
export@cisco.com.
cisco WS-C2960-48TT-L (PowerPC405) processor (revision E0) with 65536K bytes of memory.
Processor board ID FOC1223Y0N0
Last reset from power-on
1 Virtual Ethernet interface
48 FastEthernet interfaces
2 Gigabit Ethernet interfaces
The password-recovery mechanism is enabled.
64K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address : 00:22:0C:6A:FA:00
Motherboard assembly number : 73-10391-05
Power supply part number : 341-0097-02
Motherboard serial number : FOC122257N9
Power supply serial number : DCA1222810F
Model revision number : E0
Motherboard revision number : A0
Model number : WS-C2960-48TT-L
System serial number : FOC1223Y0N0
Top Assembly Part Number : 800-27222-04
Top Assembly Revision Number : A0
Version ID : V04
CLEI Code Number : COM3H00BRC
Hardware Board Revision Number : 0x02
Switch Ports Model SW Version SW Image
------ ----- ----- ---------- ----------
* 1 50 WS-C2960-48TT-L 12.2(55)SE4 C2960-LANBASEK9-M
*Mar 1 00:00:37.421: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to down
*Mar 1 00:00:38.705: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
*Mar 1 00:01:00.523: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE4, RELEASE SOFTWARE (fc1)
Technical Support:
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Tue 06-Sep-11 03:13 by prod_rel_team
*Mar 1 00:01:02.176: %LINK-3-UPDOWN: Interface FastEthernet0/20, changed state to up
*Mar 1 00:01:02.176: %LINK-3-UPDOWN: Interface FastEthernet0/22, changed state to up
*Mar 1 00:01:02.176: %LINK-3-UPDOWN: Interface FastEthernet0/47, changed state to up
*Mar 1 00:01:03.275: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/47, changed state to up
*Mar 1 00:01:05.322: %LINK-3-UPDOWN: Interface FastEthernet0/48, changed state to up
*Mar 1 00:01:06.219: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/20, changed state to up
*Mar 1 00:01:06.219: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/22, changed state to up
*Mar 1 00:01:06.446: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/48, changed state to up
*Mar 1 00:01:32.501: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
Switch>
Switch>
Switch> got vend id vend spec. info ret: succeed
*Mar 1 00:02:32.328: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/47, changed state to down
*Mar 1 00:02:34.333: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/47, changed state to up
*Mar 1 00:02:36.481: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/47, changed state to down
*Mar 1 00:02:38.485: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/47, changed state to up
Switch>
Switch>
Switch>en
Switch#sh vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/21
Fa0/23, Fa0/24, Fa0/25, Fa0/26
Fa0/27, Fa0/28, Fa0/29, Fa0/30
Fa0/31, Fa0/32, Fa0/33, Fa0/34
Fa0/35, Fa0/36, Fa0/37, Fa0/38
Fa0/39, Fa0/40, Fa0/41, Fa0/42
Fa0/43, Fa0/44, Fa0/45, Fa0/46
Fa0/47, Fa0/48, Gi0/1, Gi0/2
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
Switch#
本文出自 “net_bj” 博客
點(diǎn)擊復(fù)制鏈接 與好友分享!回本站首頁(yè)
相關(guān)TAG標(biāo)簽 交換機(jī)
上一篇:華為交換機(jī)配置遠(yuǎn)程管理 下一篇:思科交換機(jī)的基本命名規(guī)則 相關(guān)文章網(wǎng)吧二、三、四層交換機(jī)的區(qū)別
千兆交換機(jī)性能測(cè)試的九項(xiàng)指標(biāo)簡(jiǎn)介
淺談如何加速交換機(jī)端口初始化進(jìn)程
網(wǎng)絡(luò)工程師專業(yè)術(shù)語(yǔ)大集合之交換機(jī)術(shù)語(yǔ)
詳細(xì)解析可堆疊交換機(jī)的優(yōu)勢(shì)與挑戰(zhàn)
詳細(xì)分析網(wǎng)絡(luò)交換機(jī)的線速WireSpeed
關(guān)于選擇二層交換機(jī)的一些看法和建議
新手看招:交換機(jī)技術(shù)簡(jiǎn)介及應(yīng)用分析
通過(guò)串口連接設(shè)置來(lái)管理終端交換機(jī)
使用Web交換機(jī)為網(wǎng)絡(luò)防火墻分憂解愁
圖文推薦本文關(guān)鍵詞:交換機(jī)配置,由筆耕文化傳播整理發(fā)布。
,本文編號(hào):119216
本文鏈接:http://sikaile.net/wenshubaike/xxkj/119216.html