|
实验3:使用TFTP备份和还原文件 in startup-config
1)配置TFTP server和交换机管理地址并测试连通性:
Switch>ena
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#inter vlan 1
Switch(config-if)#ip add 192.168.1.1 255.255.255.0
Switch(config-if)#no shut
Switch(config-line)#exit
Switch(config)#no ip domain-loo
Switch(config)#host SW1
SW1(config)#end
SW1#wr
Building configuration...
[OK]
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/0 ms
2)备份和还原交换机上的文件
SW1#copy star tftp:
Address or name of remote host []? 192.168.1.2
Destination filename [SW1-confg]?
Writing startup-config...!!
[OK - 1114 bytes]
1114 bytes copied in 0.005 secs (222800 bytes/sec)
SW1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#
SW1(config)#host 234234
234234(config)#
234234(config)#end
234234#copy tftp: run
234234#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 - 1114 bytes]
1114 bytes copied in 0 secs
SW1#
|
|