交换机备份TFTP

Loading "flash:/c2960-lanbase-mz.122-25.FX.bin"...
######################### [OK]
              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-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: 0x814129C4



Cisco 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  : 0x01


Switch   Ports  Model              SW Version              SW Image
------   -----  -----              ----------              ----------
*    1   26     WS-C2960-24TT      12.2                    C2960-LANBASE-M

Cisco 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

Press 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 up


Switch>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.0

SW1(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 up

SW1(config-if)#end
SW1#
%SYS-5-CONFIG_I: Configured from console by console

SW1#ping 192.168.1.2

Type 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 ms


SW1#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  testname

testname(config)#end
testname#
%SYS-5-CONFIG_I: Configured from console by console

testname#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 console

SW1#
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-lo

R1(config)#line console 0

R1(config-line)#logging syn

R1(config-line)#exec-timeout 00


R1(config-line)#inter fa0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0

R1(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 up

R1(config-if)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console

R1#ping 192.168.1.2

Type 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 ms

R1#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#

 

posted on 2018-07-16 16:53  彼de潘  阅读(190)  评论(0编辑  收藏  举报