使用TFTP-ON CENTOS 備份 CISCO
剛好最近有了新的機器CISCO…
在不熟的情況下 動手前最好先備份一下
雖然有 STARTUP的部份可以寫回 RUNNING的…
但不花多少時間 還是備一下比較好
首先 找出一臺要安裝TFTP軟體的主機(目前是使用CENTOS)
在CENTOS安裝TFTP非常簡單
1.yum -y install tftp-server
2.chkconfig tftp on
3.chkconfig xinetd on
主要 設定檔在 /etc/xinetd.d/tftp
其中 最主要設定為
server_args = -c -s /tftpboot
-s 參數為 指定 chroot
-c 可以上傳檔案
最後路徑 為上、下載目錄
如果發現裝好了 卻不能上傳檔案 可以檢查這邊
但通常來說 是目錄的權限沒開放…
至此 已安裝完畢了...
改了 設定後 記得 重啟
service xinetd restart
看看它有沒有在工作
   netstat -ntulp | grep xinetd
 udp        0      0 0.0.0.0:69                  0.0.0.0:*                               10686/xinetd
  這樣就ok了
  可以來備份 Cisco 的東西了
  目前只備份running-config及startup-config tftp
 作法如下 先連入 cisco 記得轉至en
   User Access Verification
 
   Password:
  
   STACK-3750>en
  
   Password:
  
   STACK-3750#copy startup-config tftp
  
   Address or name of remote host []? 1.1.1.1
 
   Destination filename [stack-3750-confg]? test3750
  
   !!
 
   7984 bytes copied in 0.084 secs (95048 bytes/sec)
  
   STACK-3750#copy running-config tftp
  
   Address or name of remote host []? 1.1.1.1
 
   Destination filename [stack-3750-confg]? test37501
 
   !!
 
   7984 bytes copied in 3.154 secs (2531 bytes/sec)
 
   STACK-3750#
  
   紅色為備份設定檔
 
   藍色 就自訂即可