设为首页 收藏本站
查看: 648|回复: 0

[经验分享] Cisco备份服务器建制(TFTP SERVER ON LINUX)

[复制链接]

尚未签到

发表于 2018-7-15 06:11:13 | 显示全部楼层 |阅读模式
  1、备份服务器地址10.55.1.100,OS位RHEL 6.4
  2、yum本地仓库安装tftp服务
  # yum repolist
  Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security,
  : subscription-manager, tmprepo, verify, versionlock
  This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  Loading support for Red Hat kernel ABI
  localrepo                                                                                   | 3.9 kB     00:00 ...
  localrepo/primary_db                                                                        | 3.1 MB     00:00 ...

  repo>  localrepo                                             localrepo                                              3,648
  repolist: 3,648
  [root@wuftp yum.repos.d]# yum info tftp
  Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, refresh-packagekit, security,
  : subscription-manager, tmprepo, verify, versionlock
  This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
  Loading support for Red Hat kernel ABI
  Available Packages
  Name        : tftp
  Arch        : x86_64
  Version     : 0.49
  Release     : 7.el6
  Size        : 32 k
  Repo        : localrepo
  Summary     : The client for the Trivial File Transfer Protocol (TFTP)
  URL         : http://www.kernel.org/pub/software/network/tftp/
  License     : BSD
  Description : The Trivial File Transfer Protocol (TFTP) is normally used only for
  : booting diskless workstations.  The tftp package provides the user
  : interface for TFTP, which allows users to transfer files to and from a
  : remote machine.  This program and TFTP provide very little security,
  : and should not be enabled unless it is expressly needed.
  yum -y install tftp xinetd tftp-server
  3、配置tftp server
  关闭selinux和iptables
  ~]# vim /etc/xinetd.d/tftp
  # default: off
  # description: The tftp server serves files using the trivial file transfer \
  #    protocol.  The tftp protocol is often used to boot diskless \
  #    workstations, download configuration files to network-aware printers, \
  #    and to start the installation process for some operating systems.
  service tftp
  {
  socket_type        = dgram
  protocol        = udp
  wait            = yes
  user            = root
  server            = /usr/sbin/in.tftpd
  server_args        = -s /networkbackup -c     设定TFTP传输的文件保存的路径 -c锁定目录
  disable            = no     disable修改为no进行开启
  per_source        = 11
  cps            = 100 2
  flags            = IPv4
  }
  chmod 777 -R /networkbackup     给备份文件夹授予权限
  重启xientd.d,是进程是tftp服务的父进程
  [root@wuftp /]# service xinetd restart
  Stopping xinetd:                                           [FAILED]
  Starting xinetd:                                           [  OK  ]
  查看tftp是否启动正常
  netstat -a | grep tftp
  udp        0      0 *:tftp                      *:*
  添加开机自启动
  chkconfig --add tftp
  4、cisco设备进行tftp备份
  User Access Verification
  Username:
  Username:
  Username: 1080054
  Password:
  Aging1#copy
  Aging1#copy ru
  Aging1#copy running-config tf
  Aging1#copy running-config tftp:
  Address or name of remote host []? 10.55.1.100
  Destination filename [aging1-confg]?
  !!!
  8850 bytes copied in 2.184 secs (4052 bytes/sec)
  5、备份完成
  [root@wuftp networkbackup]# ll
  total 412
  -rw-rw-rw- 1 nobody nobody  7742 Jan 19 12:34 172.16.1.2-tfn-confg
  -rw-rw-rw- 1 nobody nobody  8065 Jan 19 12:35 172.16.1.3-dyx-confg
  -rw-rw-rw- 1 nobody nobody  8850 Jan 19 11:20 aging1-confg
  -rw-rw-rw- 1 nobody nobody  8781 Jan 19 11:20 aging2-confg
  -rw-rw-rw- 1 nobody nobody  8894 Jan 19 11:19 aging3-confg
  -rw-rw-rw- 1 nobody nobody  1663 Jan 19 11:21 ap-warehouse2-confg
  -rw-rw-rw- 1 nobody nobody  1647 Jan 19 11:22 ap-warehouse4-confg
  -rw-rw-rw- 1 nobody nobody  8672 Jan 19 11:19 caigou-confg
  -rw-rw-rw- 1 nobody nobody  4725 Jan 19 11:18 caiwu-confg
  -rw-rw-rw- 1 nobody nobody  5410 Jan 19 11:16 chanxiao-confg
  -rw-rw-rw- 1 nobody nobody 13745 Jan 19 12:36 core3750-confg
  -rw-rw-rw- 1 nobody nobody 38573 Jan 19 12:08 cptw_4507r_lcm1-confg
  -rw-rw-rw- 1 nobody nobody 26937 Jan 19 11:24 cptw_4507r_lcm2-confg
  -rw-rw-rw- 1 nobody nobody 50960 Jan 19 11:13 cptw_4507r_lcm3-confg
  -rw-rw-rw- 1 nobody nobody  8992 Jan 19 11:16 cr1-confg
  -rw-rw-rw- 1 nobody nobody  5217 Jan 19 11:15 cr2-confg
  -rw-rw-rw- 1 nobody nobody  3426 Jan 19 11:14 cr3-confg
  -rw-rw-rw- 1 nobody nobody  5158 Jan 19 11:14 cr4-confg
  -rw-rw-rw- 1 nobody nobody  1789 Jan 19 12:18 dmz-confg
  -rw-rw-rw- 1 nobody nobody  4565 Jan 19 12:17 dongli-confg
  -rw-rw-rw- 1 nobody nobody  3020 Jan 19 12:17 gaswitch-confg
  -rw-r--r-- 1 root   root    5224 Jan 19 12:40 GAYBSWITCH-confg
  -rw-rw-rw- 1 nobody nobody  4293 Jan 19 12:37 gbyg-confg
  -rw-rw-rw- 1 nobody nobody  3766 Jan 19 11:14 hp-e-confg
  -rw-rw-rw- 1 nobody nobody  4462 Jan 19 12:07 lcm1-fa-confg
  -rw-rw-rw- 1 nobody nobody  5048 Jan 19 12:07 lcm1-oa-confg
  -rw-rw-rw- 1 nobody nobody  2860 Jan 19 12:06 lcm1-rac-3750-confg
  -rw-rw-rw- 1 nobody nobody  2877 Jan 19 11:12 lcm3jiexi24k-confg
  -rw-rw-rw- 1 nobody nobody 13519 Jan 19 11:28 p52-confg
  -rw-rw-rw- 1 nobody nobody  1637 Jan 19 11:22 pc-warehouse1-confg
  -rw-rw-rw- 1 nobody nobody  1495 Jan 19 11:22 pc-warehouse6-confg
  -rw-rw-rw- 1 nobody nobody  5119 Jan 19 11:27 phonerouter-confg
  -rw-rw-rw- 1 nobody nobody  1961 Jan 19 11:23 pur-confg
  -rw-rw-rw- 1 nobody nobody  4960 Jan 19 11:11 system1-confg
  -rw-rw-rw- 1 nobody nobody  9560 Jan 19 11:10 system2-confg
  -rw-rw-rw- 1 nobody nobody  1899 Jan 19 11:23 vipap-confg
  -rw-rw-rw- 1 nobody nobody  6159 Jan 19 11:09 warehouse-confg
  -rw-rw-rw- 1 nobody nobody  3098 Jan 19 11:09 xuniji-confg
  -rw-rw-rw- 1 nobody nobody  9190 Jan 19 11:08 yewu-confg
  -rw-rw-rw- 1 nobody nobody  2990 Jan 19 12:19 yiwushi-1-confg
  -rw-rw-rw- 1 nobody nobody  3691 Jan 19 12:34 yiwushi-2-confg
  -rw-rw-rw- 1 nobody nobody  3682 Jan 19 11:26 yiwushi-3-confg

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-537199-1-1.html 上篇帖子: 恢复Cisco路由器口令 下篇帖子: Cisco认证:Cisco专业认证问答
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表