实验 3:备份和还原配置文件
生活随笔
收集整理的這篇文章主要介紹了
实验 3:备份和还原配置文件
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?
?
?
交換機備份TFTP
Loading "flash:/c2960-lanbase-mz.122-25.FX.bin"... ######################### [OK]Restricted Rights LegendUse, 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 DriveSan Jose, California 95134-1706Cisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2005 by Cisco Systems, Inc. Compiled Wed 12-Oct-05 22:05 by pt_team Image text-base: 0x80008098, data-base: 0x814129C4Cisco WS-C2960-24TT (RC32300) processor (revision C0) with 21039K bytes of memory.24 FastEthernet/IEEE 802.3 interface(s) 2 Gigabit Ethernet/IEEE 802.3 interface(s)63488K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address : 000B.BE37.8027 Motherboard assembly number : 73-9832-06 Power supply part number : 341-0097-02 Motherboard serial number : FOC103248MJ Power supply serial number : DCA102133JA Model revision number : B0 Motherboard revision number : C0 Model number : WS-C2960-24TT System serial number : FOC1033Z1EY Top Assembly Part Number : 800-26671-02 Top Assembly Revision Number : B0 Version ID : V02 CLEI Code Number : COM3K00BRA Hardware Board Revision Number : 0x01Switch Ports Model SW Version SW Image ------ ----- ----- ---------- ---------- * 1 26 WS-C2960-24TT 12.2 C2960-LANBASE-MCisco IOS Software, C2960 Software (C2960-LANBASE-M), Version 12.2(25)FX, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2005 by Cisco Systems, Inc. Compiled Wed 12-Oct-05 22:05 by pt_teamPress RETURN to get started!%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to upSwitch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname SW1 l SW1(config)#interface vlan 1 SW1(config-if)#ip add 192.168.1.1 255.255.255.0SW1(config-if)#no shutdown SW1(config-if)# %LINK-5-CHANGED: Interface Vlan1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to upSW1(config-if)#end SW1# %SYS-5-CONFIG_I: Configured from console by consoleSW1#ping 192.168.1.2Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/1 msSW1#wr Building configuration... [OK]SW1#copy startup-config tftp: Address or name of remote host []? 192.168.1.2 Destination filename [SW1-confg]? Writing startup-config...!! [OK - 1055 bytes]1055 bytes copied in 0 secs?
還原配置文件
?
SW1#conf t Enter configuration commands, one per line. End with CNTL/Z.SW1(config)#hostname testnametestname(config)#end testname# %SYS-5-CONFIG_I: Configured from console by consoletestname#copy tftp: running-config Address or name of remote host []? 192.168.1.2 Source filename []? SW1-confg Destination filename [running-config]? Accessing tftp://192.168.1.2/SW1-confg... Loading SW1-confg from 192.168.1.2: ! [OK - 1055 bytes]1055 bytes copied in 0 secs SW1# %SYS-5-CONFIG_I: Configured from console by consoleSW1# SW1# SW1#?
?
?
路由器
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host R1 R1(config)#no ip domain-loR1(config)#line console 0R1(config-line)#logging synR1(config-line)#exec-timeout 00R1(config-line)#inter fa0/0 R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#no shutdown R1(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upR1(config-if)#end R1# %SYS-5-CONFIG_I: Configured from console by consoleR1#ping 192.168.1.2Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/1 msR1#wr Building configuration... [OK]R1#copy running-config tftp: Address or name of remote host []? 192.168.1.2 Destination filename [R1-confg]? Writing running-config...!! [OK - 632 bytes]632 bytes copied in 0.001 secs (632000 bytes/sec) R1#?
轉(zhuǎn)載于:https://www.cnblogs.com/peter1007/p/9318562.html
總結(jié)
以上是生活随笔為你收集整理的实验 3:备份和还原配置文件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: select 实现server I/O多
- 下一篇: vi配置