zoukankan      html  css  js  c++  java
  • ASA 用TFTP 备份配置方法

    一种方法是用ASDM,在菜单样哪项里有一个backup,保存为一个压缩文件rar,恢复也是用ASDM.
    另一种是用TFTP SERVER 来做,电脑用网线接上ASA,还要把cisco TFTP SERVER软件打开
    输入:write net 192.169.1.2:asa
    这是备份 192.169.1.2是你的PC机的IP地址;asa是你要保存的文件名
    恢复的话用: config net 192.169.1.2:/asa
    asa就是你之前保存的文件啦。这个文件在cisco TFTP SERVER设置的路径上。

    恢复出厂配置

    (config)#configure factory-default

    详细操作转载于 https://www.cnblogs.com/zoulongbin/p/7759882.html

    TFTP软件下载:(备份与还原需要使用到的软件)

    http://tftpd32.jounin.net/tftpd32_download.html

    思科交换机备份与还原思路:

    一台电脑通过console端口连接到cisco 2960交换机,配置一个VLAN 10并分配IP地址和网关,电脑设置固定IP地址连接到cisco 2960交换机,确认交换机ping通这台电脑的IP地址,打开TFTP软件进行备份,通过超级终端连接cisco 2960交换机执行备份命令。还原和备份步骤相似,只是执行的命令不同而已。

     思科交换机备份:

     1、  电脑通过console端口连接到cisco 2960交换机超级终端配置VLAN和IP地址

     配置VLAN

    Switch>enable

    Switch#vlan database

    Switch(vlan)#vlan 10 name switch10

    Switch(vlan)#exit

    Switch#show vlan

    VLANw分配端口

    Switch#configure terminal

    Switch(config)#interface range GigabitEthernet 1/0/1-10

    Switch(config-if-range)#switchport access vlan 10

    Switch(config-if-range)#switchport mode access

    Switch(config-if-range)#no shutdown

    配置VLAN IP和默认网关

    Switch#configure terminal

    Switch(config)#interface vlan 10

    Switch(config-if)#ip address 192.168.100.1 255.255.255.0

    Switch(config)#ip default-gateway 192.168.100.254

    Switch(config)#exit

    Switch#show ip interface brief

    Switch#write

     2、电脑设置一个VLAN 10的固定IP地址,并把电脑网线接到cisco 2960交换机1到10接口都可以。

      3、可以通过超级终端ping电脑的IP,也可以过通电脑ping命令测试cisco 2960交换机网络是否已连通。

     4、安装TFTP软件并打开

     

     5、电脑超级终端连接到cisco 2960交换机执行备份命令

    Switch>enable                            //进入特权模式

    Switch#copy running-config TFTP             //复制交换机配置文件保存到TFTP服务器上

    Address or name of remote host []? 192.168.100.2  //指定电脑IP地址(安装了TFTP软件的电脑)

    Destination filename [switch-confg]? testfile        //交换机配置文件命名

    !!

    4544 bytes copied in 1.913 secs (2375 bytes/sec)

     6、执行完备份命令后TFTP软件目录下就有一个备份文件testfile

     

     思科交换机恢复:

    1、电脑通过console端口连接到cisco 2960交换机超级终端配置VLAN和IP地址(现在配置的信息与备份文件配置的信息是不一样)

    配置VLAN 

    Switch>enable

    Switch#vlan database

    Switch(vlan)#vlan 10 name testfile

    Switch(vlan)#exit

    Switch#show vlan

    VLANw分配端口

    Switch#configure terminal

    Switch(config)#interface range GigabitEthernet 1/0/1-5

    Switch(config-if-range)#switchport access vlan 10

    Switch(config-if-range)#switchport mode access

    Switch(config-if-range)#no shutdown

     配置VLAN IP和默认网关 

    Switch#configure terminal

    Switch(config)#interface vlan 10

    Switch(config-if)#ip address 192.168.200.1 255.255.255.0

    Switch(config)#ip default-gateway 192.168.200.254

    Switch(config)#exit

    Switch#show ip interface brief

    Switch#write

    2、电脑设置一个VLAN 20的固定IP地址,并把电脑网线接到cisco 2960交换机1到10端口都可以

     

     3、可以通过超级终端ping电脑的IP,也可以过通电脑ping命令测试cisco 2960交换机网络是否已连通。

     

    4、安装TFTP软件并打开并查看cisco 2960交换机配置文件名称 testfile

     

     5、电脑通过超级终端连接cisco  2960交换机恢复testfile配置文件

    Switch#copy TFTP startup-config                                  //将TFTP上的文件复制到启动配置文件中

    Address or name of remote host []? 192.168.200.2      //输入TFTP电脑的IP地址192.168.200.2

    Source filename []? testfile                                           //来自TFTP的备份文件testfile

    Destination filename [startup-config]?                         //指定存放在目标文件,默认按回车键确认即可

    Accessing tftp://192.168.200.2/testfile...

    Loading testfile from 192.168.200.2 (via Vlan10): !

    [OK - 4544 bytes]

    [OK]

    4544 bytes copied in 17.254 secs (263 bytes/sec)

    Switch#copy startup-config running-config      //将startup-config复制到running-config中

    Destination filename [running-config]?        //指定目标文件为默认的running-config,默认按回车键确认即可

    Switch#show running-config                 //查看配置恢复情况

     标注说明:

    startup-config 是开机启动的配置文件,在NVRAM中,断电后能保存;

    running-config是即使配置过的运行文件,在DRAM中,断电会全部丢失。

    交换机启动后,startup-config就不会再改变了,如果我们在交换机中做了很多的工作,

    这个工作将会保存在running-config文件中,而不是保存在startup-config中。由于

    running-config配置文件断电会全部丢失,所以我们做好工作后,会将running-config

    复制到startup-config中以保存所做的工作。

  • 相关阅读:
    算法竞赛入门经典习题2-3 韩信点兵
    ios入门之c语言篇——基本函数——5——素数判断
    ios入门之c语言篇——基本函数——4——数值交换函数
    144. Binary Tree Preorder Traversal
    143. Reorder List
    142. Linked List Cycle II
    139. Word Break
    138. Copy List with Random Pointer
    137. Single Number II
    135. Candy
  • 原文地址:https://www.cnblogs.com/qzqdy/p/9082231.html
Copyright © 2011-2022 走看看